From 6feed1046cc94b61120429a048d3ae1a10a2b728 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 1 Dec 2022 10:17:25 -0800 Subject: [PATCH] Fix spinning wheel of death at trade summary generation w onchain payouts --- api/logics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index a9a0fbef..08029856 100644 --- a/api/logics.py +++ b/api/logics.py @@ -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: