Skip to main content
Oracle is the only contract authorised to call ConditionalTokens.reportPayouts for PredictStreet binary markets. Neg-risk markets settle through NegRiskOracle, which reports through NegRiskAdapter. Both oracles are deployed behind ERC1967 UUPS upgradeable proxies (OracleProxy and NegRiskOracleProxy) and emit monotonically increasing sequence counters (seq) on every state event.

Key constants (production defaults)

Write surface

Every binary call except proposeOutcome and voidUnproposedMarket is keyed by the market’s conditionId, not its questionId. On NegRiskOracle, calls are keyed by negRiskMarketId, the onlyResolver calls below are onlyOwner, “or resolver” below means “or owner”, the consent signature is the owner’s, and there is no bound challenge.

Read surface (anyone)

Events

All events embed a monotonic uint64 seq counter:

Challenging from a partner integration

The oracle pulls proposal.bondSnapshot USDC via transferFrom. If your challenge is upheld or the market is voided, the bond (plus any reward) is credited to pendingBondPayouts(yourAddress). Claim it to any address via oracle.withdrawBondPayout(to).

Source

0x320346B72dA29a680C0314440D5A93255eb05414 on Blockscout.