Skip to content

Commit

Permalink
Merge pull request #9 from cryptoalgebra/hotfix/zero-apr
Browse files Browse the repository at this point in the history
Hotfix/zero apr
  • Loading branch information
lilchizh authored Mar 22, 2024
2 parents e341795 + daa73f6 commit a9511dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/pools/PoolsList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const PoolsList = () => {
fee: Number(fee) / 10_000,
tvlUSD: Number(totalValueLockedUSD),
volume24USD: Number(volumeUSD),
maxApr: poolsMaxApr[id].toFixed(2),
avgApr: poolsAvgApr[id].toFixed(2),
maxApr: poolsMaxApr[id] ? poolsMaxApr[id].toFixed(2) : 0,
avgApr: poolsAvgApr[id] ? poolsAvgApr[id].toFixed(2) : 0,
})
);
}, [pools, poolsMaxApr, poolsAvgApr]);
Expand Down

0 comments on commit a9511dc

Please sign in to comment.