Product

Daily loss

The daily loss limit compares today's equity with equity at the day's open, 00:00 UTC. It uses two sources and keeps the more cautious one.

daily cap: E0 − 2 USDestimate (receipts + mark)last L1Read snapshot

Equity snapshots

An EquitySnapshotter contract on HyperEVM reads, for a batch of accounts, accountMarginSummary (precompile 0x80f, perp equity with unrealized PnL), the USDC spotBalance (0x801) and l1BlockNumber (0x809), and sends them to the EquityInbox on Elysium in one retryable ticket. The inbox only accepts that contract's aliased address for these snapshots.

At 00:00 UTC the keeper requests a snapshot of every live policy. The first snapshot requested after midnight becomes E0 for the day. Until it lands, the policy keeps the previous day's loss state, which is the tighter of the two.

Between snapshots

Every receipt comes into the policy. It keeps its own book per market (signed size, entry price) and books realized PnL and fees from the filled size, average price and fee. Unrealized PnL uses the mark price on Elysium. The estimate is E0 + realized − fees + Σ size × (mark − entry).

The rule

Loss used is the larger of E0 minus the estimate and E0 minus the last snapshot. Withdrawals count as loss; deposits re-base E0 only when the owner calls noteFlow. When loss used reaches the cap, the policy turns reduce-only until the next 00:00 UTC, and with flattenOnBreach anyone can call flatten() to send reduce-only IOC orders that close each market.

The cap stops new risk and can flatten. It cannot stop a price gap between checks or a liquidation, which is why the account you bind should hold only what the agent may use.