packages/synapse-interface/utils/actions/fetchPortfolioBalances.tsx
Function fetchPortfolioBalances
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const fetchPortfolioBalances = async (
address: string,
chainId?: number | undefined | null
): Promise<{
balances: NetworkTokenBalances
Function balancePromises
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const balancePromises = filteredChains.map(async (chainId) => {
const currentChainId = Number(chainId)
return (async () => {
try {