Fix automatic dispute resolution typo

This commit is contained in:
Reckless_Satoshi 2023-05-09 06:21:40 -07:00
parent 899062ae70
commit 89acecbc1c
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -381,7 +381,7 @@ class Logics:
# If fiat has been marked as sent, automatic dispute
# resolution is not possible.
if order.is_fiat_sent:
if order.is_fiat_sent and not order.reverted_fiat_sent:
return False
# 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)
order.status = Order.Status.MLD
elif num_messages_maker == 0:
elif num_messages_taker == 0:
cls.return_escrow(order)
cls.settle_bond(order.maker_bond)
cls.return_bond(order.taker_bond)