diff --git a/src/__swaps__/screens/Swap/resources/assets/userAssets.ts b/src/__swaps__/screens/Swap/resources/assets/userAssets.ts index 37423b6d930..cd0e6abdca8 100644 --- a/src/__swaps__/screens/Swap/resources/assets/userAssets.ts +++ b/src/__swaps__/screens/Swap/resources/assets/userAssets.ts @@ -11,7 +11,7 @@ import { SupportedCurrencyKey, SUPPORTED_CHAIN_IDS } from '@/references'; import { ParsedAssetsDictByChain, ZerionAsset } from '@/__swaps__/types/assets'; import { ChainId } from '@/__swaps__/types/chains'; import { AddressAssetsReceivedMessage } from '@/__swaps__/types/refraction'; -import { filterAsset, parseUserAsset } from '@/__swaps__/utils/assets'; +import { parseUserAsset } from '@/__swaps__/utils/assets'; import { greaterThan } from '@/__swaps__/utils/numbers'; import { fetchUserAssetsByChain } from './userAssetsByChain'; @@ -190,7 +190,7 @@ export async function parseUserAssets({ }) { const parsedAssetsDict = chainIds.reduce((dict, currentChainId) => ({ ...dict, [currentChainId]: {} }), {}) as ParsedAssetsDictByChain; for (const { asset, quantity, small_balance } of assets) { - if (!filterAsset(asset) && greaterThan(quantity, 0)) { + if (greaterThan(quantity, 0)) { const parsedAsset = parseUserAsset({ asset, currency, diff --git a/src/__swaps__/utils/assets.ts b/src/__swaps__/utils/assets.ts index 96d0b9f2dc0..8b888c36fc2 100644 --- a/src/__swaps__/utils/assets.ts +++ b/src/__swaps__/utils/assets.ts @@ -305,15 +305,6 @@ export const parseSearchAsset = ({ type: userAsset?.type || assetWithPrice?.type || searchAsset?.type, }); -export function filterAsset(asset: ZerionAsset) { - const nameFragments = asset?.name?.split(' '); - const nameContainsURL = nameFragments.some(f => isValidDomain(f)); - const symbolFragments = asset?.symbol?.split(' '); - const symbolContainsURL = symbolFragments.some(f => isValidDomain(f)); - const shouldFilter = nameContainsURL || symbolContainsURL; - return shouldFilter; -} - const assetQueryFragment = ( address: AddressOrEth, chainId: ChainId,