Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Nov 16, 2024
1 parent 8d1455d commit 0cffd8b
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,11 @@ internal open class SubaccountProcessor(
state.calculated[CalculationPeriod.current] = subaccountCalculated

val fills = parser.asTypedList<IndexerCompositeFillObject>(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<IndexerCompositeOrderObject>(content["orders"])
state = processOrders(
Expand Down

0 comments on commit 0cffd8b

Please sign in to comment.