add 3 more lists

This commit is contained in:
Moody Salem 2020-08-26 13:36:55 -05:00
parent cb36c9103e
commit ad2c7dfdff
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB
2 changed files with 7 additions and 0 deletions

@ -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

@ -11,6 +11,9 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
'erc20.cmc.eth', 'erc20.cmc.eth',
'stablecoin.cmc.eth', 'stablecoin.cmc.eth',
'tokenlist.zerion.eth', 'tokenlist.zerion.eth',
'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'
] ]