CPMM icon
Solana

CPMM

Protocol-level Solana AMM implementation focused on core swap and liquidity mechanics.

On-chain AMM · SPL tokens · PDA vaults
RustAnchorSolanaDeFi

Overview

CPMM is a direct implementation of a constant-product AMM with atomic swap and liquidity flows on Solana.

Problem

AMM mechanics are simple conceptually but require careful token-vault, PDA, and instruction design to be safe and composable on-chain.

Solution

I implemented the core x*y=k protocol path with explicit vault ownership, liquidity operations, and atomic execution guarantees.