Practical overview
When it fits
Use it as a Solana and Anchor codebase when developing or studying prediction-market liquidity and trading flows, rather than as a standalone explanation of AMM theory.
Who it is for
- Solana developers building prediction-market applications or interfaces.
- Integrators using the Anchor IDL and program instructions.
- Engineers exploring dynamic AMM designs for prediction markets.
Documented uses
- Create a prediction market with YES and NO outcome tokens and a USDC vault.
- Add liquidity, receive shares, and claim accrued outcome tokens.
- Swap between YES and NO, or combine client-side instructions for USDC-to-outcome-token trades.
- Redeem a YES/NO pair for USDC and resolve a market after expiration.
Requirements & limits
The repository is public and identifies an MIT license. Its README documents a Devnet program ID and a Devnet RPC setting for the frontend.
- The core implementation is a Solana program written in Rust with Anchor.
- USDC-to-YES/NO trades are described as client-side combinations of program instructions, not as a single listed instruction.
- The README documents a Next.js frontend, Python oracle and Anchor IDL alongside the program.
- The documented integration tests require a local validator.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up and build the repository
Install the documented dependencies and build the Solana program.
Before you start
- The repository’s documented pnpm, Anchor and Python tooling.
- A local copy of the public GitHub repository.
Steps
Run
pnpm install.Run
pnpm run buildto build the program and IDL.
Expected outcome
The repository’s program and Anchor IDL build steps have been run.
Guide limitations
- The README gives these setup and build commands but does not establish a successful build in this guide.
- Running the integration tests is a separate stage and requires a local validator.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- Mattdgn/pm-amm · Official homepage title · retained in its source language

