Skip to content

chore: bump @metamask/bridge-controller to fix rate-limited L1 fee calculations #33465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 56 commits into from

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented Jun 3, 2025

Description

Bumps the bridge-controller to 32.0.1 to gracefully handle rate-limited RPC requests

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MMS-2568
Fixes: #33465

Manual testing steps

  1. Change base RPC URL to mainnet.base.org
  2. Fetch quotes from base:ETH to ethereum:ETH
  3. Verify that quotes are visible on the frontend

Screenshots/Recordings

Before

After

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.

micaelae and others added 30 commits May 8, 2025 14:51
fix: undo priceData workarounds
@metamaskbot metamaskbot added the team-swaps-and-bridge For issues with Swaps or Bridging label Jun 3, 2025
@micaelae micaelae added the DO-NOT-MERGE Pull requests that should not be merged label Jun 3, 2025
Copy link

socket-security bot commented Jun 3, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​metamask/​bridge-controller@​32.0.0 ⏵ 32.0.194 +310076 +1100 +1100

View full report

@micaelae
Copy link
Member Author

micaelae commented Jun 3, 2025

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Builds ready [a53341d]
UI Startup Metrics (1208 ± 65 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1208109614046512481322
load104793612366010901138
domContentLoaded104092812256010851132
domInteractive16133441529
firstPaint76177123240110641132
backgroundConnect84305823
firstReactRender20165452129
getState1362971926
initialActions001001
loadScripts79769391158844888
setupStore85212811
WebpackHomeuiStartup20411524265422421742481
load15941191196717417061879
domContentLoaded15881187195217317011870
domInteractive15115791340
firstPaint1687034760193300
backgroundConnect21987102241
firstReactRender12242410101131344
getState134303301220
initialActions512972934
loadScripts15861186194117117001859
setupStore4963199518309
FirefoxBrowserifyHomeuiStartup13431146180113113781692
load11841017160211012311441
domContentLoaded11831017160111012311441
domInteractive963637238101150
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect27121823022109
firstReactRender23205152330
getState164188378160
initialActions001001
loadScripts11591007157910512141404
setupStore11418021849
WebpackHomeuiStartup15951358224317316652054
load13871185200916414491795
domContentLoaded13871185200916414481795
domInteractive77451361681118
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2415231222333
firstReactRender41305944448
getState11426026927
initialActions001011
loadScripts13661172198616514301777
setupStore10523323819
cc: @HowardBraham
Benchmark value 23 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 49 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2481 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 309 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 27 exceeds gate value 25 for firefox browserify home mean backgroundConnect
Benchmark value 17 exceeds gate value 11 for firefox browserify home mean getState
Benchmark value 11 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1692 exceeds gate value 1660 for firefox browserify home p95 uiStartup
Benchmark value 109 exceeds gate value 70 for firefox browserify home p95 backgroundConnect
Benchmark value 160 exceeds gate value 24 for firefox browserify home p95 getState
Benchmark value 49 exceeds gate value 27 for firefox browserify home p95 setupStore
Benchmark value 1388 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1388 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 42 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1366 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 2054 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1795 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1795 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 1777 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 53ms | Sum of p95 exceeds: 1041ms
Sum of all benchmark exceeds: 1094ms

@metamaskbot
Copy link
Collaborator

No policy changes

@micaelae micaelae closed this Jun 4, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2025
@micaelae micaelae reopened this Jun 5, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [8f42824]
UI Startup Metrics (1243 ± 76 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1243108415467612951362
load107694413337211281188
domContentLoaded106994013247211181179
domInteractive17139891629
firstPaint80370127341311131187
backgroundConnect94456824
firstReactRender20153532026
getState1453172027
initialActions001000
loadScripts822693106871870932
setupStore85182813
WebpackHomeuiStartup20881627256923222692455
load16061294196517017321900
domContentLoaded16001290195616917241887
domInteractive15115791342
firstPaint1646664076182290
backgroundConnect22136372533
firstReactRender15243365117312356
getState174349451321
initialActions314134
loadScripts15971288194516717211876
setupStore4263208518308
FirefoxBrowserifyHomeuiStartup13371178191112413971588
load11841034153610312581383
domContentLoaded11841034153610312581383
domInteractive893715522101123
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2112118122148
firstReactRender23205242428
getState10518119810
initialActions001001
loadScripts11661016150510212431362
setupStore10427328613
WebpackHomeuiStartup16071376211617017191957
load13981181186115815131709
domContentLoaded13981181186015815131709
domInteractive76321631882102
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21165562332
firstReactRender42325844550
getState95304917
initialActions002111
loadScripts13791165184115914971689
setupStore95669825
Benchmark value 1243 exceeds gate value 1234 for chrome browserify home mean uiStartup
Benchmark value 1077 exceeds gate value 1070 for chrome browserify home mean load
Benchmark value 1069 exceeds gate value 1061 for chrome browserify home mean domContentLoaded
Benchmark value 803 exceeds gate value 800 for chrome browserify home mean firstPaint
Benchmark value 1187 exceeds gate value 1180 for chrome browserify home p95 firstPaint
Benchmark value 25 exceeds gate value 18 for chrome browserify home p95 backgroundConnect
Benchmark value 42 exceeds gate value 32 for chrome webpack home mean setupStore
Benchmark value 2456 exceeds gate value 2454 for chrome webpack home p95 uiStartup
Benchmark value 308 exceeds gate value 65 for chrome webpack home p95 setupStore
Benchmark value 10 exceeds gate value 9 for firefox browserify home mean setupStore
Benchmark value 1398 exceeds gate value 1380 for firefox webpack home mean load
Benchmark value 1398 exceeds gate value 1380 for firefox webpack home mean domContentLoaded
Benchmark value 43 exceeds gate value 38 for firefox webpack home mean firstReactRender
Benchmark value 1379 exceeds gate value 1360 for firefox webpack home mean loadScripts
Benchmark value 1957 exceeds gate value 1935 for firefox webpack home p95 uiStartup
Benchmark value 1709 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1709 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 1689 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 98ms | Sum of p95 exceeds: 438ms
Sum of all benchmark exceeds: 536ms

Base automatically changed from mms2419-rent-exemption-v2 to main June 5, 2025 17:40
@MetaMask MetaMask unlocked this conversation Jun 7, 2025
@micaelae micaelae closed this Jun 7, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
DO-NOT-MERGE Pull requests that should not be merged team-swaps-and-bridge For issues with Swaps or Bridging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants