Skip to content

Commit 3dba1e3

Browse files
committed
fix: cp-7.59.1 cp-7.60.0 add mon to the currency list (#23269)
<!-- 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. --> add mon currency to the currencies list <!-- 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? --> <!-- 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: add mon currency to currencies list Fixes: ```gherkin Feature: my feature name Scenario: user [verb for user action] Given [describe expected initial app state] When user [verb for user action] Then [describe expected outcome] ``` <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> <!-- [screenshots/recordings] --> <img width="457" height="900" alt="Screenshot 2025-11-25 at 18 47 45" src="https://github.com/user-attachments/assets/64f9d752-da8b-44ea-978b-5ec8989c14c6" /> <!-- [screenshots/recordings] --> - [ ] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] 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] > Normalizes account keys to lowercase in TokenBalancesController and adds 'mon' to supported currencies. > > - **Assets Controllers**: > - **TokenBalancesController**: Normalize account keys to lowercase when reading/writing `d.tokenBalances` in `dist/TokenBalancesController.{cjs,mjs}` to ensure consistent balance updates. > - **Token Prices Service**: > - Add `"mon"` (Monad) to `SUPPORTED_CURRENCIES` in `dist/token-prices-service/codefi-v2.cjs`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d9452ad. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 5c29af9 commit 3dba1e3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.yarn/patches/@metamask-assets-controllers-npm-88.0.0-3dfc0ab8f1.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,16 @@ index 420934fb16ed6151b5b80fb7be04f81352b4aaf4..d735379adcaf77cbd46b4659f9bfd320
4646
}
4747
}
4848
});
49+
diff --git a/dist/token-prices-service/codefi-v2.cjs b/dist/token-prices-service/codefi-v2.cjs
50+
index 34f7bcf4dea1b8d6a1ea45051be09059d9d35353..6aa82360e63727852cda1719f5e893508b764e75 100644
51+
--- a/dist/token-prices-service/codefi-v2.cjs
52+
+++ b/dist/token-prices-service/codefi-v2.cjs
53+
@@ -98,6 +98,8 @@ exports.SUPPORTED_CURRENCIES = [
54+
'mxn',
55+
// Malaysian Ringgit
56+
'myr',
57+
+ // Monad
58+
+ 'mon',
59+
// Nigerian Naira
60+
'ngn',
61+
// Norwegian Krone

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7004,7 +7004,7 @@ __metadata:
70047004

70057005
"@metamask/assets-controllers@patch:@metamask/assets-controllers@npm%3A88.0.0#~/.yarn/patches/@metamask-assets-controllers-npm-88.0.0-3dfc0ab8f1.patch":
70067006
version: 88.0.0
7007-
resolution: "@metamask/assets-controllers@patch:@metamask/assets-controllers@npm%3A88.0.0#~/.yarn/patches/@metamask-assets-controllers-npm-88.0.0-3dfc0ab8f1.patch::version=88.0.0&hash=ab5ccb"
7007+
resolution: "@metamask/assets-controllers@patch:@metamask/assets-controllers@npm%3A88.0.0#~/.yarn/patches/@metamask-assets-controllers-npm-88.0.0-3dfc0ab8f1.patch::version=88.0.0&hash=ac5671"
70087008
dependencies:
70097009
"@ethereumjs/util": "npm:^9.1.0"
70107010
"@ethersproject/abi": "npm:^5.7.0"
@@ -7050,7 +7050,7 @@ __metadata:
70507050
"@metamask/snaps-controllers": ^14.0.0
70517051
"@metamask/transaction-controller": ^61.0.0
70527052
webextension-polyfill: ^0.10.0 || ^0.11.0 || ^0.12.0
7053-
checksum: 10/17587884760c7856d4459c2f60a1acff0d2430b4ae0f9710bff15076e7d21f726d2a1380781d427d32859f1e6e7568eda48e277093d3b85aaffab82021a14c0c
7053+
checksum: 10/d3e7c1d52fef37270c4060a0811cccb905a690cef1546c4713ede6d7a1e75c810c5efb71225092cfd8a3975676f2141a81b59456a6f2f41a160598565d36dfd8
70547054
languageName: node
70557055
linkType: hard
70567056

0 commit comments

Comments
 (0)