Skip to content

Commit

Permalink
fix(Loans): apy label (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimao authored Jun 8, 2023
1 parent f6be34f commit 36c41c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/LoanPositionsTable/ApyCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const ApyCell = ({
const rewardsApy = getSubsidyRewardApy(currency, rewardsPerYear, prices);

const totalApy = isBorrow ? apy.sub(rewardsApy || 0) : apy.add(rewardsApy || 0);
const totalApyLabel = isBorrow ? `-${getApyLabel(totalApy)}` : getApyLabel(totalApy);

const totalApyLabel = getApyLabel(totalApy);

const earnedAsset = accumulatedDebt || earnedInterest;

Expand Down

2 comments on commit 36c41c6

@vercel
Copy link

@vercel vercel bot commented on 36c41c6 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 36c41c6 Jun 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.