From 635e8634ebc3f35c362da99cf50835342f5c4b4c Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Fri, 17 May 2024 11:36:03 +0100 Subject: [PATCH] Convert dydx APR to float --- chains/chainMonitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chains/chainMonitor.js b/chains/chainMonitor.js index ac6de5a..7c24bb5 100644 --- a/chains/chainMonitor.js +++ b/chains/chainMonitor.js @@ -267,7 +267,7 @@ function ChainMonitor() { if (path === 'dydx') { const aprRequest = await got.get("https://api.lacertalabs.xyz/data/stakingapr", gotOpts).json(); return { - calculatedApr: bignumber(aprRequest['0']?.average_stakingapr) + calculatedApr: parseFloat(aprRequest['0']?.average_stakingapr) } } else if (path === 'sifchain') { const aprRequest = await got.get("https://data.sifchain.finance/beta/validator/stakingRewards", gotOpts).json();