From 36edaf9e6253c4b111a55a32c0254c1bed6679e4 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 11 Oct 2023 21:51:11 +0300 Subject: [PATCH] feat: use new util func --- src/pages/ValidatorOnboarding/Deposit/ConnectedWallet.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ValidatorOnboarding/Deposit/ConnectedWallet.tsx b/src/pages/ValidatorOnboarding/Deposit/ConnectedWallet.tsx index 1b46f5f9..b1c63592 100644 --- a/src/pages/ValidatorOnboarding/Deposit/ConnectedWallet.tsx +++ b/src/pages/ValidatorOnboarding/Deposit/ConnectedWallet.tsx @@ -4,7 +4,7 @@ import { useConnectWallet } from '@web3-onboard/react' import { useEffect, useState } from 'react' import { ethers } from 'ethers' -import { getFormattedWalletAddress } from '../../../utilities' +import { formatToFixed4, getFormattedWalletAddress } from '../../../utilities' const ConnectedWallet = () => { const [{ wallet }] = useConnectWallet() @@ -60,7 +60,7 @@ const ConnectedWallet = () => { Balance - {balance} ETH + {formatToFixed4(balance)} ETH