Nereus
A uniform automated market maker for onchain prediction markets. Built around the loss-versus-rebalancing minimum for outcome-token price dynamics — the first AMM whose expected loss is independent of price and, under the dynamic design, independent of time.
Trade the curve. Deposit liquidity. Skip time forward.
Mock telemetry · representative of devnet behavior · not live mainnet data
LPs lose in proportion to realized volatility. Under the dynamic L schedule with calibrated Brownian score dynamics, the expected LP retention at resolution is V₀/2 — but that is an expectation, not a guarantee. At zero realized vol, LPs retain 100% of wealth.
The pool's deterministic shrinkage is routed to LPs via a separate accumulator. On every swap, reserves scale by L_new/L_last and the difference transfers to the drift vault — proportional to each LP's share of total liquidity.
slippage versus a constant-product curve at P = 0.5 for a representative 1% pool swap. Liquidity density concentrates where trader interest concentrates — near fair value — and sparsifies where outcomes are already priced.
scripts/measure-slippage.tsnoteSimulator math models the planned Phase 2 protocol — immutable L₀, static decay trajectory, drift capture via scale-form on every swap. Current Phase 1 devnet code mutates L₀ on deposit; the simulator and the on-chain program reconverge at Phase 2 mainnet. The "large first swap after deposit" behavior is a feature, not a glitch: it reflects how Target 2 reserves re-center onto the L₀ curve when the next swap fires.
Uniform LVR. Decomposable yield.
A prediction market is a stream of forecast revisions. The pool is a passive counterparty to every revision — it absorbs information asymmetry and pays to do so. That payment is loss-versus-rebalancing, and under the paper's dynamic invariant it accrues at a constant rate over the market's life.
Existing AMMs don't. Constant-product loses a predictable fraction of pool value at every resolution — the closer to expiry, the worse the LVR rate. The pm-AMM flattens that profile, and the drift-capture step turns the deterministic portion of pool decay into LP yield instead of arbitrageur profit.
Closed-form pm-AMM invariant
A single normal-CDF-based curve for binary outcome tokens. Liquidity is concentrated near fair value and sparsifies at the tails — tighter slippage near 0.5, graceful degradation near 0/1. Proven monotone in y, which locks Newton bracketing for the swap solver.
Time-varying liquidity
L_eff shrinks from L₀ at market open to a narrow safety margin at the freeze boundary on a √-time schedule. The design target is uniform expected LVR per unit time under calibrated Gaussian score dynamics — a fair calendar spread for LPs.
Drift capture on every swap
The dollar value the pool loses to time decay doesn't evaporate — it routes to a separate drift vault, distributed per-LP-share. Closed-form scale-form: reserves shrink by (1 − L_new/L_last); LPs keep the deterministic portion of pool decay as yield.
Four-accumulator design
Fee growth and drift growth track on separate X/Y accumulators at the pool level. LP positions snapshot all four at entry and settle against them on collect. The decomposition isn't cosmetic — it's how sponsored-liquidity LPs will report subsidy cost vs. trading yield separately at the protocol layer.
Uniform LVR under Gaussian score dynamics
The dynamic L schedule is calibrated against the paper's Brownian-score model: at constant σ, expected LVR per unit time is constant over the market life. LP losses scale with realized volatility — at zero realized vol, LPs retain 100% of wealth.
Multisig oracle, optimistic later
Phase 2 resolves via multisig oracle_authority — deliberately conservative, audit-friendly. Optimistic-oracle path (UMA-style bonded dispute) is Phase 4 work, gated on the commercial wedge decision. Resolution mechanism is not load-bearing for the pool math.
Path to mainnet.
- Phase 01complete
Math library and static pool
Closed-form invariant, Chebyshev-degree-27 Φ/φ in Q64.64 (~7-10k CU), safeguarded Newton swap solver (p99 4 iterations on Phase 1 histogram), 560-vector scipy-Brent parity at 100% match, full e2e happy-path tagged phase-1-e2e-happy-path.
- Phase 02in progress
Dynamic L, drift capture, fee + drift accumulators
Chunk 1 merged: time-varying L_eff, closed-form scale-form drift capture on every swap, MIN_TAU freeze boundary, sum-conservation and form-equivalence property tests. Chunks 2-4 cover LP position PDAs, fee config, and integration hardening.
- Phase 03scheduled
External audit
Engagement window being scoped with security firms already familiar with Anchor 1.0 and Solana 3.x. Target: Phase 2-complete code plus the off-chain Brent harness used as parity oracle.
- Phase 04scheduled
Mainnet + initial markets
Deploy to mainnet; open to sponsored-liquidity LPs and vertical frontends. Initial market candidates being evaluated against the three commercial wedges — infrastructure, vertical, and sponsored-information.
Be on the list when Nereus opens to integration partners.
Prediction market protocols, vertical frontends, sponsored- liquidity LPs — drop a line and we'll share devnet endpoints when they're live, the Phase 2 design doc, and the backtester harness once it clears internal review.