Skip to content

Commit

Permalink
Fix USD amount not matching on syrup card and details.
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Feb 6, 2022
1 parent 684a152 commit 8f228eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SyrupCard/SyrupCardDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const SyrupCardDetails: React.FC<{ token: Token }> = ({ token }) => {
);

const syrupEarnedUSD =
Number(syrup?.earnedAmount.toSignificant(2)) *
Number(syrup?.earnedAmount.toSignificant()) *
Number(syrup?.rewardTokenPriceinUSD ?? 0);

const exactEnd = syrup ? syrup.periodFinish : 0;
Expand Down

0 comments on commit 8f228eb

Please sign in to comment.