Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(uniswap-v2): Add pools that are missing because of subgraph lag
Browse files Browse the repository at this point in the history
  • Loading branch information
immasandwich committed Jun 21, 2022
1 parent 6eb0346 commit 1bb89ee
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions src/apps/uniswap-v2/ethereum/uniswap-v2.pool.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,21 @@ export class EthereumUniswapV2PoolTokenFetcher implements PositionFetcher<AppTok
first: 1000,
orderBy: 'trackedReserveETH',
requiredPools: [
'0xaad22f5543fcdaa694b68f94be177b561836ae57', // sUSD-$BASED
'0xe98f89a2b3aecdbe2118202826478eb02434459a', // DAI-DEBASE
'0x980a07e4f64d21a0cb2ef8d4af362a79b9f5c0da', // DAI-BSGS
'0xf58d2bacbc68c587730ea0ce5131f6ae7c622a5d', // ORCL5-ETH
'0xc3601f3e1c26d1a47571c559348e4156786d1fec', // DUCK-WETH
'0xcadd30b39f01cfdfb848174b19bbb5b1b7486159', // DSU-ESS
'0x0bf46ba06dc1d33c3bd80ff42497ebff13a88900', // rDPX- ETH
'0xfd0a40bc83c5fae4203dec7e5929b446b07d1c76', // FRAX-ETH
'0x97c4adc5d28a86f9470c70dd91dc6cc2f20d2d4d', // FRAX-USDC
'0x5d447fc0f8965ced158bab42414af10139edf0af', // MIR/UST
'0xbc07342d01ff5d72021bb4cb95f07c252e575309', // mVIXY/UST
'0x1fabef2c2dab77f01053e9600f70be1f3f657f51', // mAMZN/UST
'0x29cf719d134c1c18dab61c2f4c0529c4895ecf44', // mNFLX/UST
'0x43dfb87a26ba812b0988ebdf44e3e341144722ab', // mTSLA/UST
'0x27a14c03c364d3265e0788f536ad8d7afb0695f7', // mMSFT/UST
'0xc1d2ca26a59e201814bf6af633c3b3478180e91f', // mQQQ/UST
'0x2221518288af8c5d5a87fd32717fab154240d942', // mUSO/UST
'0x5b64bb4f69c8c03250ac560aac4c7401d78a1c32', // mGOOGL/UST
'0x99d737ab0df10cdc99c6f64d0384acd5c03aef7f', // mTWTR/UST
'0x769325e8498bf2c2c3cfd6464a60fa213f26afcc', // mBABA/UST
'0x860425be6ad1345dc7a3e287facbf32b18bc4fae', // mSLV/UST
'0xe214a6ca22be90f011f34fdddc7c5a07800f8bcd', // mIAU/UST
'0x735659c8576d88a2eb5c810415ea51cb06931696', // mAAPL/UST
// pairs that should be tracked but arent due to lag in subgraph
'0x9928e4046d7c6513326ccea028cd3e7a91c7590a', // FEI/TRIBE
'0xcd7989894bc033581532d2cd88da5db0a4b12859', // WBTC/BADGER
'0xe1573b9d29e2183b1af0e743dc2754979a40d237', // FXS/FRAX
'0x709f7b10f22eb62b05913b59b92ddd372d4e2152', // PAXG/USDP
// other pairs tracked for farms, etc.
'0xaad22f5543fcdaa694b68f94be177b561836ae57', // sUSD/$BASED
'0xe98f89a2b3aecdbe2118202826478eb02434459a', // DAI/DEBASE
'0x980a07e4f64d21a0cb2ef8d4af362a79b9f5c0da', // DAI/BSGS
'0xf58d2bacbc68c587730ea0ce5131f6ae7c622a5d', // ORCL5/ETH
'0xc3601f3e1c26d1a47571c559348e4156786d1fec', // DUCK/WETH
'0xcadd30b39f01cfdfb848174b19bbb5b1b7486159', // DSU/ESS
'0x0bf46ba06dc1d33c3bd80ff42497ebff13a88900', // rDPX/ETH
'0xfd0a40bc83c5fae4203dec7e5929b446b07d1c76', // FRAX/ETH
'0x97c4adc5d28a86f9470c70dd91dc6cc2f20d2d4d', // FRAX/USDC
],
}),
resolveDerivedUnderlyingToken: this.uniswapV2OnChainTokenDerivationStrategy.build({
Expand Down Expand Up @@ -99,14 +91,21 @@ export class EthereumUniswapV2PoolTokenFetcher implements PositionFetcher<AppTok
subgraphUrl: 'https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2',
first: 1000,
requiredPools: [
'0xaad22f5543fcdaa694b68f94be177b561836ae57', // sUSD-$BASED
'0xe98f89a2b3aecdbe2118202826478eb02434459a', // DAI-DEBASE
'0x980a07e4f64d21a0cb2ef8d4af362a79b9f5c0da', // DAI-BSGS
'0xf58d2bacbc68c587730ea0ce5131f6ae7c622a5d', // ORCL5-ETH
'0xc3601f3e1c26d1a47571c559348e4156786d1fec', // DUCK-WETH
'0xcadd30b39f01cfdfb848174b19bbb5b1b7486159', // DSU-ESS
'0x0bf46ba06dc1d33c3bd80ff42497ebff13a88900', // rDPX- ETH
'0xfd0a40bc83c5fae4203dec7e5929b446b07d1c76', // FRAX-ETH
// pairs that should be tracked but arent due to lag in subgraph
'0x9928e4046d7c6513326ccea028cd3e7a91c7590a', // FEI/TRIBE
'0xcd7989894bc033581532d2cd88da5db0a4b12859', // WBTC/BADGER
'0xe1573b9d29e2183b1af0e743dc2754979a40d237', // FXS/FRAX
'0x709f7b10f22eb62b05913b59b92ddd372d4e2152', // PAXG/USDP
// other pairs tracked for farms, etc.
'0xaad22f5543fcdaa694b68f94be177b561836ae57', // sUSD/$BASED
'0xe98f89a2b3aecdbe2118202826478eb02434459a', // DAI/DEBASE
'0x980a07e4f64d21a0cb2ef8d4af362a79b9f5c0da', // DAI/BSGS
'0xf58d2bacbc68c587730ea0ce5131f6ae7c622a5d', // ORCL5/ETH
'0xc3601f3e1c26d1a47571c559348e4156786d1fec', // DUCK/WETH
'0xcadd30b39f01cfdfb848174b19bbb5b1b7486159', // DSU/ESS
'0x0bf46ba06dc1d33c3bd80ff42497ebff13a88900', // rDPX/ETH
'0xfd0a40bc83c5fae4203dec7e5929b446b07d1c76', // FRAX/ETH
'0x97c4adc5d28a86f9470c70dd91dc6cc2f20d2d4d', // FRAX/USDC
],
}),
});
Expand Down

0 comments on commit 1bb89ee

Please sign in to comment.