← all projects

Mandate

✨ standalone Arc mainnet
@Makabeez·Makabeez·6 followers·added 2026-10-11·updated 2026-10-25
0
stars
4.4k
lines
53
files
1
forks
6
followers
languages
JavaScript 50%Solidity 21%HTML 17%Rust 8%Shell 4%

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).

✨ Standalone repo — reusable primitives extracted into a dedicated, forkable repository.
deployed on Arc mainnet · chain 5042
Evidence (3 verified on-chain): Sourcify exact-match verification · forge broadcast receipt (status 0x1)
events
tags
circle components
builder bio

Algorithmic trader & Web3 builder. Onchain agents, DeFi security tooling, trading infra. Solidity · Python · Rust.

team · solo

1 (Solo) — Aymen Gnaba

on xx/geiserjoe2
repo description

Bounded AI agent wallets on Arc: limits enforced on-chain

last pushed 2026-10-23