File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ const { queryContract } = require('../helper/chain/cosmos')
3
3
const config = {
4
4
neutron : [ {
5
5
coinGeckoId : "cosmos" ,
6
- contract : "neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr"
6
+ dropContract : "neutron16m3hjh7l04kap086jgwthduma0r5l0wh8kc6kaqk92ge9n5aqvys9q6lxr"
7
+ } ,
8
+ {
9
+ coinGeckoId : "celestia" ,
10
+ dropContract : "neutron1fp649j8djj676kfvh0qj8nt90ne86a8f033w9q7p9vkcqk9mmeeqxc9955"
7
11
} ] ,
8
12
} ;
9
13
10
14
async function tvl ( api ) {
11
- for ( const { coinGeckoId, contract , decimals = 6 } of config [ api . chain ] ) {
12
- const bonded = await queryContract ( { contract, chain : api . chain , data : { "total_bonded" : { } } } )
15
+ for ( const { coinGeckoId, dropContract , decimals = 6 } of config [ api . chain ] ) {
16
+ const bonded = await queryContract ( { contract : dropContract , chain : api . chain , data : { "total_bonded" : { } } } )
13
17
api . addCGToken ( coinGeckoId , bonded / 10 ** decimals )
14
18
}
15
19
}
You can’t perform that action at this time.
0 commit comments