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

Commit

Permalink
fix(compound): Fix lending display APY (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwele committed Jun 21, 2022
1 parent 1626589 commit fdd8900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class CompoundBorrowContractPositionHelper {
const images = appToken.displayProps.images;
const statsItems = isNumber(borrowApy)
? [
{ label: 'APY', value: buildPercentageDisplayItem(borrowApy) },
{ label: 'APY', value: buildPercentageDisplayItem(borrowApy * 100) },
{ label: 'Liquidity', value: buildDollarDisplayItem(dataProps.liquidity) },
]
: [];
Expand Down
4 changes: 2 additions & 2 deletions src/apps/compound/helper/compound.supply.token-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export class CompoundSupplyTokenHelper {
const images = [getTokenImg(underlyingToken.address, network)];
const balanceDisplayMode = BalanceDisplayMode.UNDERLYING;
const statsItems = [
{ label: getSupplyRateLabel(), value: buildPercentageDisplayItem(supplyApy) },
{ label: getBorrowRateLabel(), value: buildPercentageDisplayItem(borrowApy) },
{ label: getSupplyRateLabel(), value: buildPercentageDisplayItem(supplyApy * 100) },
{ label: getBorrowRateLabel(), value: buildPercentageDisplayItem(borrowApy * 100) },
{ label: 'Liquidity', value: buildDollarDisplayItem(liquidity) },
];

Expand Down

0 comments on commit fdd8900

Please sign in to comment.