-
Notifications
You must be signed in to change notification settings - Fork 316
feat(dex): integration mdex #5798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
guanbinrui
merged 9 commits into
DimensionDev:develop
from
developerfred:feat/mdex-exchange
Mar 20, 2022
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
aa22987
feat(network): add Heco
developerfred e45c152
feat(heco): add mdex exchange
developerfred 0e07965
feat(heco): add heco image
developerfred c660dbb
Merge branch 'feat/heco-blockchain' into feat/mdex-exchange
developerfred da06fb6
feat(dex): integrate MDEX exchange #5796
developerfred 4d065d5
feat(mdex): enable trade ETH network
developerfred 6089e7a
chore(mdex): remove mdx on eth mainnet
developerfred a340efb
Merge branch 'develop' into feat/mdex-exchange
developerfred 5316e1e
Merge remote-tracking branch 'upstream/develop' into feat/mdex-exchange
developerfred File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,6 +142,7 @@ | |
| "masktext", | ||
| "mastdon", | ||
| "mayen", | ||
| "mdex", | ||
| "merkel", | ||
| "merkle", | ||
| "metas", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { ChainId, DAI, USDC, USDT, WNATIVE, WNATIVE_ONLY } from '@masknet/web3-shared-evm' | ||
| import type { ERC20AgainstToken, ERC20TokenCustomizedBase } from './types' | ||
|
|
||
| /** | ||
| * Some tokens can only be swapped via certain pairs, | ||
| * so we override the list of bases that are considered for these tokens. | ||
| */ | ||
| export const MDEX_CUSTOM_BASES: ERC20TokenCustomizedBase = {} | ||
|
|
||
| export const MDEX_BASE_AGAINST_TOKENS: ERC20AgainstToken = { | ||
| ...WNATIVE_ONLY, | ||
| [ChainId.Mainnet]: [WNATIVE, DAI, USDC, USDT].map((x) => x[ChainId.Mainnet]), | ||
| [ChainId.BSC]: [WNATIVE, DAI, USDC, USDT].map((x) => x[ChainId.BSC]), | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.