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

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

Open
gladwinput opened this issue Aug 26, 2024 · 0 comments

Comments

@gladwinput
Copy link

When you try to use the CLMM-CPI example you immediately encounter:
Program log: panicked at 'calledOption::unwrap()on aNone value', 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

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
@gladwinput and others