File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 11const { getUniTVL } = require ( '../helper/unknownTokens.js' )
2- const config = {
3- base : { factory : '0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A' , blacklistedTokens : [ '0xdbfefd2e8460a6ee4955a68582f85708baea60a3' ] } ,
2+ const { mergeExports } = require ( '../helper/utils' )
3+
4+ const blacklistedTokens = [ '0xdbfefd2e8460a6ee4955a68582f85708baea60a3' ]
5+
6+ const export1 = {
7+ base : {
8+ tvl : getUniTVL ( {
9+ factory : '0x5e7BB104d84c7CB9B682AaC2F3d509f5F406809A' , blacklistedTokens, fetchBalances : true , abis : {
10+ allPairsLength : 'uint256:allPoolsLength' ,
11+ allPairs : "function allPools(uint) view returns (address)" ,
12+ }
13+ } )
14+ }
415}
516
6- Object . keys ( config ) . forEach ( chain => {
7- const { factory, blacklistedTokens, } = config [ chain ]
8- module . exports [ chain ] = {
17+ const export2 = {
18+ base : {
919 tvl : getUniTVL ( {
10- factory, blacklistedTokens, fetchBalances : true , abis : {
20+ factory : '0xaDe65c38CD4849aDBA595a4323a8C7DdfE89716a' , blacklistedTokens, fetchBalances : true , abis : {
1121 allPairsLength : 'uint256:allPoolsLength' ,
1222 allPairs : "function allPools(uint) view returns (address)" ,
1323 }
1424 } )
1525 }
16- } )
26+ }
27+
28+ module . exports = mergeExports ( [ export1 , export2 ] )
You can’t perform that action at this time.
0 commit comments