feat: support bulk balance fetch on more chains#23436
Merged
HowardBraham merged 2 commits intodevelopfrom Mar 26, 2024
Merged
Conversation
Contributor
|
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #23436 +/- ##
========================================
Coverage 68.79% 68.79%
========================================
Files 1125 1125
Lines 43572 43572
Branches 11655 11655
========================================
Hits 29972 29972
Misses 13600 13600 ☔ View full report in Codecov by Sentry. |
Collaborator
Builds ready [f25d368]
Page Load Metrics (960 ± 418 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
sahar-fehri
approved these changes
Mar 13, 2024
salimtb
approved these changes
Mar 13, 2024
HowardBraham
approved these changes
Mar 26, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On certain chains MetaMask uses https://github.com/wbobeirne/eth-balance-checker to optimize balance fetches into a single RPC call rather than 1 per address.
This PR adds support for Linea, Aurora, Base, and ZkSync. These chains already use the contract for bulk ERC20 lookups here. This change will use it for native balance lookups tool.
I tested all 5 of the new chains.
Related issues
Manual testing steps
Screenshots/Recordings
No visible differences
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist