Skip to main content

Live mainnet (chainId 16661)

Full deploy log lives in packages/contracts/deployments/16661.json.

Per-market provisioning

Every createMarket(...) call deploys, in one transaction:
  1. A PredictionMarket clone (EIP-1167 minimal proxy → ~50k gas).
  2. A fresh Treasury whose principal is the new market.
  3. A GimoAdapter wired to that Treasury (max-approves st0G to StakePool in its constructor).
The factory enables the adapter on the Treasury, then transfers Treasury ownership to the factory owner. The market’s creator is set as the Treasury operator so they can rebalance their own market without protocol intervention.

Role gates

Test coverage

See per-contract pages for details:

PredictionMarket

Treasury

GimoAdapter

AIResolver