Skip to content

Commit

Permalink
Merge pull request #198 from rairprotocol/195-incorrect-percentages
Browse files Browse the repository at this point in the history
Fix percentages
  • Loading branch information
sarora180673 authored Sep 9, 2024
2 parents 06815fa + e23cf5c commit 832ab2b
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,15 @@ const CustomizeFees: React.FC<TResaleMarketplace> = ({
<br />
Total:{' '}
{(
total +
nodeFee +
treasuryFee / BigInt(10) ** minterDecimals
(total + nodeFee + treasuryFee) /
BigInt(10) ** minterDecimals
).toString()}
%
<br />
Percentage left for the seller:{' '}
{(
BigInt(100) * precisionFactor -
(total + nodeFee + treasuryFee) / BigInt(10) ** minterDecimals
(BigInt(100) * precisionFactor - (total + nodeFee + treasuryFee)) /
BigInt(10) ** minterDecimals
).toString()}
%
<br />
Expand Down

0 comments on commit 832ab2b

Please sign in to comment.