Skip to content

Commit

Permalink
fix missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-onthelawn committed May 23, 2024
1 parent 103dd81 commit d62ff52
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 183 deletions.
6 changes: 5 additions & 1 deletion src/commonMain/kotlin/exchange.dydx.abacus/output/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1827,8 +1827,12 @@ data class TradingRewards(
}

else -> {
val modified = item.mutable()
modified.safeSet("cumulativeAmount", obj.cumulativeAmount)
val synced =
HistoricalTradingReward.create(obj, parser, modified, period)
addHistoricalTradingRewards(result, obj, period, lastStart)
result.add(obj)
result.add(synced!!)
objIndex++
dataIndex++
lastStart = obj.startedAtInMilliseconds
Expand Down
Loading

0 comments on commit d62ff52

Please sign in to comment.