Skip to content

Commit f9523c5

Browse files
authored
Add staked hype (#15561)
1 parent c295bdc commit f9523c5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

projects/staked-hype/index.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const ADDRESSES = require('../helper/coreAssets.json')
2+
3+
// Staked Hype (stHYPE) - Liquid staking protocol for Hyperliquid
4+
const STHYPE_TOKEN = '0xfFaa4a3D97fE9107Cef8a3F48c069F577Ff76cC1'
5+
const WHYPE = ADDRESSES.hyperliquid.WHYPE
6+
7+
async function tvl(api) {
8+
// Get total staked HYPE using totalAssets() method
9+
const totalStakedHYPE = await api.call({
10+
target: STHYPE_TOKEN,
11+
abi: 'uint256:totalSupply'
12+
})
13+
14+
// Add HYPE (underlying asset) to TVL
15+
api.add(WHYPE, totalStakedHYPE)
16+
}
17+
18+
module.exports = {
19+
methodology: 'Tracks the total value of HYPE tokens staked through the Staked Hype liquid staking protocol. Users stake HYPE and receive stHYPE tokens that accrue rewards via rebase.',
20+
hyperliquid: {
21+
tvl
22+
}
23+
}

0 commit comments

Comments
 (0)