Fix spinning wheel of death at trade summary generation w onchain payouts

This commit is contained in:
Reckless_Satoshi 2022-12-01 10:17:25 -08:00
parent a7ad9c8c7e
commit 6feed1046c
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -1696,7 +1696,7 @@ class Logics:
summary["trade_fee_sats"] = round(
order.last_satoshis
- summary["received_sats"]
- order.payout.routing_budget_sats
- (order.payout.routing_budget_sats if not order.is_swap else 0)
)
# Only add context for swap costs if the user is the swap recipient. Peer should not know whether it was a swap
if users[order_user] == user and order.is_swap: