synapsecns/sanguine

View on GitHub
packages/widget/src/hooks/useCurrentTokenBalance.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useCurrentTokenBalance has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useCurrentTokenBalance = () => {
  const web3Context = useContext(Web3Context)
  const { connectedAddress } = web3Context.web3Provider
  const { originChainId, originToken } = useBridgeState()
  const { balances } = useWalletState()
Severity: Minor
Found in packages/widget/src/hooks/useCurrentTokenBalance.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status