Skip to content

Commit

Permalink
Off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Oct 25, 2024
1 parent eefff3e commit 18f5b73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ function aggregateVaultPnlTicks(
vaultCreationTimes,
DateTime.fromISO(aggregatedTick.pnlTick.createdAt),
(a: DateTime, b: DateTime) => { return a.diff(b).milliseconds; },
) + 1;
);
console.log(`Num vaults created: ${numVaultsCreated}, num ticks: ${aggregatedTick.numTicks}, createdAt: ${aggregatedTick.pnlTick.createdAt}`)
// Number of ticks should be strictly greater than number of vaults created before it
// as there should be a tick for the main vault subaccount.
Expand Down

0 comments on commit 18f5b73

Please sign in to comment.