Skip to content

Commit ce12635

Browse files
committed
2 parents 2182e18 + ad2c7df commit ce12635

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/SearchModal/ListSelect.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ function ListOrigin({ listUrl }: { listUrl: string }) {
7171
const ensName = useMemo(() => parseENSAddress(listUrl)?.ensName, [listUrl])
7272
const host = useMemo(() => {
7373
if (ensName) return undefined
74+
const lowerListUrl = listUrl.toLowerCase()
75+
if (lowerListUrl.startsWith('ipfs://') || lowerListUrl.startsWith('ipns://')) {
76+
return listUrl
77+
}
7478
try {
7579
const url = new URL(listUrl)
7680
return url.host

src/constants/lists.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export const DEFAULT_LIST_OF_LISTS: string[] = [
1212
'stablecoin.cmc.eth',
1313
'tokenlist.zerion.eth',
1414
'https://www.coingecko.com/tokens_list/uniswap/defi_100/v_0_0_0.json',
15+
'https://app.tryroll.com/tokens.json',
16+
'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
17+
'ipfs://QmVNCFc3y1DMt8n4K42d8BYubUhQ7FgcNxzEHxSEHszUhL', // aave token list
1518
'https://defiprime.com/defiprime.tokenlist.json',
1619
'https://umaproject.org/uma.tokenlist.json'
1720
]

0 commit comments

Comments
 (0)