From 34c4588b560a38fd294f38ada1546392696a2225 Mon Sep 17 00:00:00 2001 From: Danylo Kanievskyi Date: Mon, 9 Dec 2024 19:08:40 +0200 Subject: [PATCH] Revert "temp: nullify uniV3 pool state" This reverts commit e2f78a8a11de54445e2ece73cea264d1dca8b152. --- src/dex/uniswap-v3/uniswap-v3-pool.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/dex/uniswap-v3/uniswap-v3-pool.ts b/src/dex/uniswap-v3/uniswap-v3-pool.ts index 39ef9f2c2..b3b9d2143 100644 --- a/src/dex/uniswap-v3/uniswap-v3-pool.ts +++ b/src/dex/uniswap-v3/uniswap-v3-pool.ts @@ -554,24 +554,4 @@ export class UniswapV3EventPool extends StatefulEventSubscriber { this.poolInitCodeHash, ); } - - // todo: remove - // nullify the state for specific pool for testing purposes - async update( - logs: Readonly[], - blockHeaders: Readonly<{ [p: number]: Readonly }>, - ) { - // 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); - } - } }