You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
612 B

6 years ago
/* eslint-env browser */
import 'babel-polyfill'; // eslint-disable-line import/no-unassigned-import
6 years ago
import prettyMs from 'pretty-ms';
import {version} from '../package';
import getCoinData from './get-coin-data';
6 years ago
document.querySelector('.version').innerText = `v${version}`;
6 years ago
getCoinData().then(coins => {
6 years ago
coins.forEach(({symbol, confirmations, estimatedTimeForConfs, multiplier}) => {
6 years ago
console.log(`${symbol}: ${confirmations} confs | ${prettyMs(estimatedTimeForConfs * 1000).split(' ').reduce((str, section, index) => index < 2 ? str + ' ' + section : str)} | ${Math.round(multiplier)}x slower`);
6 years ago
});
});