File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
- const ADDRESSES = require ( '../helper/coreAssets.json' )
2
- const { sumTokens2 } = require ( '../helper/unwrapLPs' )
1
+ const { sumTokensExport, nullAddress } = require ( '../helper/unwrapLPs' )
3
2
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' ,
11
13
}
12
14
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 ] } )
16
18
}
17
- }
19
+ } )
You can’t perform that action at this time.
0 commit comments