raydium-io / raydium-cp-swap Goto Github PK
View Code? Open in Web Editor NEWRevamped constant product AMM - no Openbook ID requirement, Token22 support
License: Apache License 2.0
Revamped constant product AMM - no Openbook ID requirement, Token22 support
License: Apache License 2.0
Could you provide a simple example how to use the program? I'd like to deploy it to the mainnet
but since it's not that cheap I'd like to test it on devnet
first.
You can disable the transfer hook extension by setting its programId
to None
. This should cause any subsequent transfers to ignore it. However, the Raydium CPAMM implementation only checks for the existence of extensions other than the permitted ones, without considering that extensions with programId
set to None
are ignored by the SPL token program.
The relevant code can be found in the is_supported_mint
method:
Raydium CPAMM token.rs Line 176
Proposed Solution:
Update the is_supported_mint
method to account for extensions with programId
set to None
, aligning its behavior with the SPL token program's handling of such cases.
When I run anchor build
I get the following error message:
error: no such command: `+solana`
Cargo does not handle `+toolchain` directives.
Did you mean to invoke `cargo` through `rustup` instead?
solana --version
solana-cli 1.17.0 (src:660e41a8; feat:2241946265, client:SolanaLabs)
anchor --version
anchor-cli 0.29.0
Do you have an idea how I can fix this?
Error: Function ZN161$LT$raydium_cp_swap..instructions..initialize..Initialize$u20$as$u20$anchor_lang..Accounts$LT$raydium_cp_swap..instructions..initialize..InitializeBumps$GT$$GT$12try_accounts17h1a5660f3939c4019E Stack offset of 4848 exceeded max offset of 4096 by 752 bytes, please minimize large stack variables
Hey, How Can I initialize pool using PDA account?
PDA account is a System account, but creator is required Signer account.
Can you tell me where I can find the aamConfig address, please?
hi, i succes deploy on chain but run swap.test error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.