This commit is contained in:
Reckless_Satoshi 2022-03-24 17:30:40 -07:00
parent dc5f228fce
commit 6ce9957694
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ def compute_premium_percentile(order):
for similar_order in queryset: for similar_order in queryset:
similar_order_amount = similar_order.amount if not similar_order.has_range else similar_order.max_amount similar_order_amount = similar_order.amount if not similar_order.has_range else similar_order.max_amount
rates.append( rates.append(
float(similar_order.last_satoshis) / float(similar_order.amount)) float(similar_order.last_satoshis) / float(similar_order_amount))
rates = np.array(rates) rates = np.array(rates)
return round(np.sum(rates < order_rate) / len(rates), 2) return round(np.sum(rates < order_rate) / len(rates), 2)

View File

@ -521,7 +521,7 @@ export default class MakerPage extends Component {
<FormHelperText> <FormHelperText>
<Tooltip enterTouchDelay="0" placement="top" align="center"title={"Let the taker chose an amount within the range"}> <Tooltip enterTouchDelay="0" placement="top" align="center"title={"Let the taker chose an amount within the range"}>
<div align="center" style={{display:'flex',alignItems:'center', flexWrap:'wrap'}}> <div align="center" style={{display:'flex',alignItems:'center', flexWrap:'wrap'}}>
<Checkbox onChange={(e)=>this.setState({enableAmountRange:e.target.checked}) & this.handleClickRelative() & (e.target.checked ? this.getLimits() : null)}/> <Checkbox onChange={(e)=>this.setState({enableAmountRange:e.target.checked}) & (e.target.checked ? this.getLimits() : null)}/>
{this.state.enableAmountRange & this.state.minAmount != null? <this.rangeText/> : "Enable Amount Range"} {this.state.enableAmountRange & this.state.minAmount != null? <this.rangeText/> : "Enable Amount Range"}
</div> </div>
</Tooltip> </Tooltip>

File diff suppressed because one or more lines are too long