Fork of Raydium AMM that creates markets without paying rent-exemption.
- drop-in SDK, minimal code diff
- no extra CU overhead on hot paths
- no UX diff on hot paths
The SDK sponsors rent-exemption on behalf of your users for:
- PoolState
- Token Vaults
- LP Mint account
- User ATAs
Upgrading your program accounts to be rent-free is fast and straightforward because Light-token is a superset of SPL-token. See here for a guide.
For hands-on support, join the Developer Discord.
-
Install
Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup default 1.81.0
-
Install
Solanash -c "$(curl -sSfL https://release.anza.xyz/v2.1.0/install)"then run
solana-keygen newto create a keypair at the default location. -
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.31.1
- install the latest compression dependencies
npm i -g @lightprotocol/zk-compression-cli@alpha --force
cargo install --git https://github.com/lightprotocol/photon.git --rev 6ba6813 --locked --force- Clone the repository and install node dependencies
git clone https://github.com/Lightprotocol/cp-swap-reference
cd raydium-cp-swap && yarn- Run the tests
yarn testRaydium constant product swap is licensed under the Apache License, Version 2.0.