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
600049bc
Unverified
Commit
600049bc
authored
Aug 11, 2020
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(list): change the url of the default token list so we can move the file in the npm package
parent
6e913114
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
index.ts
src/constants/index.ts
+1
-2
reducer.ts
src/state/lists/reducer.ts
+4
-0
No files found.
src/constants/index.ts
View file @
600049bc
...
@@ -164,5 +164,4 @@ export const MIN_ETH: JSBI = JSBI.exponentiate(JSBI.BigInt(10), JSBI.BigInt(16))
...
@@ -164,5 +164,4 @@ export const MIN_ETH: JSBI = JSBI.exponentiate(JSBI.BigInt(10), JSBI.BigInt(16))
export
const
BETTER_TRADE_LINK_THRESHOLD
=
new
Percent
(
JSBI
.
BigInt
(
75
),
JSBI
.
BigInt
(
10000
))
export
const
BETTER_TRADE_LINK_THRESHOLD
=
new
Percent
(
JSBI
.
BigInt
(
75
),
JSBI
.
BigInt
(
10000
))
// the Uniswap Default token list lives here
// the Uniswap Default token list lives here
export
const
DEFAULT_TOKEN_LIST_URL
=
export
const
DEFAULT_TOKEN_LIST_URL
=
'
https://unpkg.com/@uniswap/default-token-list@latest
'
'
https://unpkg.com/@uniswap/default-token-list@latest/uniswap-default.tokenlist.json
'
src/state/lists/reducer.ts
View file @
600049bc
import
{
createReducer
}
from
'
@reduxjs/toolkit
'
import
{
createReducer
}
from
'
@reduxjs/toolkit
'
import
{
getVersionUpgrade
,
VersionUpgrade
}
from
'
@uniswap/token-lists
'
import
{
getVersionUpgrade
,
VersionUpgrade
}
from
'
@uniswap/token-lists
'
import
{
TokenList
}
from
'
@uniswap/token-lists/dist/types
'
import
{
TokenList
}
from
'
@uniswap/token-lists/dist/types
'
import
{
updateVersion
}
from
'
../user/actions
'
import
{
acceptListUpdate
,
addList
,
fetchTokenList
}
from
'
./actions
'
import
{
acceptListUpdate
,
addList
,
fetchTokenList
}
from
'
./actions
'
export
interface
ListsState
{
export
interface
ListsState
{
...
@@ -87,4 +88,7 @@ export default createReducer(initialState, builder =>
...
@@ -87,4 +88,7 @@ export default createReducer(initialState, builder =>
current
:
state
.
byUrl
[
url
].
pendingUpdate
current
:
state
.
byUrl
[
url
].
pendingUpdate
}
}
})
})
.
addCase
(
updateVersion
,
state
=>
{
delete
state
.
byUrl
[
'
https://unpkg.com/@uniswap/default-token-list@latest/uniswap-default.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