diff --git a/programs/openbook-v2/fuzz/Cargo.lock b/programs/openbook-v2/fuzz/Cargo.lock index 8a62ca05a..dd18849bc 100644 --- a/programs/openbook-v2/fuzz/Cargo.lock +++ b/programs/openbook-v2/fuzz/Cargo.lock @@ -1247,9 +1247,10 @@ dependencies = [ [[package]] name = "fixed" version = "1.11.0" +source = "git+https://github.com/blockworks-foundation/fixed.git?branch=v1.11.0-borsh0_10-mango#01516ae3e29418feb066b67830540aa81d04df05" dependencies = [ "az", - "borsh 0.9.3", + "borsh 0.10.3", "bytemuck", "half", "serde", diff --git a/programs/openbook-v2/src/i80f48.rs b/programs/openbook-v2/src/i80f48.rs index 75da25df6..a222d7ed8 100644 --- a/programs/openbook-v2/src/i80f48.rs +++ b/programs/openbook-v2/src/i80f48.rs @@ -1,9 +1,9 @@ -use fixed::types::I80F48; - // regression test for https://gitlab.com/tspiteri/fixed/-/issues/57 // see https://github.com/blockworks-foundation/fixed/issues/1 #[test] fn bug_fixed_comparison_u64() { + use fixed::types::I80F48; + let a: u64 = 66000; let b: u64 = 1000; assert!(I80F48::from(a) > b); // fails! diff --git a/programs/openbook-v2/src/lib.rs b/programs/openbook-v2/src/lib.rs index e3deb4d01..f758aeef1 100644 --- a/programs/openbook-v2/src/lib.rs +++ b/programs/openbook-v2/src/lib.rs @@ -18,6 +18,7 @@ pub mod pubkey_option; pub mod state; pub mod token_utils; pub mod types; + mod i80f48; #[cfg(feature = "enable-gpl")]