Browse Source

BITOIN_CONFIRMATIONS => BITCOIN_CONFIRMATIONS

pull/18/head
Luke Childs 4 years ago
parent
commit
e5fefc50ff
  1. 4
      js/index.js

4
js/index.js

@ -8,7 +8,7 @@ import coinBlackList from './coin-blacklist';
import formatDollars from './format-dollars';
import formatHashrate from './format-hashrate';
const BITOIN_CONFIRMATIONS = 6;
const BITCOIN_CONFIRMATIONS = 6;
document.querySelector('.version').textContent = `v${version}`;
@ -88,7 +88,7 @@ fetch('https://howmanyconfs.com/api/data')
.filter(coin => !coinBlackList.includes(coin.symbol))
.map(coin => {
const multiplier = (bitcoin.hashrateCostPerSecond / coin.hashrateCostPerSecond);
const workTime = (bitcoin.blockTimeInSeconds * BITOIN_CONFIRMATIONS * multiplier);
const workTime = (bitcoin.blockTimeInSeconds * BITCOIN_CONFIRMATIONS * multiplier);
const confirmations = Math.ceil(workTime / coin.blockTimeInSeconds);
const timeForConfs = (coin.blockTimeInSeconds * confirmations);

Loading…
Cancel
Save