From 3b72ef4fc75ef838ded3b2f79d2f8133e4c41983 Mon Sep 17 00:00:00 2001 From: Philippe Date: Tue, 21 Nov 2023 15:22:15 +0100 Subject: [PATCH] Fix unexpected value in getFactoryAPYs --- pages/api/getFactoryAPYs/ethereum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/getFactoryAPYs/ethereum.js b/pages/api/getFactoryAPYs/ethereum.js index 45a4081a..4e46e13f 100644 --- a/pages/api/getFactoryAPYs/ethereum.js +++ b/pages/api/getFactoryAPYs/ethereum.js @@ -138,7 +138,7 @@ export default fn(async ({ version }) => { index, poolAddress: pool.address, poolSymbol: pool.symbol, - apyFormatted: `${poolStats.latestDailyApy.toFixed(2)}%`, + apyFormatted: `${(poolStats.latestDailyApy ?? 0).toFixed(2)}%`, apy: poolStats.latestDailyApy, apyWeekly: poolStats.latestWeeklyApy, virtualPrice: poolStats.virtualPrice,