import React, { useContext } from 'react'; import { AppContext } from './ContextProvider'; import { ToCoins, ToDate, ToHashes } from '../helpers/utils'; const Pool = () => { const { state } = useContext(AppContext); const { pool } = state; const { networkStats, stats } = pool; const { pool_statistics: poolStats } = stats; const networkHashRate = Math.floor(networkStats.difficulty / 300); const poolPercentage = poolStats.hashRate / networkHashRate * 100; return (

all wow miners:

this pool miners: {poolStats.miners} miners digging (only {poolPercentage.toFixed(2)}%)

world blocke: {networkStats.height} with discovered {}

pool blocke: {poolStats.lastBlockFound} discovered {}

) }; export default Pool;