diff --git a/api/logics.py b/api/logics.py index 72122288..7049e21c 100644 --- a/api/logics.py +++ b/api/logics.py @@ -736,10 +736,9 @@ class Logics: valid = cls.create_onchain_payment( order, user, preliminary_amount=context["invoice_amount"] ) - if order.payout_tx is not None: - order.log( - f"Suggested mining fee is {order.payout_tx.suggested_mining_fee_rate} Sats/vbyte, the swap fee rate is {order.payout_tx.swap_fee_rate}%" - ) + order.log( + f"Suggested mining fee is {order.payout_tx.suggested_mining_fee_rate} Sats/vbyte, the swap fee rate is {order.payout_tx.swap_fee_rate}%" + ) if not valid: context["swap_allowed"] = False context[