File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments