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/constants/routing.ts b/src/constants/routing.ts index 4b5dfb816..e5fbe34cc 100644 --- a/src/constants/routing.ts +++ b/src/constants/routing.ts @@ -33,6 +33,10 @@ import { USDT_ARBITRUM_ONE, LETH, LUSD, + LBTC, + LZOO, + ZBTC, + ZLUX, USDT_LUX_TESTNET, USDC_LUX_TESTNET, ZETH, @@ -193,13 +197,17 @@ export const COMMON_BASES: ChainCurrencyList = { ], [SupportedChainId.LUX]: [ nativeOnChain(SupportedChainId.LUX), + LBTC, LETH, LUSD, + LZOO, ], [SupportedChainId.ZOO]: [ nativeOnChain(SupportedChainId.ZOO), + ZBTC, ZETH, ZUSD, + ZLUX, ], [SupportedChainId.LUX_TESTNET]: [ nativeOnChain(SupportedChainId.LUX_TESTNET), diff --git a/src/constants/tokens.ts b/src/constants/tokens.ts index 7eb21bc7d..eaf2dd859 100644 --- a/src/constants/tokens.ts +++ b/src/constants/tokens.ts @@ -33,6 +33,22 @@ export const LUSD = new Token( "Lux Dollar", ); +export const LBTC = new Token( + SupportedChainId.LUX, + '0x1E48D32a4F5e9f08DB9aE4959163300FaF8A6C8e', + 18, + "LBTC", + "Lux BTC", +); + +export const LZOO = new Token( + SupportedChainId.LUX, + '0x5E5290f350352768bD2bfC59c2DA15DD04A7cB88', + 18, + "LZOO", + "Lux ZOO", +); + export const ZETH = new Token( SupportedChainId.ZOO, '0x60E0a8167FC13dE89348978860466C9ceC24B9ba', @@ -41,6 +57,22 @@ export const ZETH = new Token( "Zoo ETH", ); +export const ZBTC = new Token( + SupportedChainId.ZOO, + '0x1E48D32a4F5e9f08DB9aE4959163300FaF8A6C8e', + 18, + "ZBTC", + "Zoo BTC", +); + +export const ZLUX = new Token( + SupportedChainId.ZOO, + '0x5E5290f350352768bD2bfC59c2DA15DD04A7cB88', + 18, + "ZLUX", + "Zoo LUX", +); + export const USDC_LUX_TESTNET = new Token( SupportedChainId.LUX_TESTNET, '0x8031e9b0D02a792cfEFaa2bDCA6E1289d385426F', 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]),