From 1015ba34330a8f53fbc23de0d4c0ad5a45da783f Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 14 Sep 2023 02:31:42 -0700 Subject: [PATCH] Fix list out of range on contract formalized order logging --- api/logics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index d2b4ee99..7ec5a9e6 100644 --- a/api/logics.py +++ b/api/logics.py @@ -1344,7 +1344,7 @@ class Logics: pass send_notification.delay(order_id=order.id, message="order_taken_confirmed") order.log( - f"Contract formalized. 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"Contract formalized. 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