Security model
Driftless is built so that you never hand over custody. This page lists exactly what you grant, what each party can and cannot do, and how to take it back.
What you grant
- Position management (NFT approval)
- Who gets it
- PositionManager contract
- Lets them
- Act on your Uniswap position NFTs during a Driftless transaction
- Revoke
- Permissions card → Revoke
- Keeper operator
- Who gets it
- Driftless keeper
- Lets them
- Rebalance your Auto positions when out of range
- Revoke
- Permissions card → Revoke
- Token approvals
- Who gets it
- PositionManager contract
- Lets them
- Pull the exact amounts when you open a position
- Revoke
- Approvals are for exact amounts
- Hyperliquid agent (optional)
- Who gets it
- Your dedicated driftless agent
- Lets them
- Place hedge orders on your Hyperliquid account
- Revoke
- Hyperliquid → API page
What the keeper cannot do
- Act on Manual positions, or on positions owned by anyone who hasn't delegated to it.
- Rebalance a position that is in range, or move it to a range that excludes the current price.
- Change your position's mode or your hedge settings. Only you can.
- Send your tokens anywhere but back into your position or your wallet.
- Withdraw from your Hyperliquid account.
On-chain safeguards
- Every open, rebalance and close reverts if the pool price is more than ~1% from its 30-minute TWAP, which defends against price manipulation and sandwich attacks.
- Swaps have minimum outputs and deadlines; the contract holds no balance between transactions.
- Each action checks that the NFT belongs to the user being acted for.
- All state changes emit events; hedges carry receipts with Hyperliquid order ids.
Risks that remain
Smart contracts can have bugs, Uniswap positions can lose value relative to holding (impermanent loss), and perp hedges carry funding costs and liquidation risk on Hyperliquid. Only provide liquidity you can afford to put at risk.