Git Product home page Git Product logo

raydium-cp-swap's People

Contributors

0x777a avatar rainraydium avatar rudy5348 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

raydium-cp-swap's Issues

Need docs for mainnet deploy

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.

Support for disabled transfer hook extension

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.

anchor build does not work

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?

Compile issues

There are some compile issues, ConstantProductCurve::swap_base_input_without_fees return u128, but still use it as Result type in test case of constant_product.rs and calculator.rs, please fix them.

截屏2024-05-28 10 45 03 截屏2024-05-28 10 43 51

How to fix "Stack offset of 4848 exceeded max offset" after building

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.