@@ -34,10 +34,18 @@ const config = {
34
34
'0x51c0378f913Fe3b79580E54AE5FB8682b856b5B6' ,
35
35
] ,
36
36
} ,
37
- base :{
37
+ base : {
38
38
exchanges : [
39
39
'0x3F7F51983fb95084a5cb73EB2F28757Bd8bb65E3' ,
40
40
] ,
41
+ } ,
42
+ mode : {
43
+ exchanges : [
44
+ '0xA3320CfD2027119fAe3DB4142546B86C6669646D' ,
45
+ '0x7165DE038b6b76F05F30696A40bEF228731D6DdC' ,
46
+ '0x4a0f2074F11FDB7084722fdF078e15E8E3a7A25D' ,
47
+ '0x72E0f90cdaEE4A919FA15F465e15210a5E5b9306' ,
48
+ ] ,
41
49
}
42
50
}
43
51
@@ -50,9 +58,9 @@ Object.keys(config).forEach(chain => {
50
58
const { exchanges } = config [ chain ]
51
59
module . exports [ chain ] = {
52
60
tvl : async ( _ , _b , _cb , { api, } ) => {
53
- const baseTokens = await api . multiCall ( { abi : 'address:baseToken' , calls : exchanges } )
54
- const quoteTokens = await api . multiCall ( { abi : 'address:quoteToken' , calls : exchanges } )
55
- return sumTokens2 ( { api, tokensAndOwners : exchanges . map ( ( v , i ) => [ [ baseTokens [ i ] , v ] , [ quoteTokens [ i ] , v ] ] ) . flat ( ) } )
61
+ const baseTokens = await api . multiCall ( { abi : 'address:baseToken' , calls : exchanges } )
62
+ const quoteTokens = await api . multiCall ( { abi : 'address:quoteToken' , calls : exchanges } )
63
+ return sumTokens2 ( { api, tokensAndOwners : exchanges . map ( ( v , i ) => [ [ baseTokens [ i ] , v ] , [ quoteTokens [ i ] , v ] ] ) . flat ( ) } )
56
64
}
57
65
}
58
66
} )
0 commit comments