From 89acecbc1c74ccee6431c5c83afb10a9c845ec19 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 9 May 2023 06:21:40 -0700 Subject: [PATCH] Fix automatic dispute resolution typo --- api/logics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/logics.py b/api/logics.py index a65432a8..136203e7 100644 --- a/api/logics.py +++ b/api/logics.py @@ -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)