Skip to content

Commit

Permalink
Added SUSHI, YAM, and WBTC to base routing pairs list
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro-ono committed Dec 8, 2020
1 parent 448e88c commit 170b81a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChainId, JSBI, Percent, Token, WETH } from '@uniswap/sdk'
import { AbstractConnector } from '@sushi-web3-react/abstract-connector'

import { fortmatic, injected, portis, walletconnect, walletlink, lattice } from '../connectors'
import { fortmatic, injected, portis, walletconnect, walletlink, lattice, ledger } from '../connectors'

export const ROUTER_ADDRESS = '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F'

Expand All @@ -16,6 +16,11 @@ export const USDT = new Token(ChainId.MAINNET, '0xdAC17F958D2ee523a2206206994597
export const COMP = new Token(ChainId.MAINNET, '0xc00e94Cb662C3520282E6f5717214004A7f26888', 18, 'COMP', 'Compound')
export const MKR = new Token(ChainId.MAINNET, '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2', 18, 'MKR', 'Maker')
export const AMPL = new Token(ChainId.MAINNET, '0xD46bA6D942050d489DBd938a2C909A5d5039A161', 9, 'AMPL', 'Ampleforth')
export const WBTC = new Token(ChainId.MAINNET, '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599', 18, 'WBTC', 'Wrapped BTC')
export const SUSHI = new Token(ChainId.MAINNET, '0x6B3595068778DD592e39A122f4f5a5cF09C90fE2', 18, 'SUSHI', 'SushiToken')
export const YAM = new Token(ChainId.MAINNET, '0x0e2298E3B3390e3b945a5456fBf59eCc3f55DA16', 18, 'YAM', 'YAM')



const WETH_ONLY: ChainTokenList = {
[ChainId.MAINNET]: [WETH[ChainId.MAINNET]],
Expand All @@ -28,7 +33,7 @@ const WETH_ONLY: ChainTokenList = {
// used to construct intermediary pairs for trading
export const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList = {
...WETH_ONLY,
[ChainId.MAINNET]: [...WETH_ONLY[ChainId.MAINNET], DAI, USDC, USDT, COMP, MKR]
[ChainId.MAINNET]: [...WETH_ONLY[ChainId.MAINNET], DAI, USDC, USDT, SUSHI, YAM, WBTC]
}

/**
Expand Down Expand Up @@ -112,6 +117,15 @@ export const SUPPORTED_WALLETS: { [key: string]: WalletInfo } = {
color: '#40a9ff',
mobile: true
},
LEDGER: {
connector: ledger,
name: 'Ledger',
iconName: 'portisIcon.png',
description: 'Connect to Ledger Wallet.',
href: null,
color: '#ffffff',
mobile: true
},
WALLET_LINK: {
connector: walletlink,
name: 'Coinbase Wallet',
Expand Down

0 comments on commit 170b81a

Please sign in to comment.