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

Getting error when creating a pool on Raydium #100

Open
abhi3700 opened this issue Nov 17, 2024 · 1 comment
Open

Getting error when creating a pool on Raydium #100

abhi3700 opened this issue Nov 17, 2024 · 1 comment

Comments

@abhi3700
Copy link

I have tried interacting with RaydiumCLMM v3 on Solana.

The error is quite unexpected when I create a pool with a pair of custom tokens.

Error: Error processing Instruction 0: custom program error: 0x0

Caused by:
    Error processing Instruction 0: custom program error: 0x0

It seems my PDA might be initialized or something. I tried to log the possible PDAs created in the process:

mint0:Dj3X6GtmRMUuWaokGpX9qeNedFRZuHfsbKsmxNd5uPiw, mint1:Dj3X6GtmRMUuWaokGpX9qeNedFRZuHfsbKsmxNd5uPiw, price:1.5
tick:4054, price:1.5, sqrt_price_x64:22592555198148960256, amm_config_key:AXBWHam6uWKxjYYu2HBXYPAzjsvmkudouA1UCzGP3koJ
[src/instructions.rs:36:5] &payer.pubkey() = CGdKiDkufmnjMhQDtbBKbCLc7jgT9jTXe5pdnywcNeXd
[src/instructions.rs:50:5] &pool_account_key = 4Ufp6WCYosfKW29rSKTpxv8uhio9bNSua3wbdPNuhEbH
[src/instructions.rs:59:5] &token_vault_0 = 37VA3bQTbxjQawkagk66XfJUTdjoKHXnKx6ZJWevdDHp
[src/instructions.rs:68:5] &token_vault_1 = 37VA3bQTbxjQawkagk66XfJUTdjoKHXnKx6ZJWevdDHp
[src/instructions.rs:76:5] &observation_key = 5F7rAxpAzk7Y69f8bKMkKMqwmmnyXUAeocyzvzsCtL2B

Here is my github repo: https://github.com/abhi3700/raydium-solana.
You can follow the client code here: https://github.com/abhi3700/raydium-solana/blob/be5bd1b6ea0910e2b83c63c014e8d223fc085a77/client/src/main.rs

I am not sure what am I missing.
Can anyone help me please?

@SmithDEVV
Copy link

@abhi3700 It sounds like your query would be best dealt with by the support team.

Please see the link below to our dedicated support line:

Support : Support

Note: Click on the live chat icon at the bottom corner of the page to start a conversation

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

2 participants