Mandate is a USDC smart account on Arc that an AI agent operates under limits the account contract enforces — not the agent's code. src/MandateFactory.sol deploys one bounded src/MandateAccount.sol per owner: it allowlists which function may be called on each target, checks arguments by bitmask (e.g. a recipient must be the account itself), re-checks net asset value after every call against per-call, per-venue and total loss caps plus a drawdown limit, and on any violation reverts, freezes the account, and writes a permanent on-chain Breach event. The agent sweeps idle USDC into a Morpho ERC-4626 vault and pulls it back before owner-signed bills (EIP-191, checked against owner()) fall due; positions are valued through pluggable src/valuers/ (ERC4626Valuer, BalanceValuer) behind an IValuer interface. The agent holds no key — it signs through a Circle Agent Wallet locked to the mandate, so the account contract and the wallet allowlist act as two independent gates. It ships 24 Foundry tests with fuzzing. MandateAccount and MandateFactory are deployed and source-verified on Arc mainnet (chain 5042).
| Contract | Address | Proof |
|---|---|---|
| MandateFactory | 0xb3f362850e04ad6e9147698cc1edbcb8891f307e | Sourcify ✓ · deploy tx ↗ · block 23603562 |
| ERC4626Valuer | 0xd4e895acf808bb215b6de8ec84f4b9f974fd0b61 | verified source ↗ · deploy tx ↗ · block 23603770 |
| MandateAccount | 0xEa08f2195ae9f29079a4cb6aFB05238949576d57 | Sourcify ✓ |
Algorithmic trader & Web3 builder. Onchain agents, DeFi security tooling, trading infra. Solidity · Python · Rust.
1 (Solo) — Aymen Gnaba
Bounded AI agent wallets on Arc: limits enforced on-chain