Skip to main content

LbClmmError

Enum LbClmmError 

Source
pub enum LbClmmError {
Show 83 variants InvalidStartBinIndex = 6_000, InvalidBinId = 6_001, InvalidInput = 6_002, ExceededAmountSlippageTolerance = 6_003, ExceededBinSlippageTolerance = 6_004, CompositionFactorFlawed = 6_005, NonPresetBinStep = 6_006, ZeroLiquidity = 6_007, InvalidPosition = 6_008, BinArrayNotFound = 6_009, InvalidTokenMint = 6_010, InvalidAccountForSingleDeposit = 6_011, PairInsufficientLiquidity = 6_012, InvalidFeeOwner = 6_013, InvalidFeeWithdrawAmount = 6_014, InvalidAdmin = 6_015, IdenticalFeeOwner = 6_016, InvalidBps = 6_017, MathOverflow = 6_018, TypeCastFailed = 6_019, InvalidRewardIndex = 6_020, InvalidRewardDuration = 6_021, RewardInitialized = 6_022, RewardUninitialized = 6_023, IdenticalFunder = 6_024, RewardCampaignInProgress = 6_025, IdenticalRewardDuration = 6_026, InvalidBinArray = 6_027, NonContinuousBinArrays = 6_028, InvalidRewardVault = 6_029, NonEmptyPosition = 6_030, UnauthorizedAccess = 6_031, InvalidFeeParameter = 6_032, MissingOracle = 6_033, InsufficientSample = 6_034, InvalidLookupTimestamp = 6_035, BitmapExtensionAccountIsNotProvided = 6_036, CannotFindNonZeroLiquidityBinArrayId = 6_037, BinIdOutOfBound = 6_038, InsufficientOutAmount = 6_039, InvalidPositionWidth = 6_040, ExcessiveFeeUpdate = 6_041, PoolDisabled = 6_042, InvalidPoolType = 6_043, ExceedMaxWhitelist = 6_044, InvalidIndex = 6_045, RewardNotEnded = 6_046, MustWithdrawnIneligibleReward = 6_047, UnauthorizedAddress = 6_048, OperatorsAreTheSame = 6_049, WithdrawToWrongTokenAccount = 6_050, WrongRentReceiver = 6_051, AlreadyPassActivationPoint = 6_052, ExceedMaxSwappedAmount = 6_053, InvalidStrategyParameters = 6_054, LiquidityLocked = 6_055, BinRangeIsNotEmpty = 6_056, NotExactAmountOut = 6_057, InvalidActivationType = 6_058, InvalidActivationDuration = 6_059, MissingTokenAmountAsTokenLaunchProof = 6_060, InvalidQuoteToken = 6_061, InvalidBinStep = 6_062, InvalidBaseFee = 6_063, InvalidPreActivationDuration = 6_064, AlreadyPassPreActivationSwapPoint = 6_065, InvalidStatus = 6_066, ExceededMaxOracleLength = 6_067, InvalidMinimumLiquidity = 6_068, NotSupportMint = 6_069, UnsupportedMintExtension = 6_070, UnsupportNativeMintToken2022 = 6_071, UnmatchTokenMint = 6_072, UnsupportedTokenMint = 6_073, InsufficientRemainingAccounts = 6_074, InvalidRemainingAccountSlice = 6_075, DuplicatedRemainingAccountTypes = 6_076, MissingRemainingAccountForTransferHook = 6_077, NoTransferHookProgram = 6_078, ZeroFundedAmount = 6_079, InvalidSide = 6_080, InvalidResizeLength = 6_081, NotSupportAtTheMoment = 6_082,
}

Variants§

§

InvalidStartBinIndex = 6_000

6000 - Invalid start bin index

§

InvalidBinId = 6_001

6001 - Invalid bin id

§

InvalidInput = 6_002

6002 - Invalid input data

§

ExceededAmountSlippageTolerance = 6_003

6003 - Exceeded amount slippage tolerance

§

ExceededBinSlippageTolerance = 6_004

6004 - Exceeded bin slippage tolerance

§

CompositionFactorFlawed = 6_005

6005 - Composition factor flawed

§

NonPresetBinStep = 6_006

6006 - Non preset bin step

§

ZeroLiquidity = 6_007

6007 - Zero liquidity

§

InvalidPosition = 6_008

6008 - Invalid position

§

BinArrayNotFound = 6_009

6009 - Bin array not found

§

InvalidTokenMint = 6_010

6010 - Invalid token mint

§

InvalidAccountForSingleDeposit = 6_011

6011 - Invalid account for single deposit

§

PairInsufficientLiquidity = 6_012

6012 - Pair insufficient liquidity

§

InvalidFeeOwner = 6_013

6013 - Invalid fee owner

§

InvalidFeeWithdrawAmount = 6_014

6014 - Invalid fee withdraw amount

§

InvalidAdmin = 6_015

6015 - Invalid admin

§

IdenticalFeeOwner = 6_016

6016 - Identical fee owner

§

InvalidBps = 6_017

6017 - Invalid basis point

§

MathOverflow = 6_018

6018 - Math operation overflow

§

TypeCastFailed = 6_019

6019 - Type cast error

§

InvalidRewardIndex = 6_020

6020 - Invalid reward index

§

InvalidRewardDuration = 6_021

6021 - Invalid reward duration

§

RewardInitialized = 6_022

6022 - Reward already initialized

§

RewardUninitialized = 6_023

6023 - Reward not initialized

§

IdenticalFunder = 6_024

6024 - Identical funder

§

RewardCampaignInProgress = 6_025

6025 - Reward campaign in progress

§

IdenticalRewardDuration = 6_026

6026 - Reward duration is the same

§

InvalidBinArray = 6_027

6027 - Invalid bin array

§

NonContinuousBinArrays = 6_028

6028 - Bin arrays must be continuous

§

InvalidRewardVault = 6_029

6029 - Invalid reward vault

§

NonEmptyPosition = 6_030

6030 - Position is not empty

§

UnauthorizedAccess = 6_031

6031 - Unauthorized access

§

InvalidFeeParameter = 6_032

6032 - Invalid fee parameter

§

MissingOracle = 6_033

6033 - Missing oracle account

§

InsufficientSample = 6_034

6034 - Insufficient observation sample

§

InvalidLookupTimestamp = 6_035

6035 - Invalid lookup timestamp

§

BitmapExtensionAccountIsNotProvided = 6_036

6036 - Bitmap extension account is not provided

§

CannotFindNonZeroLiquidityBinArrayId = 6_037

6037 - Cannot find non-zero liquidity binArrayId

§

BinIdOutOfBound = 6_038

6038 - Bin id out of bound

§

InsufficientOutAmount = 6_039

6039 - Insufficient amount in for minimum out

§

InvalidPositionWidth = 6_040

6040 - Invalid position width

§

ExcessiveFeeUpdate = 6_041

6041 - Excessive fee update

§

PoolDisabled = 6_042

6042 - Pool disabled

§

InvalidPoolType = 6_043

6043 - Invalid pool type

§

ExceedMaxWhitelist = 6_044

6044 - Whitelist for wallet is full

§

InvalidIndex = 6_045

6045 - Invalid index

§

RewardNotEnded = 6_046

6046 - Reward not ended

§

MustWithdrawnIneligibleReward = 6_047

6047 - Must withdraw ineligible reward

§

UnauthorizedAddress = 6_048

6048 - Unauthorized address

§

OperatorsAreTheSame = 6_049

6049 - Cannot update because operators are the same

§

WithdrawToWrongTokenAccount = 6_050

6050 - Withdraw to wrong token account

§

WrongRentReceiver = 6_051

6051 - Wrong rent receiver

§

AlreadyPassActivationPoint = 6_052

6052 - Already activated

§

ExceedMaxSwappedAmount = 6_053

6053 - Swapped amount is exceeded max swapped amount

§

InvalidStrategyParameters = 6_054

6054 - Invalid strategy parameters

§

LiquidityLocked = 6_055

6055 - Liquidity locked

§

BinRangeIsNotEmpty = 6_056

6056 - Bin range is not empty

§

NotExactAmountOut = 6_057

6057 - Amount out is not matched with exact amount out

§

InvalidActivationType = 6_058

6058 - Invalid activation type

§

InvalidActivationDuration = 6_059

6059 - Invalid activation duration

§

MissingTokenAmountAsTokenLaunchProof = 6_060

6060 - Missing token amount as token launch owner proof

§

InvalidQuoteToken = 6_061

6061 - Quote token must be SOL or USDC

§

InvalidBinStep = 6_062

6062 - Invalid bin step

§

InvalidBaseFee = 6_063

6063 - Invalid base fee

§

InvalidPreActivationDuration = 6_064

6064 - Invalid pre-activation duration

§

AlreadyPassPreActivationSwapPoint = 6_065

6065 - Already pass pre-activation swap point

§

InvalidStatus = 6_066

6066 - Invalid status

§

ExceededMaxOracleLength = 6_067

6067 - Exceed max oracle length

§

InvalidMinimumLiquidity = 6_068

6068 - Invalid minimum liquidity

§

NotSupportMint = 6_069

6069 - Not support token_2022 mint extension

§

UnsupportedMintExtension = 6_070

6070 - Unsupported mint extension

§

UnsupportNativeMintToken2022 = 6_071

6071 - Unsupported native mint token2022

§

UnmatchTokenMint = 6_072

6072 - Unmatch token mint

§

UnsupportedTokenMint = 6_073

6073 - Unsupported token mint

§

InsufficientRemainingAccounts = 6_074

6074 - Insufficient remaining accounts

§

InvalidRemainingAccountSlice = 6_075

6075 - Invalid remaining account slice

§

DuplicatedRemainingAccountTypes = 6_076

6076 - Duplicated remaining account types

§

MissingRemainingAccountForTransferHook = 6_077

6077 - Missing remaining account for transfer hook

§

NoTransferHookProgram = 6_078

6078 - Remaining account was passed for transfer hook but there’s no hook program

§

ZeroFundedAmount = 6_079

6079 - Zero funded amount

§

InvalidSide = 6_080

6080 - Invalid side

§

InvalidResizeLength = 6_081

6081 - Invalid resize length

§

NotSupportAtTheMoment = 6_082

6082 - Not support at the moment

Trait Implementations§

Source§

impl Clone for LbClmmError

Source§

fn clone(&self) -> LbClmmError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LbClmmError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> DecodeError<T> for LbClmmError

Source§

fn type_of() -> &'static str

👎Deprecated since 2.3.0:

Use num_traits::FromPrimitive instead

Source§

fn decode_custom_error_to_enum(custom: u32) -> Option<E>
where E: FromPrimitive,

👎Deprecated since 2.3.0:

Use num_traits::FromPrimitive instead

Source§

impl Display for LbClmmError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for LbClmmError

Source§

impl Error for LbClmmError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl FromPrimitive for LbClmmError

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl PartialEq for LbClmmError

Source§

fn eq(&self, other: &LbClmmError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PrintProgramError for LbClmmError

Source§

fn print<E>(&self)

👎Deprecated since 2.2.2:

Use ToStr instead with solana_msg::msg! or any other logging

Source§

impl StructuralPartialEq for LbClmmError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.