Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
callil committed Aug 26, 2020
2 parents 2182e18 + ad2c7df commit ce12635
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/SearchModal/ListSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ function ListOrigin({ listUrl }: { listUrl: string }) {
const ensName = useMemo(() => parseENSAddress(listUrl)?.ensName, [listUrl])
const host = useMemo(() => {
if (ensName) return undefined
const lowerListUrl = listUrl.toLowerCase()
if (lowerListUrl.startsWith('ipfs://') || lowerListUrl.startsWith('ipns://')) {
return listUrl
}
try {
const url = new URL(listUrl)
return url.host
Expand Down
3 changes: 3 additions & 0 deletions src/constants/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
'stablecoin.cmc.eth',
'tokenlist.zerion.eth',
'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://umaproject.org/uma.tokenlist.json'
]

1 comment on commit ce12635

@vercel
Copy link

@vercel vercel bot commented on ce12635 Aug 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.