Skip to content

Commit 23592cd

Browse files
Add yield bearing lst in hydro-protocol (#17251)
1 parent b1e697b commit 23592cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

projects/hydro-protocol/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { queryContract, } = require("../helper/chain/cosmos");
22
const ADDRESSES = require("../helper/coreAssets.json");
33

44
const hinj = "inj18luqttqyckgpddndh8hvaq25d5nfwjc78m56lc"
5+
const yieldBearingLsd = "inj14uqj744gah8hmdzjgkkcj6cs9knqtys0hm32pu"
56
const autoCompound = "inj1mjcg8a73904rj4w7t5qkgn0apua98n059nufma"
67
const xhdro = "inj1qc2tw477wwuvkad0h3g78xqgwx4k8knat6vz0h"
78

@@ -15,10 +16,11 @@ async function staking(api) {
1516

1617
async 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

0 commit comments

Comments
 (0)