8000 Recurrent overflow issue · Issue #656 · orca-so/whirlpools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Recurrent overflow issue #656
Open
Open
@W4NGCH4O

Description

@W4NGCH4O

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0