Permalink
Browse files

Fix calcEstimation with last reward ( neword is not 16XMR close 13XMR…

… Now) (#83)
  • Loading branch information...
1 parent a58645b commit bdc153990005fae964fddc881cdafa6c2334aef4 @perl5577 perl5577 committed with Dec 12, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 website_example/pages/home.html
@@ -326,7 +326,7 @@ <h4 class="yourStats">Payments</h4>
try {
var rateUnit = Math.pow(1000,parseInt($('#calcHashUnit').data('mul')));
var inp2 = parseFloat($('#calcHashRate').val()) * rateUnit;
- var resl = 16 / ((lastStats.network.difficulty / inp2) / 86400);
+ var resl = ( lastStats.network.reward / coinUnits) / ((lastStats.network.difficulty / inp2) / 86400 );
if (!isNaN(resl)) {
updateText('calcHashAmount', (Math.round(resl * 100) / 100).toString());
return;
@@ -464,4 +464,4 @@ <h4 class="yourStats">Payments</h4>
});
});
-</script>
+</script>

0 comments on commit bdc1539

Please sign in to comment.