Method
How the limits hold, and what they cannot do.
Everything below describes the code as it is. Where the chain cannot answer, the site says “Not known” and never counts it as clear.
PrototypeMandate editor and checks in practice mode (sample data, same rules as the contract)
PrototypeToken check read from Robinhood Chain at one block (code, ERC-20, proxy slots, owner, selectors, Pons launch, Uniswap v3 pools)
PrototypeDeleqMandateGuard: mandates, check views, transfers and Uniswap v3 swaps (tested on a Robinhood Chain fork; not deployed yet)
PrototypeDashboard: executed actions from the guard's events, rejections from pre-checks, pause / unpause / revoke
PrototypeExample agent script (examples/agent.mjs): reads its mandate, checks, executes
ConceptSwaps through Pons launch curves (native ETH, no recipient the guard can force)
ConceptAdvanced risk checks and alerts paid with $DELEQ
The mandate
An owner creates a mandate for one agent address. It lists the ERC-20 tokens the agent may spend, each with a per-transaction cap and a daily cap; the recipients it may pay; the swap routers it may use; a start and an end time (at most 730 days); and optionally a number of actions per day. Daily caps and the action count use calendar UTC days (timestamp / 86,400): they reset at 00:00 UTC, so up to twice a cap can move across one midnight. That is a choice made for clarity, stated here and next to the caps.
Only the owner can change a mandate. Every change bumps its version and emits an event. Pause and revoke are read on every call, so they apply from the next transaction, in the same block if it comes later. Revoke is final. The agent cannot change any limit; it can only pause itself.
Reason bits
Before anything is signed, the proposal goes through checkTransfer or checkSwap, view functions of the guard that return one bit per broken rule. The site runs the same rules in TypeScript; a test reads the bit positions from the Solidity library, and the end-to-end test compares both answers on a chain.
| Bit | Name | Meaning |
|---|---|---|
| 0 | UNKNOWN_MANDATE | There is no mandate with this number. |
| 1 | REVOKED | The owner revoked this mandate. Nothing can run under it again. |
| 2 | PAUSED | The mandate is paused by the owner (or by the agent itself). |
| 3 | NOT_STARTED | The mandate's start time has not been reached. |
| 4 | EXPIRED | The mandate's end time has passed. |
| 5 | NOT_AGENT | Only the agent address named in the mandate can act under it. |
| 6 | ZERO_AMOUNT | The amount is zero. |
| 7 | TOKEN_NOT_ALLOWED | The mandate does not list this token for spending. |
| 8 | RECIPIENT_NOT_ALLOWED | The recipient is not on the mandate's allowlist. |
| 9 | OVER_PER_TX | The amount is above the per-transaction cap for this token. |
| 10 | OVER_DAILY | Today's spend plus this amount would pass the daily cap (UTC day). |
| 11 | DAILY_COUNT | The mandate's number of actions per UTC day is used up. |
| 12 | ROUTER_NOT_ALLOWED | The swap router is not on the mandate's allowlist. |
| 13 | TOKEN_OUT_NOT_ALLOWED | The token the swap would buy is not listed in the mandate. |
| 14 | LOW_ALLOWANCE | The owner's ERC-20 allowance to the guard is below the amount. |
| 15 | LOW_BALANCE | The owner's wallet holds less than the amount. |
| 16 | NO_MIN_OUT | A swap needs a minimum output above zero. |
| 17 | SAME_TOKEN | The swap sells and buys the same token. |
| 18 | TOKEN_UNREADABLE | The token did not answer balanceOf / allowance like an ERC-20. |
The contract
DeleqMandateGuard (with the internal library DeleqLimitMath) is not deployed on Robinhood Chain yet. The owner deploys it from a local-only tool; this page will then link it. It is non-custodial: a transfer is transferFrom(owner → recipient) under the owner's own allowance to the guard. A swap pulls the amount from the owner, approves exactly that amount to an allowlisted router, calls Uniswap v3 exactInputSingle with the recipient forced to the owner and a non-zero minimum output, resets the approval to zero, measures what the owner received, and reverts if anything is left in the guard. No admin, no fee, no upgrade, no owner over other people's mandates.
- Native ETH is not supported in this version: wrap it to WETH first.
- Fee-on-transfer tokens are refused: the recipient must receive exactly the amount sent, or the whole call reverts.
- Tokens that return nothing from transfer and approve are handled; a token that returns false is refused.
- Reentrancy is blocked by a lock and by recording the spend before any token call.
- The only router offered by the site is Uniswap v3 SwapRouter02 at 0xcaf681a66d020601342297493863e78c959e5cb2 (its
factory()andWETH9()answer the v3 factory and WETH). It was tested with the guard on a fork of Robinhood Chain: swapping WETH for USDG paid the owner and left nothing in the guard. - A router the owner allowlists can take at most the amount of one approved swap; the minimum output is the agent's choice, so a careless agent can still get a bad price inside its caps.
Tests: unit, fuzz and invariant tests with hostile tokens (no-return, false-return, fee-on-transfer, reentrant) and lying routers, plus fork tests against Robinhood Chain. A written self-review is in the repository. The contract has not had an outside security review: use small amounts first.
The token check
Next to each proposal the site reads the token at the head block: contract code; name, symbol, decimals, totalSupply; the ERC-1967 implementation, admin and beacon slots and minimal proxies; owner(); a scan of the runtime code (and the implementation behind a plain proxy) for the selectors of 8 kinds of power (owner / admin role, mint new supply, pause transfers, block addresses, burn from any holder, change transfer fees / tax, change max tx / wallet limits, upgrade the code); whether it launched through the Pons factory 0x7ed598bcef8bd9edd8c97a195c6d13f40801ec7e; and Uniswap v3 pools against WETH or USDG at the four fee tiers with their balances. Each row shows the method and the address it came from.
The live ticker on the home page reads the head block, the gas price and the Chainlink ETH / USD feed 0x78f3556b67e17df817d51ef5a990cdaf09e8d3a9 with its update time.
Limits
- A limit bounds how much an agent can lose per transaction and per day; it does not make the agent's decisions good.
- A clean token check means only that the check found nothing it looks for. A token can still lose its value; an issuer can still block or pause.
- Rejections are recorded from pre-checks in your browser; a transaction someone sends anyway and that reverts leaves no event.
- Executed actions are read from the guard's logs. If the RPC cannot read part of the range, the dashboard says the list may be incomplete.
Questions
Does Deleq hold my funds?
No. Your tokens stay in your wallet. You approve the guard contract for an ERC-20 amount you choose, and each action moves tokens straight from your wallet to an allowlisted recipient (or, for a swap, through the router and back to you) inside one transaction. The guard never keeps a balance between transactions, and it has no admin who could move anything.
What exactly can the agent do?
Only two things, and only within the mandate: pay a listed token to a listed recipient, or swap a listed token for another listed token through a listed router with the output sent to you. Each token has its own per-transaction cap and daily cap (UTC day), and you can also cap the number of actions per day. The agent cannot change any limit; it can only pause itself.
How fast does pause or revoke work?
From the very next transaction. The guard reads the mandate's state on every call, so an action in a later block (or later in the same block) is refused. Pause can be undone by the owner; revoke cannot.
What does the token check tell me?
What Robinhood Chain says about the token at one block: whether it has code and answers as an ERC-20, whether it is an upgradeable proxy, who owner() is, which mint, pause, blocklist, burn, fee or upgrade functions appear in its code, whether it launched through Pons, and which Uniswap v3 pools trade it against WETH or USDG. Every row shows its source and the block. A clean check does not mean a token is safe, and anything we could not read says Not known.
Why does a rejection not show up on the explorer?
A transaction that reverts leaves no event. That is why Deleq runs the guard's own check view before anything is signed, shows the reason bits, and keeps rejected proposals in your browser's log. Executed actions are events on chain and show up in the dashboard with their transaction links.
Can I use it with native ETH or any token?
Not native ETH in this version: wrap it to WETH first. Fee-on-transfer tokens are refused (the guard checks that the recipient got exactly the amount sent). Tokens that return nothing on transfer, like some older stablecoins, are handled. Robinhood stock tokens can block addresses; if they do, the transfer reverts.
Do I need the $DELEQ token?
No. Mandates, checks, the guard and the dashboard work without it and the token is not live yet. Its planned use is advanced risk checks and alerts; that part is a concept and is labelled as one.
Is Deleq connected to Robinhood?
No. Deleq is an independent prototype that uses public contracts on Robinhood Chain. Nothing here is investment advice, and a limit is not a promise that an agent's trades will be good ones.