Skip to content

feat(ramps-controller): add autoramp, NeoBank client, and Money Account wallet registration - #9930

Open
jiexi wants to merge 3 commits into
mainfrom
feat/ramps-controller-autoramp-neobank
Open

feat(ramps-controller): add autoramp, NeoBank client, and Money Account wallet registration#9930
jiexi wants to merge 3 commits into
mainfrom
feat/ramps-controller-autoramp-neobank

Conversation

@jiexi

@jiexi jiexi commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Add NeoBank proxy client methods for autoramp create/refresh/quotes/Pix and customer lookup, plus Money Account self-hosted wallet registration.
  • Persist and sync autoramp accounts on RampsController (CRUD, push apply, user-storage backup) and resolve vendor customer_id from Profile Sync (getSessionProfilegetCustomerByExternalId).
  • Independent of the multi-vendor KYC work in feat(kyc-controller): generalize UKYC vendor APIs and add status polling #9908; hosts do not need to delegate KycController:getCustomerIdentity yet.

Test plan

  • yarn workspace @metamask/ramps-controller run test
  • Host that enables autoramp creation delegates AuthenticationController:getSessionProfile and KeyringController:signPersonalMessage (see RAMPS_CONTROLLER_REQUIRED_CONTROLLER_ACTIONS)
  • Creating an autoramp overwrites any caller customer_id with the Profile Sync → neobank-proxy mapping
  • registerMoneyAccountWallet({ address }) looks up the customer, signs the ownership message, and reconciles 409 / transient failures
  • Autoramp user-storage sync no-ops when Backup & Sync gates fail

Made with Cursor

Comment thread packages/ramps-controller/src/autorampAccount.ts
Comment thread packages/ramps-controller/src/autorampAccount.ts
@jiexi
jiexi changed the base branch from main to feat/kyc-controller-generic-ukyc August 21, 2026 17:24
amitabh94
amitabh94 previously approved these changes Aug 24, 2026
Comment thread packages/ramps-controller/src/autorampAccount.ts
machine = transitionWalletRegistration(machine, {
type: 'LOOKUP_FAILED',
});
throw error;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we able to return a result here so it can be acted on rather than throwing an error? Maybe a failure result type we can use on the client?

So client side, might look something like:

const result = await rampsController.registerMoneyAccountWallet({ address });
switch (result.type) {
  case 'registered':
  case 'alreadyRegistered':
    // continue onboarding
    break;
  case 'registeredDisabled':
    // show “wallet disabled” UX
    break;
  case 'failedRetryable':
    // show Retry
    break;
  case 'failedTerminal':
    // show a hard error, don’t retry
    break;
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding a lookupUnavailable type for now 220c325

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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 39f5d3c. Configure here.

Comment thread packages/ramps-controller/src/RampsController.ts
Base automatically changed from feat/kyc-controller-generic-ukyc to main August 25, 2026 18:23
@jiexi
jiexi requested a review from a team as a code owner August 25, 2026 18:23
…nt wallet registration

Land the neobank-proxy autoramp and wallet-registration surfaces on RampsController with Profile Sync customer-id resolution, so money-movement can ship independently of the multi-vendor KYC PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jiexi
jiexi force-pushed the feat/ramps-controller-autoramp-neobank branch from 39f5d3c to 0301430 Compare August 25, 2026 18:24
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.

3 participants