mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix early bond expiration
This commit is contained in:
@ -1375,8 +1375,7 @@ class Logics:
|
|||||||
order.maker.robot.save(update_fields=["total_contracts"])
|
order.maker.robot.save(update_fields=["total_contracts"])
|
||||||
order.taker.robot.save(update_fields=["total_contracts"])
|
order.taker.robot.save(update_fields=["total_contracts"])
|
||||||
|
|
||||||
take_order.expires_at = timezone.now()
|
take_order.delete()
|
||||||
take_order.save(update_fields=["expires_at"])
|
|
||||||
|
|
||||||
# Log a market tick
|
# Log a market tick
|
||||||
try:
|
try:
|
||||||
@ -1477,7 +1476,7 @@ class Logics:
|
|||||||
)
|
)
|
||||||
|
|
||||||
order.log(
|
order.log(
|
||||||
f"Taker bond invoice LNPayment({hold_payment['payment_hash']},{str(order.taker_bond)}) was created"
|
f"Taker bond invoice LNPayment({hold_payment['payment_hash']},{str(take_order.taker_bond)}) was created"
|
||||||
)
|
)
|
||||||
|
|
||||||
return True, {
|
return True, {
|
||||||
|
|||||||
Reference in New Issue
Block a user