From 5cc44db67b0b3d92cb3e7aa39ee4ec68609a557b Mon Sep 17 00:00:00 2001 From: nicholaspai <9457025+nicholaspai@users.noreply.github.com> Date: Tue, 28 May 2024 18:27:38 -0400 Subject: [PATCH] feat: Replace _USDC entry with USDC (#41) Replaces existing USDC value with _USDC value; removes _USDC key --- package.json | 2 +- src/tokens.ts | 31 +------------------------------ 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index d73b7d9..444bda5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/constants-v2", - "version": "1.0.27", + "version": "1.1.0", "description": "Export commonly re-used values for Across repositories", "repository": "https://github.com/across-protocol/constants-v2.git", "author": "hello@umaproject.org", diff --git a/src/tokens.ts b/src/tokens.ts index 7f1b259..d437e28 100644 --- a/src/tokens.ts +++ b/src/tokens.ts @@ -141,35 +141,7 @@ export const TOKEN_SYMBOLS_MAP = { [CHAIN_IDs.ARBITRUM]: "0xd693Ec944A85eeca4247eC1c3b130DCa9B0C3b22", }, }, - USDC: { - name: "USD Coin", - symbol: "USDC", - decimals: 6, - addresses: { - [CHAIN_IDs.MAINNET]: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", - [CHAIN_IDs.OPTIMISM]: "0x7F5c764cBc14f9669B88837ca1490cCa17c31607", - [CHAIN_IDs.POLYGON]: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", - [CHAIN_IDs.BOBA]: "0x66a2A913e447d6b4BF33EFbec43aAeF87890FBbc", - [CHAIN_IDs.ARBITRUM]: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8", - [CHAIN_IDs.SEPOLIA]: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", - // [CHAIN_IDs.GOERLI]: "0xd35CCeEAD182dcee0F148EbaC9447DA2c4D449c4", - [CHAIN_IDs.GOERLI]: "0x07865c6E87B9F70255377e024ace6630C1Eaa37F", // Uncomment for Optimism/Base testnet usage. - [CHAIN_IDs.MUMBAI]: "0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747", - [CHAIN_IDs.POLYGON_AMOY]: "0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582", - [CHAIN_IDs.ZK_SYNC]: "0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4", - [CHAIN_IDs.ZK_SYNC_GOERLI]: "0x0faF6df7054946141266420b43783387A78d82A9", - [CHAIN_IDs.BASE]: "0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA", - [CHAIN_IDs.BASE_GOERLI]: "0x853154e2A5604E5C74a2546E2871Ad44932eB92C", - [CHAIN_IDs.BASE_SEPOLIA]: "0x036CbD53842c5426634e7929541eC2318f3dCF7e", - [CHAIN_IDs.LINEA]: "0x176211869cA2b568f2A7D4EE941E073a821EE1ff", - [CHAIN_IDs.LINEA_GOERLI]: "0xB4257F31750961C8e536f5cfCBb3079437700416", - [CHAIN_IDs.MODE]: "0xd988097fb8612cc24eeC14542bC03424c656005f", - }, - }, - // NOTE: The entry `_USDC` should eventually replace the `USDC` entry because we now distinguish - // between bridged and non-bridged USDC. Until all components of the system are able to handle this - // distinction, we keep both entries for backwards compatibility. - "_USDC": { + "USDC": { name: "USD Coin", symbol: "USDC", decimals: 6, @@ -300,7 +272,6 @@ export const TOKEN_SYMBOLS_MAP = { // Hard-coded mapping of token symbols that should be treated as having equivalent // prices. The right-hand side should map to a token symbol in TOKEN_SYMBOLS_MAP. export const TOKEN_EQUIVALENCE_REMAPPING: { [symbol: string]: string } = { - ["_USDC"]: TOKEN_SYMBOLS_MAP["USDC"].symbol, [TOKEN_SYMBOLS_MAP["USDC.e"].symbol]: TOKEN_SYMBOLS_MAP["USDC"].symbol, [TOKEN_SYMBOLS_MAP["USDbC"].symbol]: TOKEN_SYMBOLS_MAP["USDC"].symbol, };