CPMM
A Constant Product Market Maker with a full swap + liquidity UI.
- Year
- 2025
- Role
- Solo — on-chain program & front-end
Overview
A constant-product (x·y=k) AMM on Solana. The on-chain swap and pool program is written in Rust/Anchor and paired with a TypeScript client and a Next.js front-end for swapping tokens and providing liquidity.
The challenge
Before tackling concentrated liquidity, I wanted to build the simpler constant-product model end to end — to nail the on-chain swap/pool mechanics, LP accounting and the wallet-connected trading flow on Solana.
What I built
- An on-chain constant-product swap and pool program in Rust/Anchor.
- Liquidity provision and removal with LP token accounting.
- A TypeScript client and a Next.js UI for swapping tokens and managing pools.
Outcome
A working CPMM deployed and live — and the conceptual foundation for the CLMM that followed.
More work
Syncro
A high-performance Solana indexing platform: write a transform in the browser, and stream structured on-chain data straight into your own Postgres — no proprietary schema, no lock-in.
Full-Stack · Multi-Panel E-CommerceFoneXpress
A production e-commerce platform for smartphones and electronics in Kenya — one Node/Express + MongoDB backend powering a customer storefront plus admin, store-operations and franchise dashboards, with real-time M-Pesa payments, multi-courier delivery and multi-warehouse inventory.
Full-Stack · Investment / Wealth PlatformPentagon Investments
A full-stack investment platform where users invest in mutual funds via SIPs and lump sums, hold fixed-return payout contracts, and manage portfolios end-to-end — KYC onboarding, Stripe-powered recurring payments, auto-generated PDF contracts and a scheduled payout engine, all run from an admin back-office.