Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix(maple): Fix APY (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin authored Jul 20, 2022
1 parent 867c664 commit 04c348d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apps/maple/ethereum/maple.pool.token-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ export class EthereumMaplePoolTokenFetcher implements PositionFetcher<AppTokenPo
const pricePerShare = 1;
const price = underlyingToken.price;
const tokens = [underlyingToken];
const apy = Number(pool.apy) / 10000;
const apy = Number(pool.apy) / 100;
const liquidity = price * supply;
if (liquidity <= 0) return null;

// Display Props
const label = pool.poolName;
const secondaryLabel = buildDollarDisplayItem(price);
const tertiaryLabel = `${(apy * 100).toFixed(3)}% APY`;
const tertiaryLabel = `${apy.toFixed(3)}% APY`;
const images = [getTokenImg(underlyingToken.address, network)];
const statsItems = [
{ label: 'APY', value: buildPercentageDisplayItem(apy) },
Expand Down

0 comments on commit 04c348d

Please sign in to comment.