= ({
TRANSFER
- {formatEther(internalOp.value)} {nativeSymbol}
+ {formatEther(internalOp.value)} {symbol}
From
diff --git a/src/components/TransactionValue.tsx b/src/components/TransactionValue.tsx
index b4a9d54..53f9300 100644
--- a/src/components/TransactionValue.tsx
+++ b/src/components/TransactionValue.tsx
@@ -22,16 +22,18 @@ const TransactionValue: React.FC = ({
value,
hideUnit,
}) => {
- const { nativeSymbol, nativeDecimals } = useChainInfo();
- const formattedValue = formatValue(value, nativeDecimals);
+ const {
+ nativeCurrency: { symbol, decimals },
+ } = useChainInfo();
+ const formattedValue = formatValue(value, decimals);
return (
{formattedValue}
- {!hideUnit && ` ${nativeSymbol}`}
+ {!hideUnit && ` ${symbol}`}
);
};
diff --git a/src/components/USDValue.tsx b/src/components/USDValue.tsx
index 9554e41..90da1c2 100644
--- a/src/components/USDValue.tsx
+++ b/src/components/USDValue.tsx
@@ -10,7 +10,9 @@ type USDValueProps = {
};
const USDValue: React.FC = ({ value }) => {
- const { nativeSymbol } = useChainInfo();
+ const {
+ nativeCurrency: { symbol },
+ } = useChainInfo();
return (
@@ -24,7 +26,7 @@ const USDValue: React.FC = ({ value }) => {
.toString()
)}
{" "}
- / {nativeSymbol}
+ / {symbol}
>
) : (
"N/A"
diff --git a/src/special/london/BlockRow.tsx b/src/special/london/BlockRow.tsx
index 3d1cf8f..3bec637 100644
--- a/src/special/london/BlockRow.tsx
+++ b/src/special/london/BlockRow.tsx
@@ -16,7 +16,9 @@ type BlockRowProps = {
};
const BlockRow: React.FC = ({ now, block, baseFeeDelta }) => {
- const { nativeSymbol } = useChainInfo();
+ const {
+ nativeCurrency: { symbol },
+ } = useChainInfo();
const gasTarget = block.gasLimit.div(ELASTICITY_MULTIPLIER);
const burntFees =
block?.baseFeePerGas && block.baseFeePerGas.mul(block.gasUsed);
@@ -55,11 +57,10 @@ const BlockRow: React.FC = ({ now, block, baseFeeDelta }) => {