File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const { queryContract, } = require("../helper/chain/cosmos");
22const ADDRESSES = require ( "../helper/coreAssets.json" ) ;
33
44const hinj = "inj18luqttqyckgpddndh8hvaq25d5nfwjc78m56lc"
5+ const yieldBearingLsd = "inj14uqj744gah8hmdzjgkkcj6cs9knqtys0hm32pu"
56const autoCompound = "inj1mjcg8a73904rj4w7t5qkgn0apua98n059nufma"
67const xhdro = "inj1qc2tw477wwuvkad0h3g78xqgwx4k8knat6vz0h"
78
@@ -15,10 +16,11 @@ async function staking(api) {
1516
1617async function tvl ( api ) {
1718 const { total_supply } = await queryContract ( { chain : api . chain , contract : hinj , data : { token_info : { } } } )
18- const { total_bonded } = await queryContract ( { chain : api . chain , contract : autoCompound , data : { state : { } } } )
19+ const { total_bonded : autoCompoundTotalBonded } = await queryContract ( { chain : api . chain , contract : autoCompound , data : { state : { } } } )
20+ const { total_bonded : yieldBearingTotalBonded } = await queryContract ( { chain : api . chain , contract : yieldBearingLsd , data : { state : { } } } )
1921
2022 api . add (
21- ADDRESSES . injective . INJ , + total_supply + + total_bonded
23+ ADDRESSES . injective . INJ , + total_supply + + autoCompoundTotalBonded + + yieldBearingTotalBonded
2224 )
2325}
2426
You can’t perform that action at this time.
0 commit comments