Skip to content

Commit

Permalink
Fix unexpected value in getFactoryAPYs
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe-git committed Nov 21, 2023
1 parent d77c5e8 commit 3b72ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/getFactoryAPYs/ethereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default fn(async ({ version }) => {
index,
poolAddress: pool.address,
poolSymbol: pool.symbol,
apyFormatted: `${poolStats.latestDailyApy.toFixed(2)}%`,
apyFormatted: `${(poolStats.latestDailyApy ?? 0).toFixed(2)}%`,
apy: poolStats.latestDailyApy,
apyWeekly: poolStats.latestWeeklyApy,
virtualPrice: poolStats.virtualPrice,
Expand Down

1 comment on commit 3b72ef4

@vercel
Copy link

@vercel vercel bot commented on 3b72ef4 Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.