Skip to main content
PredictStreet settles all trades and market resolutions on-chain via a modular suite of audited smart contracts.

Addresses

Per-environment contract addresses + Blockscout links.

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

  1. Vault custody: User funds sit exclusively in their dedicated Vault contract. The platform cannot unilaterally withdraw user collateral or positions without user authorization.
  2. 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.
  3. Emergency exit timelock: Users can unilaterally drain their vault without backend co-signatures after initiating a 7-day on-chain timelock (initiateEmergencyWithdraw).
  4. Digest-based replay protection: Every signed vault operation uses a unique digest and free-form salt, marked consumed on-chain.
  5. Monotonic event ordering (seq): All settlement and exchange contracts embed a contiguous, global seq counter on every state event, allowing indexers to detect missing blocks or reorg gaps instantly.
  6. 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.

Blockscout

Testnet contracts can be inspected on the ADI testnet explorer: blockscout.ab.testnet.adifoundation.ai. Contract addresses and verified interfaces are detailed on the Addresses page.

Audits

The audit report of these contracts, the bug bounty program and the audits of ADI Chain, the network they run on, are on the Audits page.