mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-31 10:31:35 +00:00
Fix spinning wheel of death at trade summary generation w onchain payouts
This commit is contained in:
parent
a7ad9c8c7e
commit
6feed1046c
@ -1696,7 +1696,7 @@ class Logics:
|
|||||||
summary["trade_fee_sats"] = round(
|
summary["trade_fee_sats"] = round(
|
||||||
order.last_satoshis
|
order.last_satoshis
|
||||||
- summary["received_sats"]
|
- 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
|
# 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:
|
if users[order_user] == user and order.is_swap:
|
||||||
|
Loading…
Reference in New Issue
Block a user