remove payout_tx check in logics.py

This commit is contained in:
jerryfletcher21 2024-06-20 19:26:42 +02:00
parent 7bfafc933e
commit 5e26e3ab93
No known key found for this signature in database
GPG Key ID: 6FA7713E574EDEC3

View File

@ -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[