Enum clmm_common::error::ErrorCode
source · [−]pub enum ErrorCode {
Show 43 variants
LOK,
NumberCastError,
ZeroMintAmount,
IntegerDowncastOverflow,
MultiplicationOverflow,
DivisorIsZero,
TokenAmountMinSubceeded,
TokenAmountMaxExceeded,
SqrtPriceOutOfBounds,
ProtocolFeeRateIllegal,
FeeRateIllegal,
TokenMintPairIllgal,
TickArrayStartIndexIllegal,
InvalidTickSpacing,
InvalidTickIndex,
InvalidTickArrayAccount,
PositionIsNotEmpty,
InvalidTokenAccountOwner,
TickNotFound,
TickNotInArray,
InvalidTokenAccount,
InvalidMint,
InvalidAuthority,
PositionAndClmmpoolNotMatch,
PositionIllegal,
InvalidDeltaLiquidity,
ConfigAndPoolNotMatch,
WrongSqrtPriceLimit,
TickArrayNotFound,
InvalidTickArrayIndex,
NextTickNotFound,
FeeGrowthIllegal,
LiquidityOverflow,
LiquidityUnderflow,
RemainerAmountUnderflow,
SwapAmountInOverflow,
SwapAmountOutOverflow,
SwapFeeAmountOverflow,
InvalidTime,
AmountInAboveMaximumLimit,
AmountOutBelowMaximumLimit,
InvalidAmountInput,
InvalidFixedTokenType,
}Expand description
ErrorCode is the error type for the clmmpool program.
Variants
LOK
NumberCastError
ZeroMintAmount
IntegerDowncastOverflow
MultiplicationOverflow
DivisorIsZero
TokenAmountMinSubceeded
TokenAmountMaxExceeded
SqrtPriceOutOfBounds
ProtocolFeeRateIllegal
FeeRateIllegal
TokenMintPairIllgal
TickArrayStartIndexIllegal
InvalidTickSpacing
InvalidTickIndex
InvalidTickArrayAccount
PositionIsNotEmpty
InvalidTokenAccountOwner
TickNotFound
TickNotInArray
InvalidTokenAccount
InvalidMint
InvalidAuthority
PositionAndClmmpoolNotMatch
PositionIllegal
InvalidDeltaLiquidity
ConfigAndPoolNotMatch
WrongSqrtPriceLimit
TickArrayNotFound
InvalidTickArrayIndex
NextTickNotFound
FeeGrowthIllegal
LiquidityOverflow
LiquidityUnderflow
RemainerAmountUnderflow
SwapAmountInOverflow
SwapAmountOutOverflow
SwapFeeAmountOverflow
InvalidTime
AmountInAboveMaximumLimit
AmountOutBelowMaximumLimit
InvalidAmountInput
InvalidFixedTokenType
Trait Implementations
sourceimpl Error for ErrorCode
impl Error for ErrorCode
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more