Skip to content

Commit

Permalink
yearn change to apyBase
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Oct 27, 2023
1 parent 6231345 commit 1911acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/yearn-finance/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ 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,
chain: utils.formatChain(chain[0]),
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'] : [],
Expand Down

0 comments on commit 1911acd

Please sign in to comment.