Skip to content

Commit

Permalink
changed math, updated significant digits
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Aug 20, 2024
1 parent 7b8803e commit cd9f191
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export function PremiumExplainerModal({
maximumFractionDigits: 6,
});
const formattedPremium = Number(formatEther(premiumEthAmount)).toLocaleString(undefined, {
maximumFractionDigits: 6,
maximumFractionDigits: formattedOneYearCost.length - 2,
});
const ethTotal = singleYearEthCost;
const ethTotal = (normalSingleYearCost + premiumEthAmount);
const formattedTotal = Number(formatEther(ethTotal)).toLocaleString(undefined, {
maximumFractionDigits: 4,
maximumFractionDigits: formattedOneYearCost.length - 2,
});
return (
<Modal isOpen={isOpen} onClose={toggleModal} title="">
Expand Down

0 comments on commit cd9f191

Please sign in to comment.