Try to fix

This commit is contained in:
koalasat
2025-02-28 23:48:30 +01:00
parent 9498fe5b47
commit 4f8139bb01

View File

@ -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"])