diff --git a/src/modules/l2-rollup/index.tsx b/src/modules/l2-rollup/index.tsx index a9e1d291b..1a700cd85 100644 --- a/src/modules/l2-rollup/index.tsx +++ b/src/modules/l2-rollup/index.tsx @@ -1128,6 +1128,58 @@ const L2Rollup = () => { + + + Total + + + {renderItemTotal( + 'TPS', + formatCurrency(total.tps, MIN_DECIMAL, MIN_DECIMAL), + 'The total transactions per second', + bitcoinRollup + ? `(${formatCurrency( + Math.abs(total.tps / bitcoinRollup.tps), + MIN_DECIMAL, + MIN_DECIMAL, + )}x)` + : '-', + )} + {renderItemTotal( + 'Mgas/s', + formatCurrency(total.mgas, MIN_DECIMAL, MIN_DECIMAL), + 'The total megagas (Million Gas) per second', + '', + )} + {renderItemTotal( + 'KB/s', + formatCurrency(total.kbs, MIN_DECIMAL, MIN_DECIMAL), + 'Total KB per second', + bitcoinRollup + ? `(${formatCurrency( + Math.abs(total.kbs / bitcoinRollup.kbs), + MIN_DECIMAL, + MIN_DECIMAL, + )}x)` + : '-', + )} + + {data.length <= 0 ? ( @@ -1260,58 +1312,6 @@ const L2Rollup = () => { > - - - - Total - - - {renderItemTotal( - 'TPS', - formatCurrency(total.tps, MIN_DECIMAL, MIN_DECIMAL), - 'The total transactions per second', - bitcoinRollup - ? `(${formatCurrency( - Math.abs(total.tps / bitcoinRollup.tps), - MIN_DECIMAL, - MIN_DECIMAL, - )}x)` - : '-', - )} - {renderItemTotal( - 'Mgas/s', - formatCurrency(total.mgas, MIN_DECIMAL, MIN_DECIMAL), - 'The total megagas (Million Gas) per second', - '', - )} - {renderItemTotal( - 'KB/s', - formatCurrency(total.kbs, MIN_DECIMAL, MIN_DECIMAL), - 'Total KB per second', - bitcoinRollup - ? `(${formatCurrency( - Math.abs(total.kbs / bitcoinRollup.kbs), - MIN_DECIMAL, - MIN_DECIMAL, - )}x)` - : '-', - )} - -