Skip to content

Commit dd9371c

Browse files
committed
fix: felix usdhl tvl should track M holdings
1 parent a84196d commit dd9371c

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

projects/felix-usdhl/index.js

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
const { staking } = require("../helper/staking");
1+
async function tvl(api) {
2+
const mToken = '0x866a2bf4e572cbcf37d5071a7a58503bfb36be1b';
3+
const holder = '0xb50a96253abdf803d85efcdce07ad8becbc52bd5';
4+
const balance = await api.call({
5+
abi: 'erc20:balanceOf',
6+
target: mToken,
7+
params: [holder]
8+
})
9+
10+
const usdValue = balance / 1e6;
11+
12+
return { 'usd-coin': usdValue }
13+
}
214

315
module.exports = {
4-
ethereum: {
5-
tvl: staking('0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE', '0x866a2bf4e572cbcf37d5071a7a58503bfb36be1b')
6-
7-
}
16+
hyperliquid: {
17+
tvl,
18+
},
819
}

0 commit comments

Comments
 (0)