mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 10:56:24 +00:00
mend
This commit is contained in:
parent
dc5f228fce
commit
6ce9957694
@ -107,7 +107,7 @@ def compute_premium_percentile(order):
|
||||
for similar_order in queryset:
|
||||
similar_order_amount = similar_order.amount if not similar_order.has_range else similar_order.max_amount
|
||||
rates.append(
|
||||
float(similar_order.last_satoshis) / float(similar_order.amount))
|
||||
float(similar_order.last_satoshis) / float(similar_order_amount))
|
||||
|
||||
rates = np.array(rates)
|
||||
return round(np.sum(rates < order_rate) / len(rates), 2)
|
||||
|
@ -521,7 +521,7 @@ export default class MakerPage extends Component {
|
||||
<FormHelperText>
|
||||
<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'}}>
|
||||
<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"}
|
||||
</div>
|
||||
</Tooltip>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user