-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: add rates controller #25314
feat: add rates controller #25314
Conversation
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #25314 +/- ##
===========================================
+ Coverage 65.38% 65.40% +0.01%
===========================================
Files 1382 1382
Lines 54767 54801 +34
Branches 14368 14378 +10
===========================================
+ Hits 35809 35839 +30
- Misses 18958 18962 +4 ☔ View full report in Codecov by Sentry. |
Builds ready [d25cda2]
Page Load Metrics (168 ± 228 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
NOTE: We do not start the controller polling on this PR, we talked about it together and we'll get this setup with incoming PR (like BalancesController
one)
Builds ready [bc9cc01]
Page Load Metrics (182 ± 249 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. I left two suggestions to clarify the test descriptions.
Builds ready [99ee43c]
Page Load Metrics (162 ± 211 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [a7e9c4c]
Page Load Metrics (52 ± 6 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with the updates to the test descriptions!
Builds ready [0ccb56c]
Page Load Metrics (53 ± 4 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [4c2aa8e]
Page Load Metrics (49 ± 4 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR adds the
RatesController
to query for multichain price conversion rates.Related issues
Fixes https://github.com/MetaMask/accounts-planning/issues/483
Manual testing steps
This PR does not have any UI related changes, it adds new state instead by
state.metamask.rates
is now populated with btc conversion rates.Screenshots/Recordings
Not applicable
Pre-merge author checklist
Pre-merge reviewer checklist