feat: use new util func

This commit is contained in:
RadoslavDimchev 2023-10-11 21:51:11 +03:00
parent 1ce29acc46
commit 36edaf9e62
1 changed files with 2 additions and 2 deletions

View File

@ -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
</Text>
<Text size={27} weight={'semibold'}>
{balance} ETH
{formatToFixed4(balance)} ETH
</Text>
</YStack>
</XStack>