mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 19:36:24 +00:00
Fix live premium bug in book
This commit is contained in:
parent
e493f22842
commit
db36277456
@ -85,9 +85,9 @@ class Logics():
|
|||||||
exchange_rate = get_exchange_rate(Order.currency_dict[str(order.currency)])
|
exchange_rate = get_exchange_rate(Order.currency_dict[str(order.currency)])
|
||||||
order_rate = float(order.amount) / (float(order.satoshis) / 100000000)
|
order_rate = float(order.amount) / (float(order.satoshis) / 100000000)
|
||||||
premium = order_rate / exchange_rate - 1
|
premium = order_rate / exchange_rate - 1
|
||||||
|
premium = int(premium*100) # 2 decimals left
|
||||||
price = order_rate
|
price = order_rate
|
||||||
|
|
||||||
premium = int(premium*100) # 2 decimals left
|
|
||||||
return price, premium
|
return price, premium
|
||||||
|
|
||||||
def order_expires(order):
|
def order_expires(order):
|
||||||
|
Loading…
Reference in New Issue
Block a user