Merge pull request #121 from ArtemKolodko/fix/gas_used_rounding

Fix gas used rounding on block page
pull/122/head
Artem 3 years ago committed by GitHub
commit 7b152bcb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/block/helpers.tsx

@ -208,7 +208,7 @@ export const blockPropertyDisplayValues: any = {
timestamp: (value: any) => <Timestamp timestamp={value} withRelative />,
gasUsed: (value: any, block: Block) => (
<span>
{formatNumber(+value)} ({+value / +block.gasLimit}%){" "}
{formatNumber(+value)} ({((+value / +block.gasLimit) * 100).toFixed(2)}%){" "}
</span>
),
gasLimit: (value: any) => <>{formatNumber(+value)}</>,

Loading…
Cancel
Save