diff --git a/cfd_protocol/src/interval.rs b/cfd_protocol/src/interval.rs index 02df497..c8e14e2 100644 --- a/cfd_protocol/src/interval.rs +++ b/cfd_protocol/src/interval.rs @@ -5,7 +5,7 @@ use std::ops::RangeInclusive; mod digit_decomposition; /// Maximum supported BTC price in whole USD. -const MAX_PRICE_DEC: u64 = (BASE as u64).pow(MAX_DIGITS as u32); +const MAX_PRICE_DEC: u64 = (BASE as u64).pow(MAX_DIGITS as u32) - 1; /// Maximum number of binary digits for BTC price in whole USD. const MAX_DIGITS: usize = 20;