Skip to content
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

chore: added routes for two & three coin #957

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion src/config/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,21 @@ export const ADDITIONAL_BASES: {
[ETHEREUM.SPANK.address]: [ETHEREUM.RAI],
[ETHEREUM.DOLA.address]: [ETHEREUM.INV],
[ETHEREUM.AGEUR.address]: [ETHEREUM.ANGLE],
[ETHEREUM.TWO.address]: [
ETHEREUM.DAI,
ETHEREUM.AAVE,
ETHEREUM.LINK,
ETHEREUM.MKR,
ETHEREUM.SNX,
ETHEREUM.WBTC,
ETHEREUM.YFI,
ETHEREUM.ENJ,
ETHEREUM.SUSHI,
ETHEREUM.WETH,
ETHEREUM.COMP,
ETHEREUM.GALA,
ETHEREUM.XSUSHI,
],
},
[ChainId.MATIC]: {
[MATIC.FRAX.address]: [MATIC.FXS],
Expand All @@ -301,7 +316,20 @@ export const ADDITIONAL_BASES: {
[MATIC.AXMATIC.address]: [MATIC.DMAGIC],
[MATIC.BCT.address]: [MATIC.KLIMA],
[MATIC.KLIMA.address]: [MATIC.BCT],
//[MATIC.DMAGIC.address]: [MATIC.DRAX, MATIC.AXMATIC],
[MATIC.THREE.address]: [
MATIC.DAI,
WNATIVE[ChainId.MATIC],
MATIC.AAVE,
MATIC.LINK,
MATIC.MANA,
MATIC.SNX,
MATIC.CRV,
MATIC.WBTC,
MATIC.YFI,
MATIC.ENJ,
MATIC.XSUSHI,
MATIC.WETH,
],
},
[ChainId.ARBITRUM]: {
[ARBITRUM.FRAX.address]: [ARBITRUM.FXS],
Expand All @@ -323,6 +351,18 @@ export const ADDITIONAL_BASES: {
[ChainId.FANTOM]: {
[FANTOM.FRAX.address]: [FANTOM.FXS],
[FANTOM.FXS.address]: [FANTOM.FRAX],
/*[FANTOM.FOUR.address]: [
FANTOM.DAI,
WNATIVE[ChainId.FANTOM],
FANTOM.WBTC,
FANTOM.LINK,
FANTOM.SNX,
FANTOM.CRV,
FANTOM.WBTC,
FANTOM.YFI,
FANTOM.XSUSHI,
FANTOM.WETH,
],*/
},
[ChainId.BSC]: {
[BSC.FRAX.address]: [BSC.FXS],
Expand Down
35 changes: 35 additions & 0 deletions src/config/tokens/ethereum.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
import { ChainId, Token } from '@sushiswap/core-sdk'

// Default Ethereum chain tokens
export const AAVE = new Token(ChainId.ETHEREUM, '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9', 18, 'AAVE', 'Aave')
export const LINK = new Token(
ChainId.ETHEREUM,
'0x514910771AF9Ca656af840dff83E8264EcF986CA',
18,
'LINK',
'ChainLink Token'
)
export const MKR = new Token(ChainId.ETHEREUM, '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2', 18, 'MKR', 'Maker')
export const SNX = new Token(
ChainId.ETHEREUM,
'0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F',
18,
'SNX',
'Synthetix Network Token'
)
export const COMP = new Token(ChainId.ETHEREUM, '0xc00e94Cb662C3520282E6f5717214004A7f26888', 18, 'COMP', 'Compound')
export const GALA = new Token(ChainId.ETHEREUM, '0x15D4c048F83bd7e37d49eA4C83a07267Ec4203dA', 8, 'GALA', 'Gala')
export const ENJ = new Token(ChainId.ETHEREUM, '0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c', 18, 'ENJ', 'Enjin Coin')
export const SUSHI = new Token(
ChainId.ETHEREUM,
'0x6B3595068778DD592e39A122f4f5a5cF09C90fE2',
18,
'SUSHI',
'SushiToken'
)
export const WETH = new Token(
ChainId.ETHEREUM,
'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
18,
'WETH',
'Wrapped Ether'
)
export const TWO = new Token(ChainId.ETHEREUM, '0x1e0275806C3CD0bDb5C99916A064d36b5e8eAE8d', 18, 'TWO', 'TwoCoin')

export const ALPHA = new Token(
ChainId.ETHEREUM,
'0xa1faa113cbE53436Df28FF0aEe54275c13B40975',
Expand Down
27 changes: 27 additions & 0 deletions src/config/tokens/matic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,30 @@ export const MIM = new Token(
export const ICE = new Token(ChainId.MATIC, '0x4e1581f01046eFDd7a1a2CDB0F82cdd7F71F2E59', 18, 'ICE', 'IceToken')
export const gOHM = new Token(ChainId.MATIC, '0xd8cA34fd379d9ca3C6Ee3b3905678320F5b45195', 18, 'gOHM', 'Governance OHM')
export const STG = new Token(ChainId.MATIC, '0x2F6F07CDcf3588944Bf4C42aC74ff24bF56e7590', 18, 'STG', 'StargateToken')

export const THREE = new Token(ChainId.MATIC, '0x9B034262e0095210ab9ddec60199741a8a1FbFe7', 18, 'THREE', 'Three Coin')
export const LINK = new Token(
ChainId.MATIC,
'0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39',
18,
'LINK',
'ChainLink Token'
)
export const MANA = new Token(
ChainId.MATIC,
'0xA1c57f48F0Deb89f569dFbE6E2B7f46D33606fD4',
18,
'MANA',
'Decentraland MANA'
)
export const SNX = new Token(
ChainId.MATIC,
'0x50B728D8D964fd00C2d0AAD81718b71311feF68a',
18,
'SNX',
'Synthetix Network Token'
)
export const CRV = new Token(ChainId.MATIC, '0x172370d5Cd63279eFa6d502DAB29171933a610AF', 18, 'CRV', 'Curve DAO Token')
export const YFI = new Token(ChainId.MATIC, '0xb8cb8a7F4C2885C03e57E973C74827909Fdc2032', 18, 'YFI', 'yearn.finance')
export const ENJ = new Token(ChainId.MATIC, '0x7eC26842F195c852Fa843bB9f6D8B583a274a157', 18, 'ENJ', 'Enjin Coin')
export const XSUSHI = new Token(ChainId.MATIC, '0x6811079E3c63ED96Eb005384d7E7ec8810E3D521', 18, 'XSUSHI', 'xSUSHI')