CLMM
A Concentrated Liquidity Market Maker built from scratch on Solana.
- Year
- 2025
- Role
- Solo — on-chain program, indexer & front-end
Overview
An end-to-end Concentrated Liquidity Market Maker protocol on Solana. A CLMM engine written in Rust/Anchor handles tick-based liquidity, a real-time transaction indexer reconstructs on-chain state into a Postgres analytics layer, and a modern Next.js interface drives swaps and liquidity provision.
The challenge
Concentrated liquidity is the hardest AMM design to get right: liquidity lives across discrete price ticks, and the on-chain math — sqrt-price, tick crossing, per-position fee growth — has to be exact or pools leak value. Raw chain data is also unusable for a trading UI without an indexer to reconstruct positions and ticks.
What I built
- A CLMM program in Rust/Anchor implementing tick-based concentrated liquidity, sqrt-price math and per-position fee accrual.
- A real-time indexer that subscribes to on-chain transactions, rebuilds tick/position state and writes denormalized rows to Postgres.
- A Next.js trading interface for swaps, opening positions and managing liquidity ranges.
- A TypeScript client layer wrapping the on-chain program for both the indexer and the UI.
Outcome
A complete, deployed CLMM ecosystem — program, indexer and UI — running live on Vercel.
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.