Skip to content

Commit

Permalink
only allow VIRTUAL/GAME for now
Browse files Browse the repository at this point in the history
  • Loading branch information
xrsv committed Nov 29, 2024
1 parent 18e1815 commit a83f9b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/v2/subgraph-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,15 @@ export class V2SubgraphProvider implements IV2SubgraphProvider {

// TODO: Remove. Temporary fix to ensure tokens without trackedReserveETH are in the list.
const FEI = '0x956f47f50a910163d8bf957cf5846d573e7f87ca';
const VIRTUAL_BASE = '0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b';

// TODO: Remove. Temporary fix to allow VIRTUAL/GAME V2 pool to be included in the list.
const VIRTUAL_GAME_3PCT_BASE = '0xD418dfE7670c21F682E041F34250c114DB5D7789'.toLowerCase();

const tracked = pools.filter(
(pool) =>
pool.token0.id == FEI ||
pool.token1.id == FEI ||
(this.chainId === ChainId.BASE && pool.token0.id.toLowerCase() === VIRTUAL_BASE) ||
(this.chainId === ChainId.BASE && pool.token1.id.toLowerCase() === VIRTUAL_BASE) ||
(this.chainId === ChainId.BASE && pool.id.toLowerCase() === VIRTUAL_GAME_3PCT_BASE) ||
parseFloat(pool.trackedReserveETH) > this.trackedEthThreshold
);

Expand All @@ -272,8 +273,7 @@ export class V2SubgraphProvider implements IV2SubgraphProvider {
return (
pool.token0.id == FEI ||
pool.token1.id == FEI ||
(this.chainId === ChainId.BASE && pool.token0.id.toLowerCase() === VIRTUAL_BASE) ||
(this.chainId === ChainId.BASE && pool.token1.id.toLowerCase() === VIRTUAL_BASE) ||
(this.chainId === ChainId.BASE && pool.id.toLowerCase() === VIRTUAL_GAME_3PCT_BASE) ||
parseFloat(pool.trackedReserveETH) > this.trackedEthThreshold ||
parseFloat(pool.reserveUSD) > this.untrackedUsdThreshold
);
Expand Down

0 comments on commit a83f9b8

Please sign in to comment.