Repository navigation
CurrencyController can be configured to always fetch usd rate - #292
Merged
Merged
Conversation
Gudahtt
reviewed
Oct 27, 2020
Gudahtt
reviewed
Oct 27, 2020
Gudahtt
reviewed
Oct 27, 2020
…tion to currentCurrency rate
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Contributor
Author
|
@Gudahtt All of your suggested commits were applied (thanks!) and I have rebased this onto develop |
Merged
Contributor
Author
Contributor
Author
|
@Gudahtt The remaining test failure here also exists on develop and is unrelated to these changes. |
Mrtenz
pushed a commit
that referenced
this pull request
Oct 16, 2025
Naz-Ovh
pushed a commit
to 0x-fork/metamask-core
that referenced
this pull request
Sep 13, 2026
…etaMask#292) ## Summary - Adds top-level `permissions: contents: read` to `publish-release.yml`, restricting default token permissions for all jobs in the workflow. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > CI-only least-privilege change; jobs that need write or OIDC permissions still declare them explicitly. > > **Overview** > Adds workflow-level **`permissions: contents: read`** to `.github/workflows/publish-release.yml` so the default `GITHUB_TOKEN` scope is read-only for every job in this reusable release workflow. > > Jobs that still need broader access keep their existing **job-level** overrides (for example `contents: write` on release/docs jobs and `id-token: write` on `publish-npm`), so release behavior should stay the same while tightening the baseline token permissions. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 6b92d0c60bd58f1e47fd59644506cf0902b96a6c. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
For analytics purposes in metamask-extension, we have a need of always knowing the the ETH to USD rate, even when the users selected currency is not USD. This PR updates the CurrencyController so that it can be passed a
includeUSDRateconfig property that ensures that the exchange rate forUSDis always fetched, in addition to whatever thecurrentCurrencyis.