Skip to content

Commit

Permalink
Update progress.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tmb authored Nov 18, 2021
1 parent 198591f commit 78dda1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/scripts/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function numberWithCommas(x) {

(async function () {
const { dollars, eth, ethUsdConversion } = await fetchData();
const targetUSD = 69_420_000;
const fiveMillionUnits = dollars / 5_000_000
const targetUSD = Math.ceil(fiveMillionUnits) * 5_000_000

const percentage = (dollars / targetUSD) * 100;

Expand Down

0 comments on commit 78dda1d

Please sign in to comment.