From 4f8139bb01d3b7991fbbaf09f5b70ee890cb8bcc Mon Sep 17 00:00:00 2001 From: koalasat Date: Fri, 28 Feb 2025 23:48:30 +0100 Subject: [PATCH] Try to fix --- api/logics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index f813c292..ad74354c 100644 --- a/api/logics.py +++ b/api/logics.py @@ -1344,7 +1344,6 @@ class Logics: # (This is the last update to "last_satoshis", it becomes the escrow amount next) order.last_satoshis = cls.satoshis_now(order) order.last_satoshis_time = timezone.now() - order.amount = take_order.amount # With the bond confirmation the order is extended 'public_order_duration' hours order.expires_at = timezone.now() + timedelta( @@ -1363,6 +1362,10 @@ class Logics: ] ) + if order.has_range: + order.amount = take_order.amount + order.save(update_fields=["amount"]) + order.taker_bond.status = LNPayment.Status.LOCKED order.taker_bond.save(update_fields=["status"])