Skip to content

Commit 243c092

Browse files
Takaivag1nt0ki
andauthored
add new supported chains to copump project (tvl) (DefiLlama#15355)
Co-authored-by: g1nt0ki <[email protected]>
1 parent 5d5910b commit 243c092

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

projects/copump/index.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
const ADDRESSES = require('../helper/coreAssets.json')
2-
const { sumTokens2 } = require('../helper/unwrapLPs')
1+
const { sumTokensExport, nullAddress } = require('../helper/unwrapLPs')
32

4-
const TOKENS = [ADDRESSES.null]
5-
const OWNERS = [
6-
'0xbEF63121a00916d88c4558F2a92f7d931C67115B'
7-
]
8-
9-
async function tvl(api) {
10-
return await sumTokens2({ owner: OWNERS[0], tokens: TOKENS, api });
3+
const config = {
4+
core: '0xbEF63121a00916d88c4558F2a92f7d931C67115B',
5+
sonic: '0xbEF63121a00916d88c4558F2a92f7d931C67115B',
6+
sophon: '0x66Ae13488b281C0aCf731b8D7970E069b673df00',
7+
morph: '0x045AF95cAAbB5971183C411aBd7c81F2E122706D',
8+
celo: '0x797357F76042D76523848eF9ABb5e2e5c1aF1655',
9+
soneium: '0x1C0F98d9fE946d42f44196C439256BcfEe80B056',
10+
scroll: '0x809c2C530c35Dd0a8877e1EEf139fd60d9b811Eb',
11+
linea: '0xA74e55412Ffb46747dd45eeFdb68BF1366205036',
12+
taiko: '0x95e483Ce4acf1F24B6cBD8B369E0735a3e56f5BB',
1113
}
1214

13-
module.exports = {
14-
core: {
15-
tvl
15+
Object.keys(config).forEach(chain => {
16+
module.exports[chain] = {
17+
tvl: sumTokensExport({ owner: config[chain], tokens: [nullAddress] })
1618
}
17-
}
19+
})

0 commit comments

Comments
 (0)