feat: Add Perps Withdraw button into Developer Options, show new Perps Withdraw UI#27792
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. |
e7e25c1 to
f86f1b9
Compare
f86f1b9 to
682611b
Compare
…s Withdraw UI Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
682611b to
6468d64
Compare
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.
Signed-off-by: dan437 <80175477+dan437@users.noreply.github.com>
|
✅ E2E Fixture Validation — Schema is up to date |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
|




Description
Adds the UI scaffolding for the Perps Withdraw confirmation flow. When triggered from Developer Options, the "Perps Withdraw" button navigates to a full-screen
CustomAmountInfoconfirmation page that displays the user's available Perps balance and uses the post-quote "Receive as" token picker pattern (same as Predict Withdraw).This is the UI-only foundation — the end-to-end withdrawal execution (HyperLiquid signatures, Relay integration) will follow in a subsequent PR.
Changes:
useAddPerpsTransactionBatchhook in Developer OptionsPerpsWithdrawInfocomponent that wiresCustomAmountInfowith Perps balance displayPerpsWithdrawBalancecomponent showing available Perps balance from live account dataperpsWithdrawtoFULL_SCREEN_CONFIRMATIONSandPOST_QUOTE_TRANSACTION_TYPESperpsWithdrawrouting ininfo-root.tsxuseButtonLabelto show "Withdraw" forperpsWithdrawtransactionsChangelog
CHANGELOG entry: Add Perps Withdraw button into Developer Options, show new Perps Withdraw UI
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1072
Manual testing steps
Screenshots/Recordings
Before
N/A
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Adds a new
perpsWithdrawtransaction type path through the confirmations UI (routing, labels, constants) and a developer-only trigger that creates batched transactions; changes are mostly UI scaffolding but touch confirmation flow selection logic and transaction batching.Overview
Introduces a Perps Withdraw confirmation flow scaffold: a new Developer Options button triggers a
perpsWithdrawtransaction batch on Arbitrum USDC and navigates into the Perps confirmation stack.Adds a new
PerpsWithdrawInfofull-screenCustomAmountInfoview that registers Arbitrum USDC, uses the post-quote Receive as pattern, and shows an available Perps balance via the newPerpsWithdrawBalancecomponent.Updates confirmations plumbing to recognize
TransactionType.perpsWithdraw(info routing, full-screen + post-quote type lists, withdraw button labeling, locales) and adds targeted unit tests/snapshots. Also bumps@metamask/bridge-status-controllerand@metamask/transaction-controllerdependency versions.Written by Cursor Bugbot for commit 6d73fcc. This will update automatically on new commits. Configure here.