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

fix(maple): fix Maple apy #909

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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