mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-29 21:36:44 +08:00
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
const { post } = require('../helper/http')
|
|
|
|
async function tvl(api) {
|
|
let data= await post('https://api.hyperliquid.xyz/info', {"type":"tvlBreakdown"})
|
|
data = data.find(i => i.protocol === "Hyperliquid Spot DEX")
|
|
data.tokens.forEach(i => api.addCGToken('tether', +i.usdcValue))
|
|
}
|
|
|
|
module.exports = {
|
|
misrepresentedTokens: true,
|
|
hyperliquid: { tvl }
|
|
} |