Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
ce126353
Commit
ce126353
authored
Aug 26, 2020
by
Callil Capuozzo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Uniswap/uniswap-interface
parents
2182e18f
ad2c7dfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ListSelect.tsx
src/components/SearchModal/ListSelect.tsx
+4
-0
lists.ts
src/constants/lists.ts
+3
-0
No files found.
src/components/SearchModal/ListSelect.tsx
View file @
ce126353
...
@@ -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
...
...
src/constants/lists.ts
View file @
ce126353
...
@@ -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
'
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment