feat: MUSD-681 support remote vault config feature flag in money account balance service#29932
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. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6854883. Configure here.
…ature-flag-in-money-account-balance-service
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag Selection:
Excluded tags reasoning:
Performance Test Selection: |
|




Description
@metamask/money-account-balance-serviceto TBDRemoteFeatureFlagControllerChangelog
CHANGELOG entry: bumped
@metamask/money-account-balance-serviceto TBD; removed the MoneyAccountBalanceService's constructor-based config since its fetched internally now via remote feature flagRelated issues
Fixes: MUSD-681: Support remote vault config feature flag in Money Balance Service
Manual testing steps
Screenshots/Recordings
Before
N/A - No visual change
After
N/A - No visual change
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Bumps to a new major version of
@metamask/money-account-balance-serviceand changes Engine initialization/messaging to support remote feature-flag-driven configuration, which could affect balance fetching behavior if the flag plumbing is wrong.Overview
Updates Money balance integration to rely on the upgraded
@metamask/money-account-balance-service@^1.0.0, which now fetches vault configuration internally via remote feature flags.Engine wiring is adjusted accordingly:
moneyAccountBalanceServiceInitno longer passes hardcoded vault config, explicitly callscontroller.init(), and the service messenger now delegatesRemoteFeatureFlagController:getStateplus listens forRemoteFeatureFlagController:stateChange.Front-end balance calculations/tests are updated for the service response shape change by reading
musdEquivalentBalanceQuery.data.balanceOfInAssets(replacing the previousmusdEquivalentValue-based fields).Reviewed by Cursor Bugbot for commit 08fe865. Bugbot is set up for automated code reviews on this repo. Configure here.