#[repr(u32)]pub enum ErrorCode {
Show 44 variants
LOK = 0,
NotApproved = 1,
InvalidUpdateConfigFlag = 2,
AccountLack = 3,
ClosePositionErr = 4,
ZeroMintAmount = 5,
InvaildTickIndex = 6,
TickInvaildOrder = 7,
TickLowerOverflow = 8,
TickUpperOverflow = 9,
TickAndSpacingNotMatch = 10,
InvalidTickArray = 11,
InvalidTickArrayBoundary = 12,
SqrtPriceLimitOverflow = 13,
SqrtPriceX64 = 14,
LiquiditySubValueErr = 15,
LiquidityAddValueErr = 16,
InvaildLiquidity = 17,
ForbidBothZeroForSupplyLiquidity = 18,
LiquidityInsufficient = 19,
TransactionTooOld = 20,
PriceSlippageCheck = 21,
TooLittleOutputReceived = 22,
TooMuchInputPaid = 23,
ZeroAmountSpecified = 24,
InvalidInputPoolVault = 25,
TooSmallInputOrOutputAmount = 26,
NotEnoughTickArrayAccount = 27,
InvalidFirstTickArrayAccount = 28,
InvalidRewardIndex = 29,
FullRewardInfo = 30,
RewardTokenAlreadyInUse = 31,
ExceptPoolVaultMint = 32,
InvalidRewardInitParam = 33,
InvalidRewardDesiredAmount = 34,
InvalidRewardInputAccountNumber = 35,
InvalidRewardPeriod = 36,
NotApproveUpdateRewardEmissiones = 37,
UnInitializedRewardInfo = 38,
NotSupportMint = 39,
MissingTickArrayBitmapExtensionAccount = 40,
InsufficientLiquidityForDirection = 41,
MaxTokenOverflow = 42,
CalculateOverflow = 43,
}Variants§
LOK = 0
NotApproved = 1
InvalidUpdateConfigFlag = 2
AccountLack = 3
ClosePositionErr = 4
ZeroMintAmount = 5
InvaildTickIndex = 6
TickInvaildOrder = 7
TickLowerOverflow = 8
TickUpperOverflow = 9
TickAndSpacingNotMatch = 10
InvalidTickArray = 11
InvalidTickArrayBoundary = 12
SqrtPriceLimitOverflow = 13
SqrtPriceX64 = 14
LiquiditySubValueErr = 15
LiquidityAddValueErr = 16
InvaildLiquidity = 17
ForbidBothZeroForSupplyLiquidity = 18
LiquidityInsufficient = 19
TransactionTooOld = 20
swap errors
PriceSlippageCheck = 21
TooLittleOutputReceived = 22
TooMuchInputPaid = 23
ZeroAmountSpecified = 24
InvalidInputPoolVault = 25
TooSmallInputOrOutputAmount = 26
NotEnoughTickArrayAccount = 27
InvalidFirstTickArrayAccount = 28
InvalidRewardIndex = 29
reward errors
FullRewardInfo = 30
RewardTokenAlreadyInUse = 31
ExceptPoolVaultMint = 32
InvalidRewardInitParam = 33
InvalidRewardDesiredAmount = 34
InvalidRewardInputAccountNumber = 35
InvalidRewardPeriod = 36
NotApproveUpdateRewardEmissiones = 37
UnInitializedRewardInfo = 38
NotSupportMint = 39
MissingTickArrayBitmapExtensionAccount = 40
InsufficientLiquidityForDirection = 41
MaxTokenOverflow = 42
CalculateOverflow = 43
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.