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.
AMM SolanaCPMM
A Constant Product Market Maker with a full swap + liquidity UI.
dApp Web3Solana Sync Hub
A Solana web app for connecting wallets and surfacing on-chain data.