Skip to content

Commit

Permalink
remove payout_tx check in logics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryfletcher21 committed Jun 20, 2024
1 parent 7bfafc9 commit 5e26e3a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/logics.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,10 +736,9 @@ def payout_amount(cls, order, user):
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[
Expand Down

0 comments on commit 5e26e3a

Please sign in to comment.