Mattdgn

Mattdgn / pm-amm

Public

Implementation of the Paradigm pm-AMM on Solana.

42
2
100% credibility
Found Apr 30, 2026 at 42 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

pm-AMM is an open-source Solana application for creating and trading on binary prediction markets using a novel automated market maker design that ensures fair returns for liquidity providers.

How It Works

1
🌐 Discover pm-AMM

You find this fun prediction market app where anyone can bet on real-world events like 'Will BTC hit $100k?'.

2
🔗 Connect your wallet

Link your Solana wallet with one click to start exploring markets safely.

3
📈 Browse or create markets

Scroll through live markets or make your own question about sports, crypto, or news.

4
💰 Add liquidity or bet

Put in some USDC to provide liquidity and earn from trades, or buy YES/NO shares to bet on the outcome—your choice!

5
Watch and claim rewards

Prices update live as people trade, and you can claim your growing share of tokens anytime.

🏆 Cash out winnings

When the event resolves, redeem your winning shares for full value and walk away with profits.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 42 to 42 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is pm-amm?

pm-amm is a Solana program implementing Paradigm's dynamic AMM for binary prediction markets, using time-decaying liquidity to deliver uniform loss-versus-repricing across prices and time. Developers deploy markets with USDC vaults, YES/NO outcome tokens, and automated liquidity bootstrapping at 50/50 odds; users swap USDC for tokens, provide liquidity for shares, claim time-released residuals, or redeem pairs anytime. Built in Rust with Anchor, it handles full lifecycles from creation to resolution via PDAs for composability.

Why is it gaining traction?

This stands out as the first production-ready pm-AMM with 100% paper fidelity, verified on-chain properties like constant expected LVR, and a dC_t mechanism that continuously redistributes liquidity to LPs without full withdrawal. Permissionless accrual keeps pools efficient, while CPI-friendly instructions like suggest_l_zero simplify auto-LP integration. A Next.js frontend, Python oracle for testing, and 200+ tests make it instantly usable versus fragmented alternatives.

Who should use this?

Solana DeFi builders creating prediction platforms, protocols integrating PM liquidity (e.g., oracles or aggregators), and LPs running vaults that need calibrated liquidity for events like elections or sports. Ideal for devs forking for custom markets or embedding swaps in dApps.

Verdict

Grab it if you're prototyping prediction markets—solid docs, deploy scripts, and devnet program make it low-friction despite 42 stars and 1.0% credibility signaling early maturity. Polish oracle integration next for mainnet confidence. (198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.