Shadow Liquidity

The core innovation powering zero-capital prediction markets

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:


How It Works

Initial State

Every market starts with identical virtual reserves:

Component
Initial Value
Purpose

virtualYES

100,000

Virtual YES token reserve

virtualNO

100,000

Virtual NO token reserve

k (constant)

10,000,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?

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\%

Example Walkthrough

Let's trace a complete buy transaction:

1

Start State

2

User Buys $100 YES

3

Update Virtual Reserves

Actually, let's recalculate properly:

Hmm, that's at 50%—let's see a bigger trade for clarity.

4

After $1000 YES Purchase

5

Solvency Check

Already solvent! Small trades graduate quickly.


Why It Works

🔐 Mathematical Solvency Guarantee

The CPMM formula plus the 2% fee creates a natural solvency buffer:

  1. Users pay for shares

  2. Fees accumulate in the vault

  3. The vault always exceeds the maximum payout

  4. Winners can always be paid $1 per share

⚡ Zero Capital Barrier

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

📈 Fair Price Discovery

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