#[repr(u32)]pub enum ErrorCode {
NotApproved = 0,
InvalidOwner = 1,
EmptySupply = 2,
InvalidInput = 3,
IncorrectLpMint = 4,
ExceededSlippage = 5,
ZeroTradingTokens = 6,
NotSupportMint = 7,
InvalidVault = 8,
InitLpAmountTooLess = 9,
}Variants§
NotApproved = 0
InvalidOwner = 1
The owner of the input isn’t set to the program address generated by the program.
EmptySupply = 2
The input token account is empty.
InvalidInput = 3
The input token is invalid for swap.
IncorrectLpMint = 4
Address of the provided pool token mint is incorrect
ExceededSlippage = 5
Exceeds desired slippage limit
ZeroTradingTokens = 6
Given pool token amount results in zero trading tokens
NotSupportMint = 7
InvalidVault = 8
InitLpAmountTooLess = 9
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<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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more