Skip to content

Commit

Permalink
Fix contract finalization logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Sep 10, 2023
1 parent 6f9adde commit a00189a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/logics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ def finalize_contract(cls, order):
pass
send_notification.delay(order_id=order.id, message="order_taken_confirmed")
order.log(
f"<b>Contract formalized.</b> Maker: Robot({order.maker.robot},{order.maker.username}). Taker: Robot({order.taker.robot},{order.taker.username}). API median price {order.currency.exchange_rate} {Currency.currency_choices(order.currency.currency).label}/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} {Currency.currency_choices[order.currency.currency][1]}/BTC. Premium is {order.premium}%. Contract size {order.last_satoshis} Sats"
)
return True

Expand Down

0 comments on commit a00189a

Please sign in to comment.