From bb1e319d6333a462494edddeb2b824dc419a1469 Mon Sep 17 00:00:00 2001 From: jaredvu Date: Thu, 23 May 2024 00:26:01 -0700 Subject: [PATCH] use groupedSubaccounts to get correct validationErrors --- .../exchange.dydx.abacus/state/model/TradingStateMachine.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine.kt index 4e11626d4..e0cd84253 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/model/TradingStateMachine.kt @@ -1198,7 +1198,7 @@ open class TradingStateMachine( for (subaccountNumber in subaccountNumbers) { val subaccountText = "$subaccountNumber" val subaccount = - parser.asNativeMap(parser.value(this.account, "subaccounts.$subaccountNumber")) + parser.asNativeMap(parser.value(this.account, "groupedSubaccounts.$subaccountNumber")) ?: parser.asNativeMap(parser.value(this.account, "subaccounts.$subaccountNumber")) if (changes.changes.contains(Changes.historicalPnl)) { val now = ServerTime.now()