Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for disabled transfer hook extension #16

Open
DavidCurca opened this issue Jul 13, 2024 · 0 comments
Open

Support for disabled transfer hook extension #16

DavidCurca opened this issue Jul 13, 2024 · 0 comments

Comments

@DavidCurca
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant