File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1
1
const { sumTokens } = require ( '../helper/chain/starknet' )
2
2
const { getConfig } = require ( '../helper/cache' )
3
+ const { sumTokensExport } = require ( '../helper/unwrapLPs' )
3
4
4
5
const market = '0x00000005dd3d2f4429af886cd1a3b08289dbcea99a294197e9eb43b0e0325b4b'
5
6
6
- async function tvl ( api ) {
7
+ async function starknetTvl ( api ) {
7
8
const tokens = await getConfig ( 'ekubo' , "https://mainnet-api.ekubo.org/tokens" )
8
9
return sumTokens ( { api, owner : market , tokens : tokens . map ( t => t . l2_token_address ) } )
9
10
}
10
11
12
+ const config = {
13
+ ethereum : {
14
+ owners : [ '0xe0e0e08a6a4b9dc7bd67bcb7aade5cf48157d444' ] ,
15
+ blacklistedTokens : [ ]
16
+ }
17
+ }
18
+
19
+ Object . keys ( config ) . forEach ( chain => {
20
+ config [ chain ] . fetchCoValentTokens = true
21
+ config [ chain ] . tokenConfig = { onlyWhitelisted : false }
22
+ } )
23
+
24
+ const ethTvl = sumTokensExport ( config . ethereum )
25
+
11
26
module . exports = {
12
27
methodology : 'Value of LP in the DEX, includes LPs that are out of range and thus not providing active liquidity' ,
13
28
starknet : {
14
- tvl
29
+ tvl : starknetTvl
30
+ } ,
31
+ ethereum : {
32
+ tvl : ethTvl
15
33
} ,
16
34
isHeavyProtocol : true ,
17
35
}
You can’t perform that action at this time.
0 commit comments