Skip to content

Commit

Permalink
NEW: rewards apy
Browse files Browse the repository at this point in the history
  • Loading branch information
Samster91 committed Nov 9, 2023
1 parent 0f74178 commit aff6c53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adaptors/idle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ const getApy = async () => {
if (v.borrowerName){
protocolName += ` ${v.borrowerName}`
}
const apyReward = v.apyReward || Number(0);
const rewardTokens = v.rewardTokens || [];
return {
pool: v.address,
apyBase: Number(v.apr),
apyReward,
rewardTokens,
symbol: v.tokenName,
poolMeta: v.poolName.includes('Best')
? v.poolName.split(' ').slice(1).join(' ')
Expand Down

0 comments on commit aff6c53

Please sign in to comment.