Skip to content

feat(ramps-controller): add hydrateNeobankStore onboarding stage lookup - #10116

Draft
roz0n wants to merge 2 commits into
mainfrom
feat/TRAM-3916-neobank-state-machine
Draft

feat(ramps-controller): add hydrateNeobankStore onboarding stage lookup#10116
roz0n wants to merge 2 commits into
mainfrom
feat/TRAM-3916-neobank-state-machine

Conversation

@roz0n

@roz0n roz0n commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Add RampsController.hydrateNeobankStore({ walletAddress }) plus persisted state.neobank and a NeobankOnboardingStage enum so Mobile can route Money Account onboarding after cold start or missed KYC events.
  • Refresh KycController status, then compose KYC terms/status with wallet registration and autoramp readiness. Lookup-only: no navigation and no auto wallet/autoramp submit (TRAM-3924).
  • Hosts must also delegate KycController:getState, KycController:getCustomerIdentity, and KycController:refreshKycStatus.

Test plan

  • yarn workspace @metamask/ramps-controller run test
  • Confirm hosts that enable this path delegate the new KYC actions
  • Confirm calling hydrate twice with the same signals returns the same stage
  • Confirm KYC refresh failure with no local signal returns LookupFailed rather than NoUser

Refs: TRAM-3916

Made with Cursor

roz0n and others added 2 commits September 4, 2026 11:14
Give Mobile a single idempotent Core action that refreshes KYC/wallet/autoramp signals and returns the Money Account onboarding stage without navigating or auto-submitting.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant