From 0cffd8b13d257fb807faceb1e77ff7c061fb6ad2 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 16 Nov 2024 14:58:18 -0500 Subject: [PATCH] fix --- .../processor/wallet/account/SubaccountProcessor.kt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/SubaccountProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/SubaccountProcessor.kt index 9189a7969..a1d52925c 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/SubaccountProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/SubaccountProcessor.kt @@ -124,14 +124,11 @@ internal open class SubaccountProcessor( state.calculated[CalculationPeriod.current] = subaccountCalculated val fills = parser.asTypedList(content["fills"]) - // fills is sometimes null on this message, doesn't mean there are none - if (fills != null) { - state = processFills( - subaccount = state, - payload = fills, - reset = false, - ) - } + state = processFills( + subaccount = state, + payload = fills, + reset = false, + ) val orders = parser.asTypedList(content["orders"]) state = processOrders(