mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-25 22:43:26 +00:00
Fix automatic dispute resolution typo
This commit is contained in:
@ -381,7 +381,7 @@ class Logics:
|
|||||||
|
|
||||||
# If fiat has been marked as sent, automatic dispute
|
# If fiat has been marked as sent, automatic dispute
|
||||||
# resolution is not possible.
|
# resolution is not possible.
|
||||||
if order.is_fiat_sent:
|
if order.is_fiat_sent and not order.reverted_fiat_sent:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# If the order has not entered dispute due to time expire
|
# If the order has not entered dispute due to time expire
|
||||||
@ -410,7 +410,7 @@ class Logics:
|
|||||||
cls.add_slashed_rewards(order, order.maker_bond, order.taker_bond)
|
cls.add_slashed_rewards(order, order.maker_bond, order.taker_bond)
|
||||||
order.status = Order.Status.MLD
|
order.status = Order.Status.MLD
|
||||||
|
|
||||||
elif num_messages_maker == 0:
|
elif num_messages_taker == 0:
|
||||||
cls.return_escrow(order)
|
cls.return_escrow(order)
|
||||||
cls.settle_bond(order.maker_bond)
|
cls.settle_bond(order.maker_bond)
|
||||||
cls.return_bond(order.taker_bond)
|
cls.return_bond(order.taker_bond)
|
||||||
|
Reference in New Issue
Block a user