You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new token based off Solana and wanted to now add a LP for my token/solana pair. However, the creation of such LP failed. The transaction shows the following error:
> Program logged: "AnchorError thrown in programs/cp-swap/src/instructions/initialize.rs:171. Error Code: NotSupportMint. Error Number: 6007. Error Message: Not support token_2022 mint extension."
> Program consumed: 89751 of 596107 compute units
> Program returned error: "custom program error: 0x1777"
After digging a bit through the code, the issue seems to be my token using the "Mint Close Authority Extension" since the call to is_supported_mint()
Hi guys!
I created a new token based off Solana and wanted to now add a LP for my token/solana pair. However, the creation of such LP failed. The transaction shows the following error:
After digging a bit through the code, the issue seems to be my token using the "Mint Close Authority Extension" since the call to is_supported_mint()
raydium-cp-swap/programs/cp-swap/src/utils/token.rs
Line 176 in cfdb70a
is returning false if an extension is found that is not one of [TransferFeeConfig, MetadataPointer, TokenMetaData]:
Is this a "bug" or a feature? It looks like it was a conscious decision to exclude other extensions but I can not think of why this might be an issue.
The text was updated successfully, but these errors were encountered: