Back

DagPredict

SocialPolymarket

Bet on real-world events. YES/NO markets with CPMM.

Binary prediction markets on anything. Create a market with a resolution time. Mint complementary YES+NO shares from collateral. Trade via CPMM AMM. Redeem 1:1 after resolution.

Contracts

How to use

1

Create: createMarket(question, collateral, resolver, resolutionTime, feeBps).

2

Mint: approve collateral, mintShares(marketId, amount) — you get amount YES + amount NO.

3

Trade: swap(marketId, yesToNo, amountIn, minOut). CPMM sets the implied probability.

4

After resolution, winning side calls redeem(marketId) for 1:1 collateral payout.

Cost

1% fee on YES/NO swaps inside each market. Free to mint and redeem shares.