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.
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.
You can disable the transfer hook extension by setting its
programId
toNone
. 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 withprogramId
set toNone
are ignored by the SPL token program.The relevant code can be found in the
is_supported_mint
method: Raydium CPAMM token.rs Line 176Proposed Solution: Update the
is_supported_mint
method to account for extensions withprogramId
set toNone
, aligning its behavior with the SPL token program's handling of such cases.