From b7f6dcb1f5ee380730ad363f16e32bbd67879dc1 Mon Sep 17 00:00:00 2001 From: 0xpeluche <0xpeluche@protonmail.com> Date: Wed, 31 Jul 2024 11:00:41 +0200 Subject: [PATCH 1/2] fix stader --- projects/stader/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/stader/index.js b/projects/stader/index.js index 487a7b159b73..2d836c20b01a 100644 --- a/projects/stader/index.js +++ b/projects/stader/index.js @@ -14,6 +14,14 @@ async function hbarTvl(timestamp) { }; } +async function fantomTvl() { + const res = await getData(); + return { + "fantom": res.fantom.native, + }; +} + + async function maticTvl() { const res = await getData(); return { @@ -24,7 +32,7 @@ async function maticTvl() { async function terra2Tvl() { const res = await getData(); return { - "terra-luna-2": res.terra.native, + "terra-luna-2": res.terra.native || 0, }; } @@ -64,7 +72,7 @@ module.exports = { tvl: maticTvl }, */ fantom: { - tvl: () => ({}), + tvl: fantomTvl, }, terra2: { tvl: terra2Tvl, From 55e9dc780774f1cd8b325d355de461909f510508 Mon Sep 17 00:00:00 2001 From: 0xpeluche <0xpeluche@protonmail.com> Date: Wed, 31 Jul 2024 11:10:14 +0200 Subject: [PATCH 2/2] revert last commit for fantom --- projects/stader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/stader/index.js b/projects/stader/index.js index 2d836c20b01a..8a5746897459 100644 --- a/projects/stader/index.js +++ b/projects/stader/index.js @@ -72,7 +72,7 @@ module.exports = { tvl: maticTvl }, */ fantom: { - tvl: fantomTvl, + tvl: () => ({}), }, terra2: { tvl: terra2Tvl,