Shadow Liquidity

The core innovation powering zero-capital prediction markets

circle-info

Shadow Liquidity is a virtual AMM that simulates token reserves without requiring real capital. It enables permissionless market creation by bootstrapping liquidity through user participation.

The Core Concept

Traditional AMMs require locked liquidity—real tokens sitting in a contract. Shadow Liquidity uses virtual reserves that exist only as mathematical constructs:

spinner

How It Works

Initial State

Every market starts with identical virtual reserves:

Component
Initial Value
Purpose

virtualYES

1,000

Virtual YES token reserve

virtualNO

1,000

Virtual NO token reserve

k (constant)

1,000,000

CPMM invariant

vaultBalance

0

Real USDC from users

yesPrice

50%

Starting probability

noPrice

50%

Starting probability


The CPMM Formula

Prices are determined by the Constant Product Market Maker equation:

virtualYES×virtualNO=kvirtualYES \times virtualNO = k

When someone buys YES:

  1. virtualYES decreases (user "receives" virtual tokens)

  2. virtualNO increases (to maintain k)

  3. YES price rises (less supply = higher price)


The Vault & Solvency

What Happens to Your USDC?

spinner

All user deposits flow into a single vault. This vault pays out winners at resolution.

Solvency Equation

The protocol tracks solvency—the ratio of vault balance to maximum liability:

Solvency=VaultBalancemax(TotalShadowYES,TotalShadowNO)×100%\text{Solvency} = \frac{\text{VaultBalance}}{\max(\text{TotalShadowYES}, \text{TotalShadowNO})} \times 100\%
circle-check

Example Walkthrough

Let's trace a complete buy transaction:

1

Start State

2

User Buys $100 YES

3

Update Virtual Reserves

The Protocol calculates the new reserves and shares issued based on the Constant Product Formula ($x \times y = k$):

The price has effectively moved from 50% to 54.8%, reflecting the price impact of this trade.

4

Larger Trade Example ($1000 YES)

To better illustrate price impact and slippage, consider a larger purchase:

5

Solvency Check

Already solvent! Small trades graduate quickly.


Why It Works

chevron-right🔐 Mathematical Solvency Guaranteehashtag

The CPMM formula creates a natural solvency buffer:

  1. Users pay for shares

  2. Slippage protects against one-sided markets

  3. 20% minimum on each side ensures balance

  4. Winners receive $1/share + OG bonus (Winner Profit Guarantee)

chevron-right⚡ Zero Capital Barrierhashtag

No one needs to provide initial liquidity:

  • Protocol initializes virtual reserves

  • First trader sets the initial price movement

  • Market naturally bootstraps through participation

  • Creator pays nothing to launch

chevron-right📈 Fair Price Discoveryhashtag

CPMM ensures fair pricing:

  • Large trades have proportionally more slippage

  • Price converges to consensus probability

  • No single actor can easily manipulate

  • Arbitrage opportunities self-correct


Next Steps

Last updated