Skip to content

Commit e5e7141

Browse files
release(runway): cherry-pick fix: incorrect USDC address for SEI cp-13.7.0 (#37221)
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** This PR update the USDC address for SEI from (USDCN - 0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1) to (USDC 0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392) <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/37221?quickstart=1) ## **Changelog** <!-- If this PR is not End-User-Facing and should not show up in the CHANGELOG, you can choose to either: 1. Write `CHANGELOG entry: null` 2. Label with `no-changelog` If this PR is End-User-Facing, please write a short User-Facing description in the past tense like: `CHANGELOG entry: Added a new tab for users to see their NFTs` `CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker` (This helps the Release Engineer do their job more quickly and accurately) --> CHANGELOG entry: Fixed the incorrect `USDC` address for SEI ## **Related issues** Fixes: https://consensyssoftware.atlassian.net/browse/BENE-245 ## **Manual testing steps** 1. Open the SWAP screen 2. Select the SEI network 3. we should see on 1 USDC and 1 USDCN token from the list ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <img width="200" alt="image" src="https://github.com/user-attachments/assets/b1e08665-ef34-4e3c-8b30-89a7a4175c79" /> ### **After** <img width="200" alt="image" src="https://github.com/user-attachments/assets/bd9581f7-8a00-41de-9cc3-cb939109b88d" /> ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Replaces the SEI USDC token address across bridge, swaps, UI stablecoin maps, fixtures, and E2E onboarding data; removes old USDCN reference. > > - **SEI USDC address update** > - Replace `0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1` with `0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392`. > - **Constants**: > - `shared/constants/bridge.ts`: Update `BRIDGE_CHAINID_COMMON_TOKEN_PAIR` for `CHAIN_IDS.SEI` to new USDC address. > - `shared/constants/swaps.ts`: Update `StablecoinsByChainId[CHAIN_IDS.SEI]` to new USDC address. > - `ui/pages/bridge/utils/stablecoins.ts`: Update `STABLECOINS_BY_CHAIN_ID[CHAIN_IDS.SEI]` to new USDC address. > - **Fixtures**: > - `app/scripts/fixtures/with-erc20-tokens.js`: Replace SEI token entry from `USDCN` to `USDC` with new address. > - `test/e2e/fixtures/onboarding-fixture.json`: Update `stablecoins` list for chain `1329` to new USDC address. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 6246089. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 65c849e commit e5e7141

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

app/scripts/fixtures/with-erc20-tokens.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,8 @@ export const FIXTURES_ERC20_TOKENS = {
506506
decimals: 18,
507507
},
508508
{
509-
address: '0x3894085ef7ff0f0aedf52e2a2704928d1ec074f1',
510-
symbol: 'USDCN',
509+
address: '0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392',
510+
symbol: 'USDC',
511511
decimals: 6,
512512
},
513513
{

shared/constants/bridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export const BRIDGE_CHAINID_COMMON_TOKEN_PAIR: Partial<
169169
},
170170
[toEvmCaipChainId(CHAIN_IDS.SEI)]: {
171171
// SEI -> USDC on Sei
172-
address: '0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1',
172+
address: '0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392',
173173
symbol: 'USDC',
174174
decimals: 6,
175175
name: 'USD Coin',

shared/constants/swaps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,6 @@ export const StablecoinsByChainId: Partial<Record<string, Set<string>>> = {
524524
'0x493257fD37EDB34451f62EDf8D2a0C418852bA4C', // USDT
525525
]),
526526
[CHAIN_IDS.SEI]: new Set([
527-
'0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1', // USDC
527+
'0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392', // USDC
528528
]),
529529
};

test/e2e/fixtures/onboarding-fixture.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@
17311731
"isActiveDest": true,
17321732
"isActiveSrc": true,
17331733
"isSingleSwapBridgeButtonEnabled": true,
1734-
"stablecoins": ["0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1"]
1734+
"stablecoins": ["0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392"]
17351735
},
17361736
"8453": {
17371737
"isActiveDest": true,

ui/pages/bridge/utils/stablecoins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ export const STABLECOINS_BY_CHAIN_ID: Partial<Record<string, Set<string>>> = {
5353
'0x493257fD37EDB34451f62EDf8D2a0C418852bA4C', // USDT
5454
]),
5555
[CHAIN_IDS.SEI]: new Set([
56-
'0x3894085Ef7Ff0f0aeDf52E2A2704928d1Ec074F1', // USDC
56+
'0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392', // USDC
5757
]),
5858
};

0 commit comments

Comments
 (0)