Skip to content

Commit

Permalink
De-duplicate and filter out invalid pnl ticks for megavault. (#2540)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Adam Fraser <[email protected]>
Co-authored-by: jerryfan01234 <[email protected]>
Co-authored-by: dydxwill <[email protected]>
Co-authored-by: roy-dydx <[email protected]>
Co-authored-by: Mohammed Affan <[email protected]>
  • Loading branch information
7 people committed Nov 20, 2024
1 parent 9ecd384 commit 412eece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/services/comlink/__tests__/lib/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ describe('helpers', () => {
),
};
const blockHeight2: string = '80';
const blockTime2: string = DateTime.fromISO(pnlTick.createdAt).startOf('hour').plus({ minute: 61 }).toISO();
const blockTime2: string = DateTime.fromISO(pnlTick.createdAt).plus({ hour: 1 }).toISO();
const pnlTick3: PnlTicksFromDatabase = {
...testConstants.defaultPnlTick,
id: PnlTicksTable.uuid(
Expand All @@ -888,7 +888,7 @@ describe('helpers', () => {
createdAt: blockTime2,
};
const blockHeight3: string = '81';
const blockTime3: string = DateTime.fromISO(pnlTick.createdAt).startOf('hour').plus({ minute: 62 }).toISO();
const blockTime3: string = DateTime.fromISO(pnlTick.createdAt).plus({ minute: 61 }).toISO();
const pnlTick4: PnlTicksFromDatabase = {
...testConstants.defaultPnlTick,
subaccountId: testConstants.defaultSubaccountId2,
Expand Down

0 comments on commit 412eece

Please sign in to comment.