diff --git a/build.gradle.kts b/build.gradle.kts index cd609a10e..c437aaf2a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.31" +version = "1.13.32" repositories { google() 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 df3ffa509..9189a7969 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,11 +124,14 @@ internal open class SubaccountProcessor( state.calculated[CalculationPeriod.current] = subaccountCalculated val fills = parser.asTypedList(content["fills"]) - state = processFills( - subaccount = state, - payload = fills, - reset = false, - ) + // fills is sometimes null on this message, doesn't mean there are none + if (fills != null) { + state = processFills( + subaccount = state, + payload = fills, + reset = false, + ) + } val orders = parser.asTypedList(content["orders"]) state = processOrders( @@ -250,7 +253,6 @@ internal open class SubaccountProcessor( existing.assetPositions = assetPositionsProcessor.process( payload = payload.assetPositions, ) - existing.orders = null } val subaccountCalculated = existing.calculated[CalculationPeriod.current] ?: InternalSubaccountCalculated() diff --git a/v4_abacus.podspec b/v4_abacus.podspec index 16515ebbd..ff24f26e4 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.31' + spec.version = '1.13.32' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''