From d95116604c4eb46f6a9ba35ac1329d2cca316f5c Mon Sep 17 00:00:00 2001 From: Vasilis Xouris Date: Fri, 29 Nov 2024 13:22:59 -0800 Subject: [PATCH] add chainId base check --- src/providers/v2/subgraph-provider.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/v2/subgraph-provider.ts b/src/providers/v2/subgraph-provider.ts index bba2221bc..063cecf7e 100644 --- a/src/providers/v2/subgraph-provider.ts +++ b/src/providers/v2/subgraph-provider.ts @@ -252,8 +252,8 @@ export class V2SubgraphProvider implements IV2SubgraphProvider { (pool) => pool.token0.id == FEI || pool.token1.id == FEI || - pool.token0.id.toLowerCase() == VIRTUAL_BASE || - pool.token1.id.toLowerCase() == VIRTUAL_BASE || + (this.chainId === ChainId.BASE && pool.token0.id.toLowerCase() === VIRTUAL_BASE) || + (this.chainId === ChainId.BASE && pool.token1.id.toLowerCase() === VIRTUAL_BASE) || parseFloat(pool.trackedReserveETH) > this.trackedEthThreshold ); @@ -272,8 +272,8 @@ export class V2SubgraphProvider implements IV2SubgraphProvider { return ( pool.token0.id == FEI || pool.token1.id == FEI || - pool.token0.id.toLowerCase() == VIRTUAL_BASE || - pool.token1.id.toLowerCase() == VIRTUAL_BASE || + (this.chainId === ChainId.BASE && pool.token0.id.toLowerCase() === VIRTUAL_BASE) || + (this.chainId === ChainId.BASE && pool.token1.id.toLowerCase() === VIRTUAL_BASE) || parseFloat(pool.trackedReserveETH) > this.trackedEthThreshold || parseFloat(pool.reserveUSD) > this.untrackedUsdThreshold );