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
506493e8
Unverified
Commit
506493e8
authored
Jul 26, 2021
by
Noah Zinsmeister
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "feat(routing): support mirror protocol routing as additional bases (#1375)"
This reverts commit
3198129a
.
parent
8dfd1432
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
routing.ts
src/constants/routing.ts
+0
-24
tokens.ts
src/constants/tokens.ts
+0
-15
No files found.
src/constants/routing.ts
View file @
506493e8
...
...
@@ -8,14 +8,12 @@ import {
FEI
,
FRAX
,
FXS
,
MIR
,
renBTC
,
TRIBE
,
UMA
,
UNI
,
USDC
,
USDT
,
UST
,
WBTC
,
ETH2X_FLI
,
WETH9_EXTENDED
,
...
...
@@ -32,27 +30,6 @@ type ChainCurrencyList = {
readonly
[
chainId
:
number
]:
Currency
[]
}
// List of all mirror's assets addresses.
// Last pulled from : https://whitelist.mirror.finance/eth/tokenlists.json
// TODO: Generate this programmatically ?
const
mAssetsAdditionalBases
:
{
[
tokenAddress
:
string
]:
Token
[]
}
=
{
[
UST
.
address
]:
[
MIR
],
[
MIR
.
address
]:
[
UST
],
'
0xd36932143F6eBDEDD872D5Fb0651f4B72Fd15a84
'
:
[
MIR
,
UST
],
// mAAPL
'
0x59A921Db27Dd6d4d974745B7FfC5c33932653442
'
:
[
MIR
,
UST
],
// mGOOGL
'
0x21cA39943E91d704678F5D00b6616650F066fD63
'
:
[
MIR
,
UST
],
// mTSLA
'
0xC8d674114bac90148d11D3C1d33C61835a0F9DCD
'
:
[
MIR
,
UST
],
// mNFLX
'
0x13B02c8dE71680e71F0820c996E4bE43c2F57d15
'
:
[
MIR
,
UST
],
// mQQQ
'
0xEdb0414627E6f1e3F082DE65cD4F9C693D78CCA9
'
:
[
MIR
,
UST
],
// mTWTR
'
0x41BbEDd7286dAab5910a1f15d12CBda839852BD7
'
:
[
MIR
,
UST
],
// mMSFT
'
0x0cae9e4d663793c2a2A0b211c1Cf4bBca2B9cAa7
'
:
[
MIR
,
UST
],
// mAMZN
'
0x56aA298a19C93c6801FDde870fA63EF75Cc0aF72
'
:
[
MIR
,
UST
],
// mBABA
'
0x1d350417d9787E000cc1b95d70E9536DcD91F373
'
:
[
MIR
,
UST
],
// mIAU
'
0x9d1555d8cB3C846Bb4f7D5B1B1080872c3166676
'
:
[
MIR
,
UST
],
// mSLV
'
0x31c63146a635EB7465e5853020b39713AC356991
'
:
[
MIR
,
UST
],
// mUSO
'
0xf72FCd9DCF0190923Fadd44811E240Ef4533fc86
'
:
[
MIR
,
UST
],
// mVIXY
}
const
WETH_ONLY
:
ChainTokenList
=
Object
.
fromEntries
(
Object
.
entries
(
WETH9_EXTENDED
).
map
(([
key
,
value
])
=>
[
key
,
[
value
]])
)
...
...
@@ -65,7 +42,6 @@ export const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList = {
}
export
const
ADDITIONAL_BASES
:
{
[
chainId
:
number
]:
{
[
tokenAddress
:
string
]:
Token
[]
}
}
=
{
[
SupportedChainId
.
MAINNET
]:
{
...
mAssetsAdditionalBases
,
'
0xF16E4d813f4DcfDe4c5b44f305c908742De84eF0
'
:
[
ETH2X_FLI
],
'
0xA948E86885e12Fb09AfEF8C52142EBDbDf73cD18
'
:
[
UNI
[
SupportedChainId
.
MAINNET
]],
'
0x561a4717537ff4AF5c687328c0f7E90a319705C0
'
:
[
UNI
[
SupportedChainId
.
MAINNET
]],
...
...
src/constants/tokens.ts
View file @
506493e8
...
...
@@ -114,21 +114,6 @@ export const ETH2X_FLI = new Token(
'
ETH2x-FLI
'
,
'
ETH 2x Flexible Leverage Index
'
)
// Mirror Protocol compat.
export
const
UST
=
new
Token
(
SupportedChainId
.
MAINNET
,
'
0xa47c8bf37f92abed4a126bda807a7b7498661acd
'
,
18
,
'
UST
'
,
'
Wrapped UST
'
)
export
const
MIR
=
new
Token
(
SupportedChainId
.
MAINNET
,
'
0x09a3ecafa817268f77be1283176b946c4ff2e608
'
,
18
,
'
MIR
'
,
'
Wrapped MIR
'
)
export
const
UNI
:
{
[
chainId
:
number
]:
Token
}
=
{
[
SupportedChainId
.
MAINNET
]:
new
Token
(
SupportedChainId
.
MAINNET
,
UNI_ADDRESS
[
1
],
18
,
'
UNI
'
,
'
Uniswap
'
),
[
SupportedChainId
.
RINKEBY
]:
new
Token
(
SupportedChainId
.
RINKEBY
,
UNI_ADDRESS
[
4
],
18
,
'
UNI
'
,
'
Uniswap
'
),
...
...
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