From 835ce8c78373de25d88a02465da451d1f1542da0 Mon Sep 17 00:00:00 2001 From: 0xpeluche <0xpeluche@protonmail.com> Date: Thu, 8 Aug 2024 09:46:37 +0200 Subject: [PATCH] fix: Stader --- projects/stader/index.js | 42 ++++------------------------------------ 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/projects/stader/index.js b/projects/stader/index.js index 8a57468974..6592e6af25 100644 --- a/projects/stader/index.js +++ b/projects/stader/index.js @@ -7,21 +7,13 @@ async function getData() { return _res; } -async function hbarTvl(timestamp) { +async function hbarTvl() { const res = await get("https://universe.staderlabs.com/common/tvl"); return { "hedera-hashgraph": res.hedera.native, }; } -async function fantomTvl() { - const res = await getData(); - return { - "fantom": res.fantom.native, - }; -} - - async function maticTvl() { const res = await getData(); return { @@ -29,13 +21,6 @@ async function maticTvl() { }; } -async function terra2Tvl() { - const res = await getData(); - return { - "terra-luna-2": res.terra.native || 0, - }; -} - async function bscTvl() { const res = await getData(); return { @@ -43,13 +28,6 @@ async function bscTvl() { }; } -async function nearTvl() { - const res = await getData(); - return { - near: res.near.native, - }; -} - async function ethTvl(api) { return await api.call({ abi: "uint256:totalAssets", @@ -61,28 +39,16 @@ module.exports = { timetravel: false, methodology: "We aggregated the assets staked across Stader staking protocols", - /*terra: { - tvl, - },*/ hedera: { tvl: hbarTvl, }, // its on ethereum because funds are locked there - /* ethereum: { - tvl: maticTvl - }, */ - fantom: { - tvl: () => ({}), - }, - terra2: { - tvl: terra2Tvl, - }, + // ethereum: { + // tvl: maticTvl + // }, bsc: { tvl: bscTvl, }, - near: { - tvl: nearTvl, - }, ethereum: { tvl: async (api) => { const res = await getData();