Skip to content

Commit

Permalink
update token-lists and ZLUX icon
Browse files Browse the repository at this point in the history
  • Loading branch information
foxier25 committed Nov 27, 2024
1 parent 112e4b9 commit 8809834
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/constants/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
10 changes: 5 additions & 5 deletions src/hooks/useFetchListCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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]),
Expand Down

0 comments on commit 8809834

Please sign in to comment.