pub enum AmmMathError {
TickOutOfRange {
tick: i32,
},
SqrtPriceOutOfRange,
DivisionByZero,
MulDivOverflow,
LiquidityOverflow,
SqrtPriceDiffZero,
ZeroAmounts,
SqrtPriceZero,
LiquidityZero,
PriceUnderflow,
InvalidFeePips,
}Expand description
Errors that can occur in AMM math operations.
Variants§
TickOutOfRange
SqrtPriceOutOfRange
DivisionByZero
MulDivOverflow
LiquidityOverflow
SqrtPriceDiffZero
ZeroAmounts
SqrtPriceZero
LiquidityZero
PriceUnderflow
InvalidFeePips
Trait Implementations§
Source§impl Debug for AmmMathError
impl Debug for AmmMathError
Source§impl Display for AmmMathError
impl Display for AmmMathError
Source§impl Error for AmmMathError
impl Error for AmmMathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AmmMathError
impl RefUnwindSafe for AmmMathError
impl Send for AmmMathError
impl Sync for AmmMathError
impl Unpin for AmmMathError
impl UnsafeUnpin for AmmMathError
impl UnwindSafe for AmmMathError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more