feat: use new util func
This commit is contained in:
parent
1ce29acc46
commit
36edaf9e62
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue