diff --git a/build.gradle.kts b/build.gradle.kts index e052b3a1a..7a03f8d5e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.22" +version = "1.13.23" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/SubaccountTransactionSupervisor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/SubaccountTransactionSupervisor.kt index 7f412f212..f42cd00d6 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/SubaccountTransactionSupervisor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/SubaccountTransactionSupervisor.kt @@ -291,6 +291,8 @@ internal class SubaccountTransactionSupervisor( internal fun cancelTriggerOrdersWithClosedOrFlippedPositions() { val subaccount = stateMachine.state?.subaccount(subaccountNumber) ?: return + if (stateMachine.state?.marketsSummary?.marketIds()?.isEmpty() != false) return + val cancelableTriggerOrders = subaccount.orders?.filter { order -> val isConditionalOrder = order.orderFlags == CONDITIONAL_ORDER_FLAGS val isReduceOnly = order.reduceOnly diff --git a/v4_abacus.podspec b/v4_abacus.podspec index eee5ac80d..625071fd7 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.13.22' + spec.version = '1.13.23' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''