diff --git a/index.html b/index.html index 4c37e47..ad53b1d 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,17 @@ .filter(value => value > 0) .reduce((a, c) => a + Number(c), 0); - const bonus = Math.floor(totalPrizePool * 0.05); + const CL_PERCENT = 5.0; + + const percentLink = () => ( + + {CL_PERCENT.toFixed(1)}% + + ); + + const bonus = Math.floor(totalPrizePool * ( CL_PERCENT / 100 ) ); const remaining = totalPrizePool - bonus; @@ -92,12 +102,12 @@ const chopValue = count ? Math.floor(remaining / count) : NaN; const chopTotal = count ? (chopValue * count) : NaN; - + return (
- + +
); } ) @@ -141,7 +161,7 @@ }