From d406da2faf9e08484384063c8ca38c7ccebb7a2b Mon Sep 17 00:00:00 2001 From: artemkolodko Date: Wed, 19 Jan 2022 18:47:37 +0300 Subject: [PATCH] Fix gas used rounding on block page --- src/components/block/helpers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/block/helpers.tsx b/src/components/block/helpers.tsx index 7f92c0a..083512d 100644 --- a/src/components/block/helpers.tsx +++ b/src/components/block/helpers.tsx @@ -208,7 +208,7 @@ export const blockPropertyDisplayValues: any = { timestamp: (value: any) => , gasUsed: (value: any, block: Block) => ( - {formatNumber(+value)} ({+value / +block.gasLimit}%){" "} + {formatNumber(+value)} ({((+value / +block.gasLimit) * 100).toFixed(2)}%){" "} ), gasLimit: (value: any) => <>{formatNumber(+value)},