Addresses
Production contract addresses + deployment block numbers.
CTFExchange
Signed-order matching with quadratic taker fee.
Vaults
Per-user custody, dual-sig operations, emergency exit.
Conditional Tokens
ERC-1155 position tokens with monotonic sequence tracking.
Neg-Risk Adapter
Multi-outcome market grouping and atomic conversions.
Oracle
Outcome proposals, bonded challenges, and finalisation.
System architecture
The protocol is partitioned into specialized contracts:Key invariants
- Vault custody: User funds sit exclusively in their dedicated
Vaultcontract. The platform cannot unilaterally withdraw user collateral or positions without user authorization. - Dual-signature authorization: Withdrawals, splits, merges, and neg-risk conversions require both the user’s signature and a platform backend co-signature under EIP-712 typed data.
- Emergency exit timelock: Users can unilaterally drain their vault without backend co-signatures after initiating a 7-day on-chain timelock (
initiateEmergencyWithdraw). - Digest-based replay protection: Every signed vault operation uses a unique digest and free-form salt, marked consumed on-chain.
- Monotonic event ordering (
seq): All settlement and exchange contracts embed a contiguous, globalseqcounter on every state event, allowing indexers to detect missing blocks or reorg gaps instantly. - Bounded admin privileges: Admins cannot seize user balances. Admin powers are limited to pausing, registering tokens, and updating configurable parameters within strict on-chain timelocks.