Parent PRD
#75
What to build
When a sub-account is active, every exchange mutation (place order, cancel order, update leverage, switch margin mode, etc.) must pass the sub-account address as vaultAddress so Hyperliquid routes execution to the correct account. Without this, orders placed while a sub-account is selected would incorrectly land on the master account.
In addition, add a persistent banner at the top of the trading terminal when a sub-account is active: "Trading on behalf of sub-account: [name]" with a button to switch back to master. Disable the deposit and external withdrawal buttons (with an explanatory tooltip) since Hyperliquid only supports L1 deposits to the master account.
Acceptance criteria
Blocked by
User stories addressed
- User story 12 (persistent banner when sub-account active)
- User story 13 (trading actions execute in the active account's context)
- User story 14 (deposit and withdrawal disabled for sub-accounts)
Parent PRD
#75
What to build
When a sub-account is active, every exchange mutation (place order, cancel order, update leverage, switch margin mode, etc.) must pass the sub-account address as
vaultAddressso Hyperliquid routes execution to the correct account. Without this, orders placed while a sub-account is selected would incorrectly land on the master account.In addition, add a persistent banner at the top of the trading terminal when a sub-account is active: "Trading on behalf of sub-account: [name]" with a button to switch back to master. Disable the deposit and external withdrawal buttons (with an explanatory tooltip) since Hyperliquid only supports L1 deposits to the master account.
Acceptance criteria
vaultAddress: <subAccountAddress>in the requestvaultAddressvaultAddressBlocked by
User stories addressed