synapsecns/sanguine

View on GitHub
packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function fetchPortfolioBalances has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const fetchPortfolioBalances = async (
  address: string,
  chainId?: number | undefined | null
): Promise<{
  balances: NetworkTokenBalances
Severity: Major
Found in packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx - About 2 hrs to fix

    Function balancePromises has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        const balancePromises = filteredChains.map(async (chainId) => {
          const currentChainId = Number(chainId)
    
          return (async () => {
            try {
    Severity: Minor
    Found in packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status