From be2b8d371bbde69b8d24b402497c05ec1fe1cab6 Mon Sep 17 00:00:00 2001 From: bagful Date: Fri, 6 Dec 2024 16:36:21 +0800 Subject: [PATCH] add bagful apy info --- src/adaptors/bagful/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/adaptors/bagful/index.js b/src/adaptors/bagful/index.js index 57146ea403..b22160a18b 100644 --- a/src/adaptors/bagful/index.js +++ b/src/adaptors/bagful/index.js @@ -79,16 +79,16 @@ const apy = async () => { if (pool === undefined) { continue; } - let apyBase; + let apy; let tvlUsd = BigNumber(pool.tvl) .div(Math.pow(10, token.decimals)) .multipliedBy(tokenPrices[token.priceKey]) .toNumber(); if (token.isFixedRate) { - apyBase = token.fixedRate; + apy = token.fixedRate; } else { - apyBase = + apy = tvlUsd === 0 ? '0' : (token.dailyRewardAmount * @@ -104,7 +104,7 @@ const apy = async () => { symbol: token.symbol, underlyingTokens: [pool.poolAssets], tvlUsd, - apyBase, + apy, }); } return apyInfos;