Skip to content
DepthoryBeta

Mandate

  1. 1Set the rulesHow much an AI agent may trade from your money, how fast, and at what price. This page.
  2. 2Check each tradeBefore the agent trades, the Guard runs the trade against these rules on the chain.Open →
  3. 3Cheating costs itA broken rule is refused, and the agent's bond is paid to you. Try it in Break it.Open →
[G-20]Your agent's rulesDraft

Start from a ready set, then change any number.

USDG

The most one trade may spend.

USDG

The most it may spend in a day.

%

How much worse than the quote a fill may be. Demo rule: 1%.

USDG

The agent's own deposit. You are paid from it when it breaks a rule.

min

The wait between two trades.

%

The agent stops after losing this share.

Trading window

Stock tokens drift on weekends, when the share does not trade.

Show the rules as mandate.json
{
  "draft": true,
  "assets": [
    "USDG",
    "WETH",
    "ETH"
  ],
  "perTradeCap": {
    "USDG": 1000
  },
  "dailyBudget": {
    "USDG": 2000
  },
  "maxSlippagePct": 1,
  "maxPoolFeePct": 1,
  "unknownHooks": false,
  "weekdaysOnly": true,
  "cooldownMinutes": 10,
  "drawdownStopPct": 10,
  "bond": {
    "USDG": 500
  },
  "slashPerViolationPct": 10,
  "freezeAfterViolations": 3
}
A draft. Nothing here is a live mandate and nothing on this page holds funds. The mandate factory itself is live: see the registry and Transparency.
[G-22]What they allow6 of 6 sound

Trades a day

2

Bond covers

12.5 days

Worst day

40 USDG

Worst 22 days

880 USDG

Worst month
Bond
  • ✓Per-trade cap under the daily budget
  • ✓Slippage at most the demo's rule
  • ✓Bond covers a week of worst-case leakage
  • ✓A cooldown between trades
  • ✓A drawdown stop
  • ✓Weekdays only for stock tokens
[G-24]If the agent cheatsFrozen at strike 3
  1. Strike 1Refused, bond slashed+50
  2. Strike 2Refused, bond slashed+45
  3. Strike 3Frozen, rest of the bond to you+405
Test a real trade in the Guard →
[G-25]Try a trade against these rulesExecuted

The agent wants to spend (USDG)

Already spent today

Price from the mark

Minutes since its last trade

Agent → buy with 250 USDG

  1. ✓Asset on the listUSDG is listed
  2. ✓Size250 against a cap of 1,000
  3. ✓Daily budget250 of 2,000 today
  4. ✓Price from mark0.5% against 1%
  5. ✓Windowa weekday
  6. ✓Cooldown60 min since the last trade, 10 needed
  7. ✓Pool approved by the ownerapproved

Every rule passes: the trade is made.

Run this trade against the real contract in the Guard →
Checked here in the contract's own order. The Guard runs the same trade against the real contract inside a simulation.
[G-21]Mandate registryAwaiting deployment
Depthory mandates
AgentMandateBondStrikesVolumeState
No Depthory mandate factory or demonstration mandate has been configured.

Historical activity from another project is not included. Build a draft strategy or run a simulation while deployment is pending.