Browse Source

fix: currency/current typo on summary page

master
Joseph Goulden 4 years ago
parent
commit
88351e35f4
  1. 4
      views/includes/index-network-summary.pug

4
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()}

Loading…
Cancel
Save