Trust Model
Matching happens off chain for speed, while custody, fills, and resolution are enforced cryptographically on a single immutable contract.
What the operator can — and cannot — do
| Area | Operator can | Operator cannot |
|---|---|---|
| Order matching | Delay or drop an off-chain order before it matches. | Invent or alter a fill — settleFill requires two valid user-signed EIP-712 orders (or approved session keys), including inventory closes. |
| Funds & shares | Submit matched fills to the contract. | Move your USDC or shares without your signature. Deposit, withdraw, split, merge, and redeem are your own on-chain transactions. |
| Market terms | List new markets on the grid. | Change a market’s rules underneath you — every order signs the asset, kind, direction, barrier(s), open time, and expiry, and the contract rejects mismatches. |
| Fees & expiry | Compute taker fees within signed bounds. | Charge more than you signed — gas fee is capped per order, trading fee is capped on chain at 0.04 × size × p × (1 − p), and no order can fill more than 1 hour past expiry. |
| Resolution | Propose a new PriceOracle subject to a 7-day public timelock. |
Pick a winner or block settlement — settle is write-once, permissionless, and reads Chainlink directly on chain. |
Verifiability & immutability
- Auditable match tape: The matching engine writes an append-only tape. Replaying that tape deterministically rebuilds every fill and the order book hash.
- Permissionless void fallback: If an Above or Between market remains unsettled 7 days after expiry, anyone can call
voidMarketso all Yes and No shares redeem for $0.50. See Settlement. - Non-upgradeable contract: The Exchange contract has no proxy or admin upgrade key. Any protocol change requires deploying a new contract at a new address; existing balances stay safely on the original address until you withdraw them.
Related reading
See Orders for EIP-712 signing, 1-Click Trading for scoped browser session keys, and Balances for self-custodial deposits and withdrawals.