From 30f4bb05e13a9f3bfc27b52c4f4965a35d9a6279 Mon Sep 17 00:00:00 2001 From: Sylvain Laurent Date: Tue, 3 Dec 2024 16:48:46 +0100 Subject: [PATCH] Fix: base apy to reward apy (#1632) --- src/adaptors/usual-money/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adaptors/usual-money/index.js b/src/adaptors/usual-money/index.js index ffbb4cc6be..d9e6b45a68 100644 --- a/src/adaptors/usual-money/index.js +++ b/src/adaptors/usual-money/index.js @@ -23,14 +23,14 @@ const apy = async () => { const price = (await axios.get(`${baseURLLlamaPrice}${priceKey}` )).data.coins[priceKey].price; const tvlUsd = totalSupply * price; const reward = (await axios.get(`${baseURLRewardRate}${symbol}`)).data.rewards.find((e) => usual.toLowerCase() == e.rewardToken.toLowerCase()); - const apyBase = utils.aprToApy(reward.apr, 52) * 100; + const apyReward = utils.aprToApy(reward.apr, 52) * 100; return [{ pool: usd0PP, chain: 'Ethereum', project: 'usual-money', symbol: 'USD0++', tvlUsd, - apyBase, + apyReward, rewardTokens: [usual], underlyingTokens: [usd0], },