fix: add native USDC to Optimism quick-select (#7499)
* fix: add native USDC to Optimism quick-select * fix jest test
This commit is contained in:
parent
b670affd4c
commit
635875345e
@ -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', 'USDT', 'WBTC'])
|
||||
expect(symbols).toEqual(['ETH', 'OP', 'DAI', 'USDC', 'USDC.e', 'USDT', 'WBTC'])
|
||||
})
|
||||
it('contains all coins for polygon', () => {
|
||||
const symbols = COMMON_BASES[ChainId.POLYGON].map((coin) => coin.symbol)
|
||||
|
@ -28,8 +28,11 @@ import {
|
||||
USDC_BSC,
|
||||
USDC_MAINNET,
|
||||
USDC_OPTIMISM,
|
||||
USDC_OPTIMISM_GOERLI,
|
||||
USDC_POLYGON,
|
||||
USDC_POLYGON_MUMBAI,
|
||||
USDCe_OPTIMISM,
|
||||
USDCe_OPTIMISM_GOERLI,
|
||||
USDT,
|
||||
USDT_ARBITRUM_ONE,
|
||||
USDT_AVALANCHE,
|
||||
@ -91,8 +94,16 @@ export const COMMON_BASES: ChainCurrencyList = {
|
||||
USDC_ARBITRUM_GOERLI,
|
||||
],
|
||||
|
||||
[ChainId.OPTIMISM]: [nativeOnChain(ChainId.OPTIMISM), OP, DAI_OPTIMISM, USDC_OPTIMISM, USDT_OPTIMISM, WBTC_OPTIMISM],
|
||||
[ChainId.OPTIMISM_GOERLI]: [nativeOnChain(ChainId.OPTIMISM_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.BASE]: [nativeOnChain(ChainId.BASE), WRAPPED_NATIVE_CURRENCY[ChainId.BASE] as Token, USDC_BASE, USDbC_BASE],
|
||||
|
||||
|
@ -19,18 +19,32 @@ const USDC_GOERLI = new Token(ChainId.GOERLI, '0x07865c6e87b9f70255377e024ace663
|
||||
const USDC_SEPOLIA = new Token(ChainId.SEPOLIA, '0x6f14C02Fc1F78322cFd7d707aB90f18baD3B54f5', 6, 'USDC', 'USD//C')
|
||||
export const USDC_OPTIMISM = new Token(
|
||||
ChainId.OPTIMISM,
|
||||
'0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
|
||||
'0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
|
||||
6,
|
||||
'USDC',
|
||||
'USD//C'
|
||||
)
|
||||
const USDC_OPTIMISM_GOERLI = new Token(
|
||||
export const USDCe_OPTIMISM = new Token(
|
||||
ChainId.OPTIMISM,
|
||||
'0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
|
||||
6,
|
||||
'USDC.e',
|
||||
'Bridged USDC'
|
||||
)
|
||||
export const USDC_OPTIMISM_GOERLI = new Token(
|
||||
ChainId.OPTIMISM_GOERLI,
|
||||
'0x7E07E15D2a87A24492740D16f5bdF58c16db0c4E',
|
||||
'0xe05606174bac4A6364B31bd0eCA4bf4dD368f8C6',
|
||||
6,
|
||||
'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',
|
||||
|
Loading…
Reference in New Issue
Block a user