Skip to content

fix: Adds missing chiliz entry on constants/networks.ts#40528

Merged
bizk merged 2 commits intomainfrom
fix-chiliz-missing-price
Mar 2, 2026
Merged

fix: Adds missing chiliz entry on constants/networks.ts#40528
bizk merged 2 commits intomainfrom
fix-chiliz-missing-price

Conversation

@bizk
Copy link
Contributor

@bizk bizk commented Mar 2, 2026

Description

Chiliz network was not added to CHAIN_ID_TO_CURRENCY_SYMBOL_MAP causing the extension to use the fallback map. But the fallback is not behaving as expected, causing the system to use a different address fromat when calling the price api. In consequence failing to load the price properly.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Adds "CHZ' to CHAIN_ID_TO_CURRENCY_SYMBOL_MAP

Related issues

Fixes: Missing price api values for Chiliz native token

Manual testing steps

  1. Go to Chiliz network
  2. Click on "chiliz token"
  3. Look into the price format

Screenshots/Recordings

Before

After

image

Pre-merge author checklist

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.

Note

Low Risk
Low risk constants-only change scoped to Chiliz chain ID; main impact is on native ticker resolution used by price/token formatting for that network.

Overview
Fixes Chiliz native token resolution by adding CHILIZ: 'CHZ' to CURRENCY_SYMBOLS and mapping CHAIN_IDS.CHZ to that symbol in CHAIN_ID_TO_CURRENCY_SYMBOL_MAP.

This ensures Chiliz uses the primary chainId-to-ticker mapping (instead of the collision/fallback map), preventing incorrect downstream formatting (e.g., price API lookups) for CHZ.

Written by Cursor Bugbot for commit 50bb868. This will update automatically on new commits. Configure here.

@bizk bizk requested a review from gabrieledm March 2, 2026 12:21
@bizk bizk self-assigned this Mar 2, 2026
@bizk bizk added the team-networks PRs from the Networks team label Mar 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 2, 2026

Builds ready [1e2d34f]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account28627130814288308
total28627130814288308
Confirm Txconfirm_tx6078603761072861056107
total6078603761072861056107
Bridge User Actionsbridge_load_page2772692866282286
bridge_load_asset_picker18711828866242288
bridge_search_token72270773412732734
total1196111113358312431335
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14371179193911514731618
load12061002163910312451397
domContentLoaded1199995163110112411364
domInteractive2917101182578
firstPaint154721209125203244
backgroundConnect21219239622213238
firstReactRender19133942026
initialActions105124
loadScripts1004806143510010401164
setupStore1363851522
numNetworkReqs312292192282
Power User HomeuiStartup18111477481033818482051
load11941035173114411861621
domContentLoaded11761025172313911691549
domInteractive3620162213792
firstPaint186751116129254337
backgroundConnect3362703184288318366
firstReactRender24155482545
initialActions104112
loadScripts95381914981409431337
setupStore1564861726
numNetworkReqs61371602664119
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172201220220
srpButtonToSrpForm95949619696
confirmSrpToPwForm22222202222
pwFormToMetricsScreen15151601516
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen892599127830112301278
openAccountMenuToAccountListLoaded74117024788431576657884
total8841878188984388618898
Onboarding New WalletcreateWalletToSocialScreen2192162223221222
srpButtonToPwForm1091011217107121
createPwToRecoveryScreen889089
skipBackupToMetricsScreen35353603636
agreeButtonToOnboardingSuccess16151601616
doneButtonToAssetList703605940138641940
total1099981134114310611341
Asset DetailsassetClickToPriceChart503763105763
total503763105763
Solana Asset DetailsassetClickToPriceChart51495325353
total51495325353
Import Srp HomeloginToHomeScreen21171875234317422832343
openAccountMenuAfterLogin43394844748
homeAfterImportWithNewWallet23192124262821825392628
total44844059488929646734889
Send TransactionsopenSendPageFromHome40354334043
selectTokenToSendFormLoaded22202422324
reviewTransactionToConfirmationPage9278581078839541078
total9559141018399511018
SwapopenSwapPageFromHome1141131141114114
fetchAndDisplaySwapQuotes6260623662902362906290
total6374634964032264036403
🌐 Dapp Page Load Benchmarks

Current Commit: 1e2d34f | Date: 3/2/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±41ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 729ms (±37ms) 🟢 | historical mean value: 741ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±13ms) 🟢 | historical mean value: 82ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 41ms 1.01s 1.33s 1.07s 1.33s
domContentLoaded 729ms 37ms 706ms 1.00s 745ms 1.00s
firstPaint 80ms 13ms 64ms 200ms 88ms 200ms
firstContentfulPaint 80ms 13ms 64ms 200ms 88ms 200ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 5 Bytes (0%)
  • common: 82 Bytes (0%)

@bizk bizk marked this pull request as ready for review March 2, 2026 13:10
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2026

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 2, 2026

Builds ready [50bb868]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2862812903288290
total2862812903288290
Confirm Txconfirm_tx604060386045360456045
total604060386045360456045
Bridge User Actionsbridge_load_page24923525810258258
bridge_load_asset_picker25817529748294297
bridge_search_token71769973215731732
total1251112813908813011390
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup13991184176110414251608
load117899515609412021352
domContentLoaded117199215288911941345
domInteractive2717100182476
firstPaint164701395147211325
backgroundConnect20719029115208242
firstReactRender19123642126
initialActions106124
loadScripts97879613298910051153
setupStore1474561625
numNetworkReqs312293192284
Power User HomeuiStartup17221411273518217471997
load11361017199015911061548
domContentLoaded11221008197615610971519
domInteractive3518212273782
firstPaint180721624168215350
backgroundConnect28725548633293334
firstReactRender22155372336
initialActions106113
loadScripts91580817241488971295
setupStore1573961622
numNetworkReqs60391562659133
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202172242221224
srpButtonToSrpForm95949619596
confirmSrpToPwForm22212312323
pwFormToMetricsScreen16151711617
metricsToWalletReadyScreen16151711617
doneButtonToHomeScreen909604123927512331239
openAccountMenuToAccountListLoaded74897022788532076967885
total8769862088648688178864
Onboarding New WalletcreateWalletToSocialScreen2212182232223223
srpButtonToPwForm11410513010121130
createPwToRecoveryScreen889089
skipBackupToMetricsScreen35343713637
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList894600130527010611305
total1289988168926714701689
Asset DetailsassetClickToPriceChart40355273952
total40355273952
Solana Asset DetailsassetClickToPriceChart49475324953
total49475324953
Import Srp HomeloginToHomeScreen1959191220696419382069
openAccountMenuAfterLogin40384533945
homeAfterImportWithNewWallet23272162254115324782541
total43524113451815244424518
Send TransactionsopenSendPageFromHome331943104143
selectTokenToSendFormLoaded22192422224
reviewTransactionToConfirmationPage8648488759870875
total9189139275921927
SwapopenSwapPageFromHome14911417822167178
fetchAndDisplaySwapQuotes4631457247557446194755
total4783474448695147674869
🌐 Dapp Page Load Benchmarks

Current Commit: 50bb868 | Date: 3/2/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.07s (±38ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 737ms (±36ms) 🟢 | historical mean value: 741ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±10ms) 🟢 | historical mean value: 82ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.07s 38ms 1.04s 1.34s 1.12s 1.34s
domContentLoaded 737ms 36ms 709ms 998ms 782ms 998ms
firstPaint 83ms 10ms 68ms 168ms 92ms 168ms
firstContentfulPaint 83ms 10ms 68ms 168ms 92ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 5 Bytes (0%)
  • common: 51 Bytes (0%)

@bizk bizk added this pull request to the merge queue Mar 2, 2026
Merged via the queue into main with commit 3d7093c Mar 2, 2026
336 of 341 checks passed
@bizk bizk deleted the fix-chiliz-missing-price branch March 2, 2026 20:17
@github-actions github-actions bot locked and limited conversation to collaborators Mar 2, 2026
@metamaskbot metamaskbot added the release-13.22.0 Issue or pull request that will be included in release 13.22.0 label Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.22.0 Issue or pull request that will be included in release 13.22.0 size-XS team-networks PRs from the Networks team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants