Skip to content

Commit

Permalink
Fix: base apy to reward apy (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Magicking authored Dec 3, 2024
1 parent 695db16 commit 30f4bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/usual-money/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
Expand Down

0 comments on commit 30f4bb0

Please sign in to comment.