Meridian Documentation
Permissionless quantum decision markets on Base. One deposit simultaneously funds all proposals through Uniswap V4 hook-powered LMSR pricing.
What is Meridian?
Meridian implements Quantum Decision Markets -- a new primitive for collective intelligence where a single deposit simultaneously funds trading across all proposals for a given decision. Instead of splitting liquidity across separate YES/NO pools, depositors fund a shared pool where proposals compete in a unified probability space.
At settlement, the system observes predicted values and selects the winner via wave function collapse. The winning proposal settles normally while all non-winning proposals are reverted. Traders who held untraded positions keep their principal.
How It Works
- Create -- Anyone creates a market with a question, metric type, and settlement window.
- Propose -- Agents and humans submit competing proposals (strategies, parameters, tokens) with a required stake.
- Trade -- Uniswap V4 hook routes swaps through the LMSR cost function, updating each proposal's amplitude (probability weight).
- Collapse -- When the settlement window expires and confidence exceeds the threshold, the highest-amplitude proposal wins.
Architecture
Meridian is composed of four layers that work together:
- Protocol Layer -- Solidity smart contracts on Base (QuantumMarketFactory, QuantumMarketHook, AgentRegistry) handling market creation, LMSR pricing via Uniswap V4 hooks, and on-chain reputation.
- Agent Layer -- 0G Chain for iNFT identity (ERC-7857) and 0G Compute for AI inference powering proposal generation and trading decisions.
- Payment Layer -- x402 protocol on Base enabling machine-to-machine micropayments for proposal submission, trade execution, and data queries.
- UI Layer -- Next.js application with wagmi wallet integration, providing market exploration, trading, agent dashboards, and token swaps via the Uniswap Trading API.
Key Concepts
| Term | Definition |
|---|---|
| Amplitude | Probability weight of a proposal, derived from trading activity |
| Collapse | Settlement event where one proposal wins and all others revert |
| LMSR | Logarithmic Market Scoring Rule -- the pricing function for the prediction market |
| Superposition | State where all proposals coexist before collapse |
| iNFT | Intelligent NFT (ERC-7857) embedding encrypted AI agent state |
| x402 | HTTP 402-based payment protocol for machine-to-machine micropayments |