Source:Documentation Index
Fetch the complete documentation index at: https://docs.signalium.site/llms.txt
Use this file to discover all available pages before exploring further.
packages/contracts/src/PredictionMarket.sol
Each market is an EIP-1167 minimal-proxy clone of the implementation at 0xf348…BBe59.
Constants
State machine
bet(side)
Forwards the post-fee stake to the configuredtreasury (or self-custodies if treasury == 0x0). Updates yesPool / noPool notional accounting and the user’s Position.
resolve(outcome, attestationHash)
Callable only by the configuredresolver (the AIResolver). Sets the outcome, recalls all liquid funds from the Treasury, and snapshots the yield split — see Yield economics.
claim()
Pulls the user’s pro-rata share ofnotional + bettorsYieldShare from the market balance. Tracked via totalBettorsPaid so withdrawHouse can compute the protocol’s slice without overdrawing.
withdrawHouse()
Permissionless. ComputeshouseAvailable = balance − (totalBettorsCommit − totalBettorsPaid) and sends to IFactoryFeeRecipient(factory).feeRecipient(). Late inflows from delayed Gimo claims roll into this bucket.

