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
99ad4ae4
Unverified
Commit
99ad4ae4
authored
May 20, 2021
by
Moody Salem
Committed by
GitHub
May 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ETH2x-FLI to ETH2X pair routing (#1644)
parent
6e52a435
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
routing.ts
src/constants/routing.ts
+2
-1
tokens.ts
src/constants/tokens.ts
+7
-0
No files found.
src/constants/routing.ts
View file @
99ad4ae4
// a list of tokens by chain
import
{
Currency
,
Ether
,
Token
,
WETH9
}
from
'
@uniswap/sdk-core
'
import
{
AMPL
,
DAI
,
FEI
,
FRAX
,
FXS
,
MIR
,
renBTC
,
TRIBE
,
UMA
,
UNI
,
USDC
,
USDT
,
UST
,
WBTC
}
from
'
./tokens
'
import
{
AMPL
,
DAI
,
ETH2X_FLI
,
FEI
,
FRAX
,
FXS
,
MIR
,
renBTC
,
TRIBE
,
UMA
,
UNI
,
USDC
,
USDT
,
UST
,
WBTC
}
from
'
./tokens
'
type
ChainTokenList
=
{
readonly
[
chainId
:
number
]:
Token
[]
...
...
@@ -45,6 +45,7 @@ export const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList = {
export
const
ADDITIONAL_BASES
:
{
[
chainId
:
number
]:
{
[
tokenAddress
:
string
]:
Token
[]
}
}
=
{
[
1
]:
{
...
mAssetsAdditionalBases
,
'
0xF16E4d813f4DcfDe4c5b44f305c908742De84eF0
'
:
[
ETH2X_FLI
],
'
0xA948E86885e12Fb09AfEF8C52142EBDbDf73cD18
'
:
[
UNI
[
1
]],
'
0x561a4717537ff4AF5c687328c0f7E90a319705C0
'
:
[
UNI
[
1
]],
'
0xa6e3454fec677772dd771788a079355e43910638
'
:
[
UMA
],
...
...
src/constants/tokens.ts
View file @
99ad4ae4
...
...
@@ -12,6 +12,13 @@ export const FRAX = new Token(1, '0x853d955aCEf822Db058eb8505911ED77F175b99e', 1
export
const
FXS
=
new
Token
(
1
,
'
0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0
'
,
18
,
'
FXS
'
,
'
Frax Share
'
)
export
const
renBTC
=
new
Token
(
1
,
'
0xEB4C2781e4ebA804CE9a9803C67d0893436bB27D
'
,
8
,
'
renBTC
'
,
'
renBTC
'
)
export
const
UMA
=
new
Token
(
1
,
'
0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828
'
,
18
,
'
UMA
'
,
'
UMA Voting Token v1
'
)
export
const
ETH2X_FLI
=
new
Token
(
1
,
'
0xAa6E8127831c9DE45ae56bB1b0d4D4Da6e5665BD
'
,
18
,
'
ETH2x-FLI
'
,
'
ETH 2x Flexible Leverage Index
'
)
// Mirror Protocol compat.
export
const
UST
=
new
Token
(
1
,
'
0xa47c8bf37f92abed4a126bda807a7b7498661acd
'
,
18
,
'
UST
'
,
'
Wrapped UST
'
)
export
const
MIR
=
new
Token
(
1
,
'
0x09a3ecafa817268f77be1283176b946c4ff2e608
'
,
18
,
'
MIR
'
,
'
Wrapped MIR
'
)
...
...
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