mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix list out of range on contract formalized order logging
This commit is contained in:
parent
2046857ee4
commit
1015ba3433
@ -1344,7 +1344,7 @@ class Logics:
|
||||
pass
|
||||
send_notification.delay(order_id=order.id, message="order_taken_confirmed")
|
||||
order.log(
|
||||
f"<b>Contract formalized.</b> Maker: Robot({order.maker.robot.id},{order.maker}). Taker: Robot({order.taker.robot.id},{order.taker}). API median price {order.currency.exchange_rate} {Currency.currency_choices[order.currency.currency-1][1]}/BTC. Premium is {order.premium}%. Contract size {order.last_satoshis} Sats"
|
||||
f"<b>Contract formalized.</b> Maker: Robot({order.maker.robot.id},{order.maker}). Taker: Robot({order.taker.robot.id},{order.taker}). API median price {order.currency.exchange_rate} {dict(Currency.currency_choices)[order.currency.currency]}/BTC. Premium is {order.premium}%. Contract size {order.last_satoshis} Sats"
|
||||
)
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user