Protocol Flow

This document describes the complete lifecycle of a BaseCase prediction market, from creation through resolution.


Market Lifecycle Overview


Phase 1: Market Creation

Initialization Parameters

Parameter
Description
Example

Question

Binary yes/no question

"Will BTC hit $150k by Jan 1?"

End Time

When trading stops

January 1, 2025 00:00 UTC

Bonding Period

Duration of curve phase

7 days

Virtual Reserve

Initial vYES and vNO

100,000 each

Initial State

vYES = 100,000
vNO = 100,000
k = vYES × vNO = 10,000,000,000

YES Price = vNO / (vYES + vNO) = 50%
NO Price = vYES / (vYES + vNO) = 50%

Vault = $0
Shadow YES = 0
Shadow NO = 0

Phase 2: Bonding Curve Trading

Trading Mechanics

During the bonding phase, users trade against a virtual Constant Product Market Maker (CPMM).

Buy Operation:

Sell Operation:

Example Trading Sequence

Action
Trader
Amount
Shares
Price
Vault

Buy YES

Alice

$500

485

$1.03

$500

Buy NO

Bob

$300

294

$1.02

$800

Buy YES

Charlie

$1,000

950

$1.05

$1,800

Buy YES

Dave

$2,000

1,820

$1.10

$3,800

Sell YES

Charlie

950

-

$1.09

$2,765

Buy NO

Eve

$2,000

2,150

$0.93

$4,765

Solvency Tracking

The protocol continuously monitors solvency:

Checkpoint
Shadow YES
Shadow NO
Vault
Solvency

After trade 3

2,305

294

$1,800

78.1%

After trade 4

4,125

294

$3,800

92.1%

After trade 5

3,175

294

$2,765

87.1%

After trade 6

3,175

2,444

$4,765

150.1% ✓

Graduation Trigger

When solvency reaches 100%, the market qualifies for graduation:

Graduation can be triggered by any user calling the graduate() function.


Phase 3: Graduation

Graduation Sequence

Example Graduation

Pre-Graduation State:

Graduation Execution:


Phase 4: Order Book Trading

Order Book Structure

Post-graduation, trading occurs on a Central Limit Order Book (CLOB):

Order Types

Order Type
Description

Limit

Place order at specific price

Market

Execute against best available

Cancel

Remove unfilled order

No Liquidity Required

Unlike AMM-based post-graduation:

Aspect
AMM (Uniswap V3)
Order Book

LP capital needed

Yes (protocol seeds)

No

Price discovery

Formula-based

Supply/demand

Spread control

Tick ranges

Maker competition

Limit orders

Indirect

Native

Price Constraint

Order books enforce the binary outcome constraint:


Phase 5: Resolution

Oracle Process

Token Redemption

Collateral Flow


Fee Structure Summary

Phase
Fee
Protocol
Creator

Bonding - Buy

2%

Bonding - Sell

2%

1%

1%

Graduation

2%

1%

1%

Order Book - Maker

0%

Order Book - Taker

0.1%

0.05%

0.05%

Resolution

0%

Note: Buy fees during bonding go to the vault to build solvency, not distributed as revenue.

Creator Rewards Example


Risk Analysis

Solvency Guarantee

The protocol guarantees payout solvency through:

  1. CPMM Slippage: Large one-sided trades pay premium prices

  2. Fee Accumulation: 2% of all trades adds to vault

  3. Graduation Threshold: Cannot graduate below 100% solvency

  4. Collateral Lock: Vault holds exact required amount

Failure Modes

Scenario
Trigger
Resolution

Failed graduation

Solvency < 100% at deadline

Pro-rata refund

Oracle dispute

Challenged assertion

UMA DVM vote

Invalid market

Ambiguous question

Refund mode


Contract Interactions

User Actions by Phase

Bonding Phase:

Graduation:

Order Book:

Resolution:

Last updated