packages/widget/src/hooks/useCurrentTokenBalance.ts
Function useCurrentTokenBalance
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useCurrentTokenBalance = () => {
const web3Context = useContext(Web3Context)
const { connectedAddress } = web3Context.web3Provider
const { originChainId, originToken } = useBridgeState()
const { balances } = useWalletState()