Skip to content

Commit

Permalink
add chainId base check
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Nov 29, 2024
1 parent 4971408 commit d951166
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/v2/subgraph-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand All @@ -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
);
Expand Down

0 comments on commit d951166

Please sign in to comment.