From 1f266b8c62f8d0397f5dec2cb073b22b468496f5 Mon Sep 17 00:00:00 2001 From: nvphungdev <283886185+nvphungdev@users.noreply.github.com> Date: Sun, 17 May 2026 12:20:36 +0700 Subject: [PATCH] fix: preserve fractional block volume --- views/includes/blocks-list.pug | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/views/includes/blocks-list.pug b/views/includes/blocks-list.pug index 99787da2f..fe16095ae 100644 --- a/views/includes/blocks-list.pug +++ b/views/includes/blocks-list.pug @@ -151,14 +151,8 @@ td.text-end.d-none.d-lg-table-cell if (blockstatsByHeight[block.height]) - var satValue = new Decimal(blockstatsByHeight[block.height].total_out).plus(blockstatsByHeight[block.height].subsidy); - - var currencyValue = parseInt(satValue.dividedBy(coinConfig.baseCurrencyUnit.multiplier)); - - var currencyValueDecimals = 0; - - if (userSettings.displayCurrency == "bgl") - +valueDisplaySpecial(currencyValue, 0) - - else - +valueDisplay(currencyValue) + - var currencyValue = satValue.dividedBy(coinConfig.baseCurrencyUnit.multiplier); + +valueDisplay(currencyValue) if (block.totalFees == null)