Commit ce126353 authored by Callil Capuozzo's avatar Callil Capuozzo
parents 2182e18f ad2c7dfd
...@@ -71,6 +71,10 @@ function ListOrigin({ listUrl }: { listUrl: string }) { ...@@ -71,6 +71,10 @@ function ListOrigin({ listUrl }: { listUrl: string }) {
const ensName = useMemo(() => parseENSAddress(listUrl)?.ensName, [listUrl]) const ensName = useMemo(() => parseENSAddress(listUrl)?.ensName, [listUrl])
const host = useMemo(() => { const host = useMemo(() => {
if (ensName) return undefined if (ensName) return undefined
const lowerListUrl = listUrl.toLowerCase()
if (lowerListUrl.startsWith('ipfs://') || lowerListUrl.startsWith('ipns://')) {
return listUrl
}
try { try {
const url = new URL(listUrl) const url = new URL(listUrl)
return url.host return url.host
......
...@@ -12,6 +12,9 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [ ...@@ -12,6 +12,9 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
'stablecoin.cmc.eth', 'stablecoin.cmc.eth',
'tokenlist.zerion.eth', 'tokenlist.zerion.eth',
'https://www.coingecko.com/tokens_list/uniswap/defi_100/v_0_0_0.json', 'https://www.coingecko.com/tokens_list/uniswap/defi_100/v_0_0_0.json',
'https://app.tryroll.com/tokens.json',
'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
'ipfs://QmVNCFc3y1DMt8n4K42d8BYubUhQ7FgcNxzEHxSEHszUhL', // aave token list
'https://defiprime.com/defiprime.tokenlist.json', 'https://defiprime.com/defiprime.tokenlist.json',
'https://umaproject.org/uma.tokenlist.json' 'https://umaproject.org/uma.tokenlist.json'
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment