Skip to content

Commit

Permalink
feat: Replace _USDC entry with USDC (#41)
Browse files Browse the repository at this point in the history
Replaces  existing USDC value with _USDC value; removes _USDC key
  • Loading branch information
nicholaspai authored May 28, 2024
1 parent e4a303c commit 5cc44db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
Expand Down
31 changes: 1 addition & 30 deletions src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};

0 comments on commit 5cc44db

Please sign in to comment.