From 88351e35f4ecd5a8457e201deae6ea07a0918c9b Mon Sep 17 00:00:00 2001 From: Joseph Goulden Date: Thu, 11 Jun 2020 17:55:36 +0100 Subject: [PATCH] fix: currency/current typo on summary page --- views/includes/index-network-summary.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/includes/index-network-summary.pug b/views/includes/index-network-summary.pug index 5cf5e73..58928eb 100644 --- a/views/includes/index-network-summary.pug +++ b/views/includes/index-network-summary.pug @@ -98,11 +98,11 @@ div.row.index-summary if (timePerBlock > 600) - var diffAdjPercent = new Decimal(timeDiff / heightDiff / 600).times(100).minus(100); - - var diffAdjText = `Blocks during the currency difficulty epoch have taken this long, on average, to be mined. If this pace continues, then in ${blocksUntilDifficultyAdjustment.toLocaleString()} block${blocksUntilDifficultyAdjustment == 1 ? "" : "s"} (${daysUntilAdjustmentStr}) the difficulty will adjust downward: -${diffAdjPercent.toDP(1)}%`; + - var diffAdjText = `Blocks during the current difficulty epoch have taken this long, on average, to be mined. If this pace continues, then in ${blocksUntilDifficultyAdjustment.toLocaleString()} block${blocksUntilDifficultyAdjustment == 1 ? "" : "s"} (${daysUntilAdjustmentStr}) the difficulty will adjust downward: -${diffAdjPercent.toDP(1)}%`; - var diffAdjSign = "-"; else - var diffAdjPercent = new Decimal(100).minus(new Decimal(timeDiff / heightDiff / 600).times(100)); - - var diffAdjText = `Blocks during the currency difficulty epoch have taken this long, on average, to be mined. If this pace continues, then in ${blocksUntilDifficultyAdjustment.toLocaleString()} block${blocksUntilDifficultyAdjustment == 1 ? "" : "s"} (${daysUntilAdjustmentStr}) the difficulty will adjust upward: +${diffAdjPercent.toDP(1)}%`; + - var diffAdjText = `Blocks during the current difficulty epoch have taken this long, on average, to be mined. If this pace continues, then in ${blocksUntilDifficultyAdjustment.toLocaleString()} block${blocksUntilDifficultyAdjustment == 1 ? "" : "s"} (${daysUntilAdjustmentStr}) the difficulty will adjust upward: +${diffAdjPercent.toDP(1)}%`; - var diffAdjSign = "+"; span.border-dotted(title=diffAdjText, data-toggle="tooltip") #{timePerBlockDuration.format()}