Skip to content

Commit

Permalink
Remove pearl rewards apr
Browse files Browse the repository at this point in the history
  • Loading branch information
MirthFutures committed Sep 9, 2024
1 parent 5f269d6 commit a97262f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/api/stats/real/getPearlApys.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@ export const getPearlApys = async () => {
const totalSupply = new BigNumber(totalSupplyResults[i]).div('1e18');
const apy = rewardRate.times(31536000).times(price).div(totalSupply.times(lpPrice));
apys.push(apy);
const pointsData = points?.data?.find(
r => r?.address?.toLowerCase() === pool.address.toLowerCase()
);
const pointsData = points?.data?.find(r => r?.address?.toLowerCase() === pool.address.toLowerCase());
pointsApys.push(Number(pointsData?.apy || 0) / 100);
}

return getApyBreakdown(
pools.map((p, i) => ({
vaultId: p.name,
vault: apys[i],
rewardPool: pointsApys[i],
rewardPool: 0,
// rewardPool: pointsApys[i],
compoundingsPerYear: BASE_HPY,
}))
);
Expand Down

0 comments on commit a97262f

Please sign in to comment.