You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountering panic due to Option::unwrap() calls on None value across all liquidity pool modules when running tests and executing client/ off-chain arbitrage bot code. The issue persists across different modules, indicating a widespread pattern of assuming Some values without prior validation.
Error Output:
---- tests::quotes::mercurial stdout ----
thread 'tests::quotes::mercurial' panicked at src/pools/mercurial.rs:151:47: called `Option::unwrap()` on a `None` value
---- tests::quotes::aldrin stdout ----
thread 'tests::quotes::aldrin' panicked at src/pools/aldrin.rs:220:47: called `Option::unwrap()` on a `None` value
---- tests::quotes::orca stdout ----
thread 'tests::quotes::orca' panicked at src/pools/orca.rs:166:47: called `Option::unwrap()` on a `None` value
---- tests::quotes::saber stdout ----
thread 'tests::quotes::saber' panicked at src/pools/saber.rs:125:47: called `Option::unwrap()` on a `None` value
---- tests::quotes::serum stdout ----
thread 'tests::quotes::serum' panicked at src/pools/serum.rs:378:50: called `Option::unwrap()` on a `None` value
Environment:
Rust Version: rustc 1.77.2
Anchor Version: avm 0.22.1
Operating System: macOS 14.4.1
Build Version: 23E224
The text was updated successfully, but these errors were encountered:
test tests::quotes::aldrin ... FAILED
test tests::quotes::mercurial ... FAILED
test tests::quotes::orca ... FAILED
test tests::quotes::saber ... FAILED
test tests::quotes::serum ... FAILED
failures:
---- tests::quotes::aldrin stdout ----
thread 'tests::quotes::aldrin' panicked at src/tests/quotes.rs:70:58:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
---- tests::quotes::mercurial stdout ----
thread 'tests::quotes::mercurial' panicked at src/tests/quotes.rs:70:58:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
---- tests::quotes::orca stdout ----
thread 'tests::quotes::orca' panicked at src/tests/quotes.rs:70:58:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
---- tests::quotes::saber stdout ----
thread 'tests::quotes::saber' panicked at src/tests/quotes.rs:70:58:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
---- tests::quotes::serum stdout ----
thread 'tests::quotes::serum' panicked at src/tests/quotes.rs:70:58:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Error Description:
Encountering panic due to
Option::unwrap()
calls on None value across all liquidity pool modules when running tests and executingclient/
off-chain arbitrage bot code. The issue persists across different modules, indicating a widespread pattern of assuming Some values without prior validation.Error Output:
Environment:
The text was updated successfully, but these errors were encountered: