Repolode
raydium-io

raydium-io/raydium-clmm

Open-source concentrated liquidity market maker (CLMM) smart contract program for the Solana blockchain.

Stars
414
Forks
340
Open issues
3
Last commit
12 days ago

What is it?

Raydium CLMM is a concentrated liquidity market maker program built on Solana and written in Rust with the Anchor framework. In a CLMM pool, liquidity providers choose a specific price range in which their capital is active, instead of spreading it across the whole price curve as in constant product AMM pools.

For liquidity providers, this lets capital be deployed more efficiently and can increase the trading fees earned. For traders, deeper liquidity around the current price means better execution and lower price impact on swaps. Pools can be configured for token pairs with different volatility profiles.

The repository includes the on-chain program that you build with anchor build and deploy with anchor deploy, and it is licensed under Apache 2.0. A CPI example showing how other programs can call the CLMM is maintained in a separate repository.

Key features

  • 01Lets liquidity providers select a specific price range for their liquidity.
  • 02Improves liquidity depth around the current price for swaps.
  • 03Supports pools configured for pairs with different volatility.
  • 04Built with Rust and the Anchor framework for the Solana blockchain.
  • 05Can be called from other on-chain programs via CPI.

Use cases

  • Deploying a concentrated liquidity trading pool on Solana.
  • Studying how CLMM pool logic is implemented in an Anchor program.
  • Integrating CLMM swaps or liquidity positions into another Solana program via CPI.

Quick start

  1. 1

    Install Rust and set toolchain 1.86.0

    rustup default 1.86.0
  2. 2

    Install the Solana CLI (run the official install script from the README)

  3. 3

    Install Anchor version manager and Anchor 0.32.1

    avm install 0.32.1
  4. 4

    Clone the repository, enter it, and build with Anchor

    anchor build

Things to know

  • Targets the Solana blockchain only and requires the Rust, Solana and Anchor toolchains.
  • This is a smart contract program, not an end-user application, so it needs integration work to use.

Topics

#solana#blockchain#defi#amm#rust#anchor#smart-contract

FAQ

What is raydium-clmm?
Open-source concentrated liquidity market maker (CLMM) smart contract program for the Solana blockchain. Raydium CLMM is a concentrated liquidity market maker program built on Solana and written in Rust with the Anchor framework. In a CLMM pool, liquidity providers choose a specific price range in which their capital is active, instead of spreading it across the whole price curve as in constant product AMM pools.
Is raydium-clmm free to use? What license does it have?
raydium-clmm is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
Is raydium-clmm still maintained?
Actively maintained. The last commit to raydium-clmm was on Oct 27, 2026.
What can I use raydium-clmm for?
Deploying a concentrated liquidity trading pool on Solana. Studying how CLMM pool logic is implemented in an Anchor program. Integrating CLMM swaps or liquidity positions into another Solana program via CPI.
How do I install raydium-clmm?
Install Rust and set toolchain 1.86.0: rustup default 1.86.0 Install the Solana CLI (run the official install script from the README) Install Anchor version manager and Anchor 0.32.1: avm install 0.32.1 Clone the repository, enter it, and build with Anchor: anchor build
Where can I get raydium-clmm?
The source code and installation instructions are on GitHub: https://github.com/raydium-io/raydium-clmm

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects