Skip to content

Commit

Permalink
get rid of uwrite space
Browse files Browse the repository at this point in the history
  • Loading branch information
butcher73 committed Nov 9, 2024
1 parent 3221177 commit 429202f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/features/messages/cards/GasDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ interface Props {

export function GasDetailsCard({ message, blur, igpPayments = {} }: Props) {
const multiProvider = useMultiProvider();

const unitOptions = useMemo(() => {
const originMetadata = multiProvider.tryGetChainMetadata(message.originDomainId);
const nativeCurrencyName = originMetadata?.nativeToken?.symbol || 'Eth';
const nativeDecimals = originMetadata?.nativeToken?.decimals || 18;

return [
{ value: nativeDecimals, display: toTitleCase(nativeCurrencyName) },
{ value: 9, display: 'Gwei' },
Expand Down Expand Up @@ -187,7 +185,6 @@ function computeAvgGasPrice(
const gasBN = new BigNumber(gasAmount);
const paymentBN = new BigNumber(payment);
if (gasBN.isZero() || paymentBN.isZero()) return null;

const wei = paymentBN.div(gasBN).toFixed(0);
const formatted = utils.formatUnits(wei, decimals).toString();
return { wei, formatted };
Expand Down

0 comments on commit 429202f

Please sign in to comment.