From 1911acdab83d4bb0c1c58e7ccdea91a5dca69efd Mon Sep 17 00:00:00 2001 From: slasher125 Date: Fri, 27 Oct 2023 11:31:31 +0400 Subject: [PATCH] yearn change to apyBase --- src/adaptors/yearn-finance/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adaptors/yearn-finance/index.js b/src/adaptors/yearn-finance/index.js index 6cb735a517..2354ac9742 100755 --- a/src/adaptors/yearn-finance/index.js +++ b/src/adaptors/yearn-finance/index.js @@ -21,7 +21,7 @@ const getApy = async () => { const underlying = p.token.underlyingTokensAddresses; // OP incentives via yvToken staking - const apyReward = p.apy?.staking_rewards_apr * 100; + const apyReward = p.apy?.staking_rewards_apr * 100 ?? 0; return { pool: p.address, @@ -29,7 +29,7 @@ const getApy = async () => { project: 'yearn-finance', symbol: utils.formatSymbol(p.token.display_symbol), tvlUsd: p.tvl.tvl_deposited, - apy: p.apy.net_apy * 100, + apyBase: p.apy.net_apy * 100, apyReward, rewardTokens: apyReward > 0 ? ['0x4200000000000000000000000000000000000042'] : [],