#[repr(u32)]pub enum LBError {
Show 49 variants
InvalidStartBinIndex = 0,
InvalidBinId = 1,
InvalidInput = 2,
ExceededAmountSlippageTolerance = 3,
ExceededBinSlippageTolerance = 4,
CompositionFactorFlawed = 5,
NonPresetBinStep = 6,
ZeroLiquidity = 7,
InvalidPosition = 8,
BinArrayNotFound = 9,
InvalidTokenMint = 10,
InvalidAccountForSingleDeposit = 11,
PairInsufficientLiquidity = 12,
InvalidFeeOwner = 13,
InvalidFeeWithdrawAmount = 14,
InvalidAdmin = 15,
IdenticalFeeOwner = 16,
InvalidBps = 17,
MathOverflow = 18,
TypeCastFailed = 19,
InvalidRewardIndex = 20,
InvalidRewardDuration = 21,
RewardInitialized = 22,
RewardUninitialized = 23,
IdenticalFunder = 24,
RewardCampaignInProgress = 25,
IdenticalRewardDuration = 26,
InvalidBinArray = 27,
NonContinuousBinArrays = 28,
InvalidRewardVault = 29,
NonEmptyPosition = 30,
UnauthorizedAlphaAccess = 31,
InvalidFeeParameter = 32,
MissingOracle = 33,
InsufficientSample = 34,
InvalidLookupTimestamp = 35,
BitmapExtensionAccountIsNotProvided = 36,
CannotFindNonZeroLiquidityBinArrayId = 37,
BinIdOutOfBound = 38,
InsufficientOutAmount = 39,
InvalidPositionWidth = 40,
ExcessiveFeeUpdate = 41,
PoolDisabled = 42,
InvalidPoolType = 43,
ExceedMaxWhitelist = 44,
InvalidIndex = 45,
RewardNotEnded = 46,
MustWithdrawnIneligibleReward = 47,
InvalidStrategyParameters = 48,
}Variants§
InvalidStartBinIndex = 0
InvalidBinId = 1
InvalidInput = 2
ExceededAmountSlippageTolerance = 3
ExceededBinSlippageTolerance = 4
CompositionFactorFlawed = 5
NonPresetBinStep = 6
ZeroLiquidity = 7
InvalidPosition = 8
BinArrayNotFound = 9
InvalidTokenMint = 10
InvalidAccountForSingleDeposit = 11
PairInsufficientLiquidity = 12
InvalidFeeOwner = 13
InvalidFeeWithdrawAmount = 14
InvalidAdmin = 15
IdenticalFeeOwner = 16
InvalidBps = 17
MathOverflow = 18
TypeCastFailed = 19
InvalidRewardIndex = 20
InvalidRewardDuration = 21
RewardInitialized = 22
RewardUninitialized = 23
IdenticalFunder = 24
RewardCampaignInProgress = 25
IdenticalRewardDuration = 26
InvalidBinArray = 27
NonContinuousBinArrays = 28
InvalidRewardVault = 29
NonEmptyPosition = 30
InvalidFeeParameter = 32
MissingOracle = 33
InsufficientSample = 34
InvalidLookupTimestamp = 35
BitmapExtensionAccountIsNotProvided = 36
CannotFindNonZeroLiquidityBinArrayId = 37
BinIdOutOfBound = 38
InsufficientOutAmount = 39
InvalidPositionWidth = 40
ExcessiveFeeUpdate = 41
PoolDisabled = 42
InvalidPoolType = 43
ExceedMaxWhitelist = 44
InvalidIndex = 45
RewardNotEnded = 46
MustWithdrawnIneligibleReward = 47
InvalidStrategyParameters = 48
Implementations§
Trait Implementations§
impl Copy for LBError
impl StructuralPartialEq for LBError
Auto Trait Implementations§
impl Freeze for LBError
impl RefUnwindSafe for LBError
impl Send for LBError
impl Sync for LBError
impl Unpin for LBError
impl UnwindSafe for LBError
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
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