Delegated accounts start with no permissions and must be explicitly granted access. Permissions are granular, allowing vault owners to build precise guardrails by adding specific capabilities to each delegate. This approach enhances security by ensuring that delegates can only perform intended actions within the defined boundaries, reducing the risk of unauthorized operations and mistakes.

Permissions

The table belows lists the available permissions that can be granted to a delegated account.

Permission EnumDescription
DriftInitializeInitialize and add a Drift user
DriftUpdateUserUpdate a drift user
DriftDeleteUserDelete a drift user
DriftDepositDeposit assets to Drift
DriftWithdrawWithdraw assets from Drift
DriftPlaceOrdersPlace orders
DriftCancelOrdersCancel orders
DriftPerpMarketTrade on perp markets
DriftSpotMarketTrade on spot markets
StakeStake to LSTs
UnstakeUnstake from LSTs
LiquidUnstakeLiquid unstake from LSTs
JupiterSwapAnySwap any assets on Jupiter (high-risk)
JupiterSwapLstSwap LSTs on Jupiter
JupiterSwapAllowlistedSwap allowlisted assets on Jupiter (recommended)
WSolWrapWrap SOL to wSOL
WSolUnwrapUnwrap wSOL to SOL
StakeJupStake JUP
UnstakeJupUnstake JUP
VoteOnProposalVote on Jupiter DAO proposals