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

Recurrent overflow issue #656

Open
W4NGCH4O opened this issue Jan 15, 2025 · 2 comments
Open

Recurrent overflow issue #656

W4NGCH4O opened this issue Jan 15, 2025 · 2 comments

Comments

@W4NGCH4O
Copy link

W4NGCH4O commented Jan 15, 2025

I have a piece of code that checks to see if a position is out of range, if so, it closes it. However, I keep getting this error while generating close instructions.

This is the code where the internal call to the collect_rewards_quote function in quote/rewards.rs takes place.
let close_instructions = match close_position_instructions( &rpc, nft_address.clone(), Some(100), None, ).await { Ok(instructions) => instructions, Err(_) => continue, };

this is the error :
thread 'main' panicked at /home/willy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/orca_whirlpools_core-1.0.2/src/quote/rewards.rs:38:27: attempt to subtract with overflow note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@W4NGCH4O
Copy link
Author

Please help, do I need to put a bounty for someone to help me or what?

@wjthieme
Copy link
Member

wjthieme commented Jan 24, 2025

Can you give us the address of the position nft that you are trying to close so we can investigate?

@orca-so orca-so deleted a comment from Rose11549 Feb 4, 2025
@orca-so orca-so deleted a comment from Rose11549 Feb 6, 2025
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