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

Commit

Permalink
fix(yearn): Fix vault displayed APY (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele authored Jun 30, 2022
1 parent 492fe87 commit ada332f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apps/yearn/helpers/yearn.v1-vault.token-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class YearnV1VaultTokenHelper {
const secondaryLabel = buildDollarDisplayItem(price);
const images = getImagesFromToken(underlyingToken);
const statsItems = [
{ label: 'APY', value: buildPercentageDisplayItem(apy) },
{ label: 'APY', value: buildPercentageDisplayItem(apy * 100) },
{ label: 'Liquidity', value: buildDollarDisplayItem(liquidity) },
];

Expand Down
2 changes: 1 addition & 1 deletion src/apps/yearn/helpers/yearn.v2-vault.token-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class YearnV2VaultTokenHelper {
const secondaryLabel = buildDollarDisplayItem(price);
const images = getImagesFromToken(underlyingToken);
const statsItems = [
{ label: 'APY', value: buildPercentageDisplayItem(apy) },
{ label: 'APY', value: buildPercentageDisplayItem(apy * 100) },
{ label: 'Liquidity', value: buildDollarDisplayItem(liquidity) },
];

Expand Down

0 comments on commit ada332f

Please sign in to comment.