pub enum CurveError {
Overflow,
ZeroInput,
EmptyPool,
InvalidFee,
InsufficientLpSupply,
}Expand description
Errors returnable by every function in this crate.
Variants§
Overflow
An arithmetic operation overflowed even at u128.
ZeroInput
Caller passed a zero amount where a positive amount is required.
EmptyPool
Pool reserves are zero and the operation requires a non-empty pool.
InvalidFee
fee_bps >= 10_000 (>=100%).
InsufficientLpSupply
LP burn amount exceeds total LP supply.
Trait Implementations§
Source§impl Clone for CurveError
impl Clone for CurveError
Source§fn clone(&self) -> CurveError
fn clone(&self) -> CurveError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CurveError
impl Debug for CurveError
Source§impl PartialEq for CurveError
impl PartialEq for CurveError
Source§fn eq(&self, other: &CurveError) -> bool
fn eq(&self, other: &CurveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CurveError
impl Eq for CurveError
impl StructuralPartialEq for CurveError
Auto Trait Implementations§
impl Freeze for CurveError
impl RefUnwindSafe for CurveError
impl Send for CurveError
impl Sync for CurveError
impl Unpin for CurveError
impl UnsafeUnpin for CurveError
impl UnwindSafe for CurveError
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