Start

Overview

Agentisium puts a contract between an AI agent and a HyperCore trading account. The agent can only propose orders. Each proposal is checked against the owner's limits in a Policy contract on Elysium, and the contract answers Accepted or Refused. Accepted proposals leave for HyperCore as an order; refused ones stop there.

Agentsigns a proposal
Policychecks the licence
Verdict可 or 否, on chain
Relayerplaces the IOC
HyperCorefills, receipt back

Proposals

A proposal is an EIP-712 message signed by an agent key: market, side, size, limit price, the leverage the agent declares, a nonce, the time it was issued and a deadline. The agent key is an Elysium key scoped to one policy with an expiry. It cannot sign anything that moves funds.

Policies

One Policy per HyperCore account, created from the PolicyFactory as a minimal clone. It holds the limits, a book of positions built from receipts, the day's equity at 00:00 UTC and the verdict history.

Verdicts

propose never reverts on a refusal. Every proposal gets an id, a reason code and an event, so refusals are as visible as fills. Accepted proposals carry the intent id, and the HyperCore receipt (status, filled size, average price, fee, order id) is booked into the same verdict when it comes back.

0ACCEPTEDAccepted
1BAD_SIGNATUREUnknown agent key
2KEY_EXPIREDAgent key expired
3STALEStale or replayed proposal
4PAUSEDKill switch on
5MARKET_NOT_ALLOWEDMarket not on the licence
6REDUCE_ONLYReduce-only
7ORDER_SIZEOrder above the size limit
8LEVERAGELeverage above the limit
9OPEN_NOTIONALOpen notional above the limit
10DAILY_LOSSDaily loss limit reached
11COOLDOWNCooldown after a losing close
12RATE_LIMITOrders per hour reached
13NO_EQUITYNo equity snapshot
14PRICE_BANDLimit price too far from mark
15NO_MARKNo fresh mark price
16MANDATEOutside the operator's Mandate
17NOT_ROUTEDAccepted, not routed

What runs today

The policy core is deployed and verified on Elysium mainnet: PolicyFactory 0xd98fC54553881d0d430EA422C5747fC90B97f8Ee, the Policy implementation 0xfD0E10371fe17737512776406e33d929EdeBbDDe, EquityInbox 0xeABFa58AF82F222A1f265Bc8a0C7E90E27532AD2 and the Open Desk policy 0x729c246974B19a89a09B0457b7e1C733b4Cd1Dc4. The first desk proposal, "go 20x long BTC", was refused on chain for LEVERAGE.

Execution goes through a bonded execution relayer that turns intents into HyperCore orders and posts one final receipt. The Open Desk starts placing real orders once its HyperCore account and the relayer are funded; until then, accepted desk proposals are recorded as accepted and not routed (code 17). The sandbox on the home page prices every fill on the live HyperCore book and checks each verdict against the deployed contract.

Contracts