Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Nov 12, 2024
1 parent 99d7179 commit f65f0dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ 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
Expand Down

0 comments on commit f65f0dc

Please sign in to comment.