Parent PRD
#75
What to build
Add a "Transfer" action to each sub-account row in the management view. Clicking it opens a transfer modal scoped to that sub-account. The modal contains a direction toggle (Master → Sub-Account / Sub-Account → Master), an amount input (decimal USD string, e.g. "50.00"), and a display of the available perp USDC balance for both the source and destination accounts. Submitting calls exchange.subAccountTransfer({ subAccountUser, isDeposit, usd }) where usd is the dollar amount × 1,000,000 as an integer.
Note: isDeposit: true = master is sending to sub-account; isDeposit: false = sub-account is sending back to master.
Acceptance criteria
Blocked by
User stories addressed
- User story 5 (transfer USDC from master to sub)
- User story 6 (transfer USDC from sub to master)
- User story 9 (modal shows available balance for both accounts)
- User story 22 (loading/success/error feedback on transfer)
Parent PRD
#75
What to build
Add a "Transfer" action to each sub-account row in the management view. Clicking it opens a transfer modal scoped to that sub-account. The modal contains a direction toggle (Master → Sub-Account / Sub-Account → Master), an amount input (decimal USD string, e.g. "50.00"), and a display of the available perp USDC balance for both the source and destination accounts. Submitting calls
exchange.subAccountTransfer({ subAccountUser, isDeposit, usd })whereusdis the dollar amount × 1,000,000 as an integer.Note:
isDeposit: true= master is sending to sub-account;isDeposit: false= sub-account is sending back to master.Acceptance criteria
Blocked by
User stories addressed