We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84196d commit dd9371cCopy full SHA for dd9371c
projects/felix-usdhl/index.js
@@ -1,8 +1,19 @@
1
-const { staking } = require("../helper/staking");
+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
+}
14
15
module.exports = {
- ethereum: {
- tvl: staking('0x36f586A30502AE3afb555b8aA4dCc05d233c2ecE', '0x866a2bf4e572cbcf37d5071a7a58503bfb36be1b')
-
- }
16
+ hyperliquid: {
17
+ tvl,
18
+ },
19
}
0 commit comments