Skip to content

Revamped constant product AMM - no Openbook ID requirement, Token22 support

License

Notifications You must be signed in to change notification settings

kekloldyormarket/raydium-cp-swap

This branch is 1 commit ahead of, 1 commit behind raydium-io/raydium-cp-swap:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
jarett dunn
Jan 12, 2025
1cca67a · Jan 12, 2025

History

35 Commits
May 30, 2024
Jan 12, 2025
Dec 3, 2024
May 14, 2024
Feb 26, 2024
Dec 3, 2024
Aug 30, 2024
May 30, 2024
Apr 12, 2024
Dec 10, 2024
Oct 16, 2024
May 30, 2024
Feb 26, 2024
Feb 26, 2024
Apr 16, 2024

Repository files navigation

raydium-cp-swap

A revamped constant product AMM program optimized for straightforward pool deployment along with additional features and integrations:

  • No Openbook market ID is required for pool creation
  • Token22 is supported
  • Built-in price oracle
  • Optimized in Anchor

The program has been audited by MadShield. The report can be found here.

The program assets are in-scope for Raydium’s Immunefi bug bounty program.

Environment Setup

  1. Install Rust

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    rustup default 1.79.0
  2. Install Solana

    sh -c "$(curl -sSfL https://release.solana.com/v1.17.0/install)"

    then run solana-keygen new to create a keypair at the default location.

  3. install Anchor

    # Installing using Anchor version manager (avm) 
    cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
    # Install anchor
    avm install 0.29.0

Quickstart

Clone the repository and test the program.

git clone https://github.com/raydium-io/raydium-cp-swap
cd raydium-cp-swap && yarn && anchor test

License

Raydium constant product swap is licensed under the Apache License, Version 2.0.

About

Revamped constant product AMM - no Openbook ID requirement, Token22 support

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 79.9%
  • TypeScript 20.1%