Skip to content

Commit c9bb075

Browse files
committed
add new factory for aerodrome cl
1 parent 7346c30 commit c9bb075

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

projects/aerodrome-CL/index.js

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
const { 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])

0 commit comments

Comments
 (0)