Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/early_deposits' into early_deposits
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Sep 10, 2023
2 parents 7477f4c + b9f6ab2 commit 5c4fd05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dataworker/DataworkerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ export async function _buildPoolRebalanceRoot(
runningBalances,
clients.hubPoolClient,
earlyDeposit,
earlyDeposit.args.amount.mul(toBN(-1))
// TODO: fix this.
// Because cloneDeep drops the non-array elements of args, we have to use the index rather than the name.
// As a fix, earlyDeposits should be treated similarly to other events and transformed at ingestion time
// into a type that is more digestable rather than a raw event.
earlyDeposit.args[0].mul(toBN(-1))
);
});

Expand Down

0 comments on commit 5c4fd05

Please sign in to comment.