remove tokens censoring
Some checks are pending
Crowdin Upload / upload-sources (push) Waiting to run
Semgrep / semgrep/ci (push) Waiting to run
Test / lint (push) Waiting to run
Test / typecheck (push) Waiting to run
Test / deps-tests (push) Waiting to run
Test / unit-tests (push) Waiting to run
Test / build (push) Waiting to run
Test / cypress-typecheck (push) Waiting to run
Test / cypress-rerun (push) Waiting to run
Test / cypress-test-matrix (1) (push) Blocked by required conditions
Test / cypress-test-matrix (2) (push) Blocked by required conditions
Test / cypress-test-matrix (3) (push) Blocked by required conditions
Test / cypress-test-matrix (4) (push) Blocked by required conditions
Test / hardhat-cache (push) Blocked by required conditions
Test / cloud-typecheck (push) Waiting to run
Test / cloud-tests (push) Waiting to run
Test / pre (push) Waiting to run
Test / post (push) Blocked by required conditions

This commit is contained in:
ButterflyEffect 2023-12-19 13:16:53 +00:00
parent fc7ecc7e3b
commit 911af900ed

@ -5,7 +5,7 @@ import { AppState } from 'state/reducer'
import sortByListPriority from 'utils/listSort'
import BROKEN_LIST from '../../constants/tokenLists/broken.tokenlist.json'
import { DEFAULT_ACTIVE_LIST_URLS, UNSUPPORTED_LIST_URLS } from './../../constants/lists'
import { DEFAULT_ACTIVE_LIST_URLS } from './../../constants/lists'
type Mutable<T> = {
-readonly [P in keyof T]: Mutable<T[P]>
@ -75,9 +75,6 @@ export function useUnsupportedTokenList(): TokenAddressMap {
// get hard-coded broken tokens
const brokenListMap = useMemo(() => tokensToChainTokenMap(BROKEN_LIST), [])
// get dynamic list of unsupported tokens
const loadedUnsupportedListMap = useCombinedTokenMapFromUrls(UNSUPPORTED_LIST_URLS)
// format into one token address map
return useMemo(() => combineMaps(brokenListMap, loadedUnsupportedListMap), [brokenListMap, loadedUnsupportedListMap])
return brokenListMap;
}