diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrderProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrderProcessor.kt index a1345538f..7d1ba9c65 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrderProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/OrderProcessor.kt @@ -229,7 +229,7 @@ internal class OrderProcessor(parser: ParserProtocol) : BaseProcessor(parser) { // if order is short-term order and indexer returns best effort canceled and has no partial fill // treat as a pending order until it's partially filled or finalized val isBestEffortCanceled = modified["status"] == "BEST_EFFORT_CANCELED" - val isNotUserCanceled = modified["cancelReason"] != "USER_CANCELED" + val isNotUserCanceled = modified["cancelReason"] != "USER_CANCELED" && modified["cancelReason"] != "ORDER_REMOVAL_REASON_USER_CANCELED" if (orderFlags.equals(Numeric.double.ZERO) && isBestEffortCanceled && isNotUserCanceled) { modified.safeSet("status", "PENDING") }