Skip to content

raydium-io/raydium-cpi-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydium-cpi-example

Example of CPI call, relying on Raydium's CLMM/CPMM/AMM main contracts

Environmental requirements

solana-cli 1.17.0
anchor-cli 0.29.0

If you are using a newer version of the anchor, please refer to examples and development environment requirements from other branches.

Accounts

Some accounts are convenient for testing purposes.

CPMM

network devnet mainnet
Program CPMDWBwJDtYax9qW7AyRuVC19Cc4L4Vcy4n2BHAbHkCW CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C
AmmConfig 9zSzfkYy6awexsHvmggeH36pfVUdDGyCcwmjT3AQPBj6 D4FPEruKEHrG5TenZ2mpDGEfu1iUvTiqBxvpU8HLBvC2
FeeReceiver G11FKBRaAkHAKuLCgLM6K6NUc9rTjPAznRCjZifrTQe2 DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8

CLMM

network devnet mainnet
Program devi51mZmdwUJGU9hjN27vEz64Gps7uUefqxg27EAtH CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK
AmmConfig CQYbhr6amxUER4p5SC44C63R4qw4NFc9Z4Db9vF4tZwG 4BLNHtVe942GSs4teSZqGX24xwKNkqU7bGgNn3iUiUpw

Devnet Test

If your contract is completed and you want to deploy it on devnet, please pay attention to the devnet feature in the example. Use the following command when compiling:

anchor build -- --features devnet

About

cpi call example for amm, cpswap and clmm program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published