fix: remove bridged USDC from quickselect (#7529)

* fix: remove bridged usdc from quickselect

* oops remove migrations logic

* update routing test
This commit is contained in:
Kristie Huang 2023-10-31 16:26:44 -04:00 committed by GitHub
parent ff3ed31dd7
commit 9536df2ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 36 deletions

@ -14,7 +14,7 @@ describe('Routing', () => {
})
it('contains all coins for optimism', () => {
const symbols = COMMON_BASES[ChainId.OPTIMISM].map((coin) => coin.symbol)
expect(symbols).toEqual(['ETH', 'OP', 'DAI', 'USDC', 'USDC.e', 'USDT', 'WBTC'])
expect(symbols).toEqual(['ETH', 'OP', 'DAI', 'USDC', 'USDT', 'WBTC'])
})
it('contains all coins for polygon', () => {
const symbols = COMMON_BASES[ChainId.POLYGON].map((coin) => coin.symbol)

@ -20,7 +20,6 @@ import {
OP,
PORTAL_ETH_CELO,
PORTAL_USDC_CELO,
USDbC_BASE,
USDC_ARBITRUM,
USDC_ARBITRUM_GOERLI,
USDC_AVALANCHE,
@ -31,8 +30,6 @@ import {
USDC_OPTIMISM_GOERLI,
USDC_POLYGON,
USDC_POLYGON_MUMBAI,
USDCe_OPTIMISM,
USDCe_OPTIMISM_GOERLI,
USDT,
USDT_ARBITRUM_ONE,
USDT_AVALANCHE,
@ -94,18 +91,10 @@ export const COMMON_BASES: ChainCurrencyList = {
USDC_ARBITRUM_GOERLI,
],
[ChainId.OPTIMISM]: [
nativeOnChain(ChainId.OPTIMISM),
OP,
DAI_OPTIMISM,
USDC_OPTIMISM,
USDCe_OPTIMISM,
USDT_OPTIMISM,
WBTC_OPTIMISM,
],
[ChainId.OPTIMISM_GOERLI]: [nativeOnChain(ChainId.OPTIMISM_GOERLI), USDC_OPTIMISM_GOERLI, USDCe_OPTIMISM_GOERLI],
[ChainId.OPTIMISM]: [nativeOnChain(ChainId.OPTIMISM), OP, DAI_OPTIMISM, USDC_OPTIMISM, USDT_OPTIMISM, WBTC_OPTIMISM],
[ChainId.OPTIMISM_GOERLI]: [nativeOnChain(ChainId.OPTIMISM_GOERLI), USDC_OPTIMISM_GOERLI],
[ChainId.BASE]: [nativeOnChain(ChainId.BASE), WRAPPED_NATIVE_CURRENCY[ChainId.BASE] as Token, USDC_BASE, USDbC_BASE],
[ChainId.BASE]: [nativeOnChain(ChainId.BASE), WRAPPED_NATIVE_CURRENCY[ChainId.BASE] as Token, USDC_BASE],
[ChainId.POLYGON]: [
nativeOnChain(ChainId.POLYGON),

@ -24,13 +24,6 @@ export const USDC_OPTIMISM = new Token(
'USDC',
'USD//C'
)
export const USDCe_OPTIMISM = new Token(
ChainId.OPTIMISM,
'0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
6,
'USDC.e',
'Bridged USDC'
)
export const USDC_OPTIMISM_GOERLI = new Token(
ChainId.OPTIMISM_GOERLI,
'0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6',
@ -38,13 +31,6 @@ export const USDC_OPTIMISM_GOERLI = new Token(
'USDC',
'USD//C'
)
export const USDCe_OPTIMISM_GOERLI = new Token(
ChainId.OPTIMISM_GOERLI,
'0x7E07E15D2a87A24492740D16f5bdF58c16db0c4E',
6,
'USDC.e',
'Bridged USDC'
)
export const USDC_ARBITRUM = new Token(
ChainId.ARBITRUM_ONE,
'0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
@ -80,13 +66,6 @@ export const PORTAL_USDC_CELO = new Token(
'USDCet',
'USDC (Portal from Ethereum)'
)
export const USDbC_BASE = new Token(
ChainId.BASE,
'0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
6,
'USDbC',
'USD Base Coin'
)
export const USDC_BASE = new Token(ChainId.BASE, '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913', 6, 'USDC', 'USD Coin')
export const DAI = new Token(ChainId.MAINNET, '0x6B175474E89094C44Da98b954EedeAC495271d0F', 18, 'DAI', 'Dai Stablecoin')