Oorka moves real liquidity based on scores anyone can influence by trading. The design assumes adversarial traders, adversarial curators and an adversarial settler.

Actors and what they want

Attacks and defences

Invariants that hold under random attack sequences

The invariant suite drives random trades, deposits, withdrawals, registrations, range changes, exits, time jumps and settlements, and checks after every step:

Solvent

Token balances always cover idle vault funds plus every bond.

Books match the pool

The vault’s booked liquidity equals its PoolManager position.

Bounded

The curator array never exceeds MAX_CURATORS + 1.

One seat holder

Exactly one live seat holder, never the benchmark.

Probes in place

Every active probe holds exactly 1e9 at its declared range.

No privileged roles in the hook

The hook has no owner, no admin, no pause and no upgrade path. Configuration is fixed in the constructor. The only one-time action is registerBenchmark, open to anyone, once. The Reactive contracts have an owner only for setKeeper (one-shot) and setPaused, which can stop automatic settlement but never change scores or move funds; settleEpoch() stays callable by anyone.