Core concepts

Permissions

Granting bounded access to trading agents and applications.

A permission lets one agent address spend one asset from the vault, only by calling contracts on its allowlist, within a per-call limit and a rolling 24-hour limit, until an expiry date. A permission is not ownership: an agent can never withdraw to itself, change limits, grant permissions or rotate keys.

Granting and updating

grantPermission and updatePermission widen access, so both need a post-quantum signature. The vault rejects targets that are the vault itself, the permission's token or the agent.

Agent execution

agentExecute(id, target, amount, data) checks, in order: agents not paused, caller is the agent, permission active, not expired, target allowlisted, amount within the per-call limit, and the 24-hour window total within the daily limit. For ERC-20s it approves exactly amount to the target, makes the call, then resets the approval to zero.

Revoking

revokePermission(id) and setAgentsPaused(true) only reduce access, so they need the owner's transaction alone and take effect in the next block.

Important caveat

Limits bound how much value leaves per call and per day. They do not interpret calldata. If you allowlist a router whose swap function accepts an arbitrary recipient, the agent can send up to its limit to any address. Allowlist only contracts, or adapter contracts, that fix where funds go.