File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 127
127
" hpb" ,
128
128
" hydra" ,
129
129
" hydradx" ,
130
+ " hyperliquid" ,
130
131
" icon" ,
131
132
" icp" ,
132
133
" imx" ,
Original file line number Diff line number Diff line change
1
+ const { post } = require ( '../helper/http' )
2
+
3
+ async function tvl ( api ) {
4
+ let data = await post ( 'https://api.hyperliquid.xyz/info' , { "type" :"tvlBreakdown" } )
5
+ data = data . find ( i => i . protocol === "Hyperliquid Perps DEX" )
6
+ data . tokens . forEach ( i => api . addCGToken ( 'tether' , + i . usdcValue ) )
7
+ }
8
+
9
+ module . exports = {
10
+ misrepresentedTokens : true ,
11
+ hyperliquid : { tvl }
12
+ }
Original file line number Diff line number Diff line change
1
+ const { post } = require ( '../helper/http' )
2
+
3
+ async function tvl ( api ) {
4
+ let data = await post ( 'https://api.hyperliquid.xyz/info' , { "type" :"tvlBreakdown" } )
5
+ data = data . find ( i => i . protocol === "Hyperliquid Spot DEX" )
6
+ data . tokens . forEach ( i => api . addCGToken ( 'tether' , api . usdcValue ) )
7
+ }
8
+
9
+ module . exports = {
10
+ misrepresentedTokens : true ,
11
+ hyperliquid : { tvl }
12
+ }
You can’t perform that action at this time.
0 commit comments