From 5e26e3ab938bd7af79959b862761e26b12d1444c Mon Sep 17 00:00:00 2001 From: jerryfletcher21 Date: Thu, 20 Jun 2024 19:26:42 +0200 Subject: [PATCH] remove payout_tx check in logics.py --- api/logics.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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[