From 5109744fc4cc2d4a01174f0f936f9b6934e7e963 Mon Sep 17 00:00:00 2001 From: QuickMythril Date: Fri, 9 Feb 2024 02:17:18 -0500 Subject: [PATCH] Correction for calculations --- plugins/plugins/core/minting/minting-info.src.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/plugins/core/minting/minting-info.src.js b/plugins/plugins/core/minting/minting-info.src.js index 5ffbce55..9790b268 100644 --- a/plugins/plugins/core/minting/minting-info.src.js +++ b/plugins/plugins/core/minting/minting-info.src.js @@ -527,8 +527,8 @@ class MintingInfo extends LitElement { _levelUpDays() { let nextBatch = 1000 - (this.nodeInfo.height % 1000) let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment) - let countBlocksActual = countBlocks + 1000 + nextBatch - (countBlocks % 1000) - countBlocksActual += +countBlocksActual < 0 ? 1000 : 0 + countBlocks = +countBlocks + 1000 + let countBlocksActual = countBlocks + nextBatch - (countBlocks % 1000) let countDays = (countBlocksActual / this._timeCalc()).toFixed(2) let countString = countDays.toString() return "" + countString @@ -537,8 +537,8 @@ class MintingInfo extends LitElement { _levelUpBlocks() { let nextBatch = 1000 - (this.nodeInfo.height % 1000) let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment) - let countBlocksActual = countBlocks + 1000 + nextBatch - (countBlocks % 1000) - countBlocksActual += +countBlocksActual < 0 ? 1000 : 0 + countBlocks = +countBlocks + 1000 + let countBlocksActual = countBlocks + nextBatch - (countBlocks % 1000) let countBlocksString = countBlocksActual.toString() return "" + countBlocksString }