@@ -11,14 +11,14 @@ const contracts = require("./contracts.json");
11
11
const { getLogs } = require ( '../helper/cache/getLogs' )
12
12
13
13
const chains = [
14
- "ethereum" , //-200M
15
- "polygon" , //-40M
16
- "arbitrum" , //G
17
- "aurora" , //G
18
- "avax" , //-30M
19
- "fantom" , //-80M
20
- "optimism" , //-6M
21
- "xdai" , //G
14
+ "ethereum" ,
15
+ "polygon" ,
16
+ "arbitrum" ,
17
+ "aurora" ,
18
+ "avax" ,
19
+ "fantom" ,
20
+ "optimism" ,
21
+ "xdai" ,
22
22
"moonbeam" ,
23
23
"celo" ,
24
24
"kava" ,
@@ -29,7 +29,9 @@ const chains = [
29
29
"mantle" ,
30
30
"taiko" ,
31
31
"corn" ,
32
- ] ; // Object.keys(contracts);
32
+ "sonic" ,
33
+ "ink" ,
34
+ ] ;
33
35
const registryIds = {
34
36
stableswap : 0 ,
35
37
stableFactory : 3 ,
@@ -94,7 +96,7 @@ async function getPools(block, chain) {
94
96
let { registriesMapping, addressProvider } = contracts [ chain ]
95
97
if ( ! registriesMapping ) {
96
98
registriesMapping = { } ;
97
- if ( addressProvider ) {
99
+ if ( addressProvider ) {
98
100
( await sdk . api . abi . multiCall ( {
99
101
block, chain,
100
102
calls : Object . values ( registryIds ) . map ( r => ( { params : r } ) ) ,
@@ -259,18 +261,20 @@ module.exports = chainTypeExports(chains);
259
261
module . exports . ethereum [ "staking" ] = staking (
260
262
contracts . ethereum . veCRV ,
261
263
contracts . ethereum . CRV
262
- ) ;
264
+ ) ;
263
265
264
266
module . exports . harmony = {
265
267
tvl : async ( api ) => {
266
268
if ( api . timestamp > 1655989200 ) {
267
269
// harmony hack
268
270
return { } ;
269
271
}
270
- return api . sumTokens ( { owner : '0xC5cfaDA84E902aD92DD40194f0883ad49639b023' , tokens : [
271
- "0xef977d2f931c1978db5f6747666fa1eacb0d0339" ,
272
- "0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f"
273
- ] } )
272
+ return api . sumTokens ( {
273
+ owner : '0xC5cfaDA84E902aD92DD40194f0883ad49639b023' , tokens : [
274
+ "0xef977d2f931c1978db5f6747666fa1eacb0d0339" ,
275
+ "0x3c2b8be99c50593081eaa2a724f0b8285f5aba8f"
276
+ ]
277
+ } )
274
278
}
275
279
} ;
276
280
0 commit comments