diff --git a/src/constants/lists.ts b/src/constants/lists.ts index fb7056f65..eb8acf055 100644 --- a/src/constants/lists.ts +++ b/src/constants/lists.ts @@ -15,8 +15,8 @@ const WRAPPED_LIST = 'wrapped.tokensoft.eth' export const OPTIMISM_LIST = 'https://static.optimism.io/optimism.tokenlist.json' export const ARBITRUM_LIST = 'https://bridge.arbitrum.io/token-list-42161.json' export const CELO_LIST = 'https://celo-org.github.io/celo-token-list/celo.tokenlist.json' -export const LUX_LIST = 'tokens-lux' -// export const LUX_LIST = 'https://cdn.lux.network/exchange/tokens-lux/tokens.json' +// export const LUX_LIST = 'tokens-lux' +export const LUX_LIST = 'https://cdn.lux.network/exchange/tokens-lux/tokens.json' export const UNSUPPORTED_LIST_URLS: string[] = [BA_LIST, UNI_UNSUPPORTED_LIST] diff --git a/src/hooks/useFetchListCallback.ts b/src/hooks/useFetchListCallback.ts index 79423c9b4..b17667333 100644 --- a/src/hooks/useFetchListCallback.ts +++ b/src/hooks/useFetchListCallback.ts @@ -6,7 +6,7 @@ import getTokenList from 'lib/hooks/useTokenList/fetchTokenList' import resolveENSContentHash from 'lib/utils/resolveENSContentHash' import { useCallback } from 'react' import { useAppDispatch } from 'state/hooks' -import { TOKENS_LUX_LIST } from 'tokens-lux/tokens' +// import { TOKENS_LUX_LIST } from 'tokens-lux/tokens' import { fetchTokenList } from '../state/lists/actions' @@ -22,10 +22,10 @@ export function useFetchListCallback(): ( async (listUrl: string, sendDispatch = true, skipValidation?: boolean) => { const requestId = nanoid() sendDispatch && dispatch(fetchTokenList.pending({ requestId, url: listUrl })) - if(listUrl === "tokens-lux") { - dispatch(fetchTokenList.fulfilled({ url: listUrl, tokenList: TOKENS_LUX_LIST, requestId })); - return TOKENS_LUX_LIST; - } + // if(listUrl === "tokens-lux") { + // dispatch(fetchTokenList.fulfilled({ url: listUrl, tokenList: TOKENS_LUX_LIST, requestId })); + // return TOKENS_LUX_LIST; + // } return getTokenList( listUrl, (ensName: string) => resolveENSContentHash(ensName, RPC_PROVIDERS[SupportedChainId.MAINNET]),