From 2e219d0f1946517584c923d04a2646eab7ab86a2 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Tue, 1 Sep 2020 21:28:29 +0700 Subject: [PATCH] Revert incorrect fix --- api/nicehash.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/nicehash.js b/api/nicehash.js index 2a91ddc..7f94887 100644 --- a/api/nicehash.js +++ b/api/nicehash.js @@ -29,14 +29,6 @@ const getNiceHashData = async () => { const values = currentValues.algos.find(algo => algo.a === algorithm.id); const pricePerHashPerDay = values.p / 100000000; algorithm.pricePerHashPerSecond = pricePerHashPerDay / DAYS; - // TODO: Fix this properly. - // These calcs seem to be off by a factor of 10 for ETH/DaggerHashimoto. - // No idea why and no time to look into it right now but this dirty hack - // appears to be generating correct values for now. - if (algorithm.name === 'DaggerHashimoto') { - algorithm.pricePerHashPerSecond /= 10; - } - algorithm.hashrate = values.s; algorithm.priceReadable = (pricePerHashPerDay * marketFactor).toFixed(4) + ` BTC/${displayMarketFactor}/day`;