raydium-io / raydium-cpi-example

cpi call example for amm, cpswap and clmm program
30 stars 12 forks source link

Program log: panicked at 'called `Option::unwrap()` on a `None` value', programs/amm/src/instructions/swap.rs:195:64 #5

Open gladwinput opened 2 months ago

gladwinput commented 2 months ago

When you try to use the CLMM-CPI example you immediately encounter: Program log: panicked at 'calledOption::unwrap()on aNonevalue', programs/amm/src/instructions/swap.rs:195:64

It appears that this is due to not passing in tick_arrays, Something to do with remaining_accounts.

It is unclear however where tick_arrays come from or how they go into the swap. The example remains incomplete and erroneous