1
- import { Tr , Td , Flex , Box , Tooltip , useColorModeValue } from '@chakra-ui/react' ;
1
+ import { Tr , Td , Flex , Tooltip } from '@chakra-ui/react' ;
2
2
import BigNumber from 'bignumber.js' ;
3
3
import { motion } from 'framer-motion' ;
4
4
import React from 'react' ;
@@ -17,7 +17,6 @@ import BlockEntity from 'ui/shared/entities/block/BlockEntity';
17
17
import IconSvg from 'ui/shared/IconSvg' ;
18
18
import LinkInternal from 'ui/shared/links/LinkInternal' ;
19
19
import TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip' ;
20
- import Utilization from 'ui/shared/Utilization/Utilization' ;
21
20
22
21
import { getBaseFeeValue } from './utils' ;
23
22
@@ -31,11 +30,8 @@ const isRollup = config.features.rollup.isEnabled;
31
30
32
31
const BlocksTableItem = ( { data, isLoading, enableTimeIncrement } : Props ) => {
33
32
const totalReward = getBlockTotalReward ( data ) ;
34
- const burntFees = BigNumber ( data . burnt_fees || 0 ) ;
35
33
const txFees = BigNumber ( data . transaction_fees || 0 ) ;
36
34
37
- const burntFeesIconColor = useColorModeValue ( 'gray.500' , 'inherit' ) ;
38
-
39
35
const baseFeeValue = getBaseFeeValue ( data . base_fee_per_gas ) ;
40
36
41
37
return (
@@ -123,16 +119,10 @@ const BlocksTableItem = ({ data, isLoading, enableTimeIncrement }: Props) => {
123
119
{ ! isRollup && ! config . UI . views . block . hiddenFields ?. burnt_fees && (
124
120
< Td fontSize = "sm" >
125
121
< Flex alignItems = "center" columnGap = { 2 } >
126
- < IconSvg name = "flame" boxSize = { 5 } color = { burntFeesIconColor } isLoading = { isLoading } />
127
122
< Skeleton isLoaded = { ! isLoading } display = "inline-block" >
128
- { burntFees . dividedBy ( WEI ) . toFixed ( 8 ) }
123
+ { txFees . dividedBy ( WEI ) . toFixed ( 8 ) }
129
124
</ Skeleton >
130
125
</ Flex >
131
- < Tooltip label = { isLoading ? undefined : 'Burnt fees / Txn fees * 100%' } >
132
- < Box w = "min-content" >
133
- < Utilization mt = { 2 } value = { burntFees . div ( txFees ) . toNumber ( ) } isLoading = { isLoading } />
134
- </ Box >
135
- </ Tooltip >
136
126
</ Td >
137
127
) }
138
128
{ ! isRollup && ! config . UI . views . block . hiddenFields ?. base_fee && Boolean ( baseFeeValue ) && (
0 commit comments