Skip to content

Commit

Permalink
fix-orders-maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Nov 16, 2024
1 parent 198cbd5 commit 8d1455d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.13.31"
version = "1.13.32"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,14 @@ internal open class SubaccountProcessor(
state.calculated[CalculationPeriod.current] = subaccountCalculated

val fills = parser.asTypedList<IndexerCompositeFillObject>(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<IndexerCompositeOrderObject>(content["orders"])
state = processOrders(
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down

0 comments on commit 8d1455d

Please sign in to comment.