Skip to content

Commit

Permalink
Revert "temp: nullify uniV3 pool state"
Browse files Browse the repository at this point in the history
This reverts commit e2f78a8.
  • Loading branch information
KanievskyiDanylo committed Dec 9, 2024
1 parent 27b3526 commit 34c4588
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/dex/uniswap-v3/uniswap-v3-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,24 +554,4 @@ export class UniswapV3EventPool extends StatefulEventSubscriber<PoolState> {
this.poolInitCodeHash,
);
}

// todo: remove
// nullify the state for specific pool for testing purposes
async update(
logs: Readonly<Log>[],
blockHeaders: Readonly<{ [p: number]: Readonly<BlockHeader> }>,
) {
// USDT - WETH Mainnet UniswapV3 Pool
if (this.poolAddress === '0x11b815efb8f581194ae79006d24e0d814b7697f6') {
const blockNumbers = logs.map(log => log.blockNumber);
this.logger.info(
`Invalidating state for pool ${
this.poolAddress
} at blocks ${blockNumbers.join(', ')}`,
);
this.invalidate();
} else {
await super.update(logs, blockHeaders);
}
}
}

0 comments on commit 34c4588

Please sign in to comment.