pub enum PumpError {
Show 57 variants
NotAuthorized = 6_000,
AlreadyInitialized = 6_001,
TooMuchSolRequired = 6_002,
TooLittleSolReceived = 6_003,
MintDoesNotMatchBondingCurve = 6_004,
BondingCurveComplete = 6_005,
BondingCurveNotComplete = 6_006,
NotInitialized = 6_007,
WithdrawTooFrequent = 6_008,
NewSizeShouldBeGreaterThanCurrentSize = 6_009,
AccountTypeNotSupported = 6_010,
InitialRealTokenReservesShouldBeLessThanTokenTotalSupply = 6_011,
InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves = 6_012,
FeeBasisPointsGreaterThanMaximum = 6_013,
AllZerosWithdrawAuthority = 6_014,
PoolMigrationFeeShouldBeLessThanFinalRealSolReserves = 6_015,
PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees = 6_016,
DisabledWithdraw = 6_017,
DisabledMigrate = 6_018,
InvalidCreator = 6_019,
BuyZeroAmount = 6_020,
NotEnoughTokensToBuy = 6_021,
SellZeroAmount = 6_022,
NotEnoughTokensToSell = 6_023,
Overflow = 6_024,
Truncation = 6_025,
DivisionByZero = 6_026,
NotEnoughRemainingAccounts = 6_027,
AllFeeRecipientsShouldBeNonZero = 6_028,
UnsortedNotUniqueFeeRecipients = 6_029,
CreatorShouldNotBeZero = 6_030,
StartTimeInThePast = 6_031,
EndTimeInThePast = 6_032,
EndTimeBeforeStartTime = 6_033,
TimeRangeTooLarge = 6_034,
EndTimeBeforeCurrentDay = 6_035,
SupplyUpdateForFinishedRange = 6_036,
DayIndexAfterEndIndex = 6_037,
DayInActiveRange = 6_038,
InvalidIncentiveMint = 6_039,
BuyNotEnoughSolToCoverRent = 6_040,
BuyNotEnoughSolToCoverFees = 6_041,
BuySlippageBelowMinTokensOut = 6_042,
NameTooLong = 6_043,
SymbolTooLong = 6_044,
UriTooLong = 6_045,
CreateV2Disabled = 6_046,
CpitializeMayhemFailed = 6_047,
MayhemModeDisabled = 6_048,
CreatorMigratedToSharingConfig = 6_049,
UnableToDistributeCreatorVaultMigratedToSharingConfig = 6_050,
SharingConfigNotActive = 6_051,
UnableToDistributeCreatorFeesToExecutableRecipient = 6_052,
BondingCurveAndSharingConfigCreatorMismatch = 6_053,
ShareholdersAndRemainingAccountsMismatch = 6_054,
InvalidShareBps = 6_055,
CashbackNotEnabled = 6_056,
}Variants§
NotAuthorized = 6_000
AlreadyInitialized = 6_001
TooMuchSolRequired = 6_002
TooLittleSolReceived = 6_003
MintDoesNotMatchBondingCurve = 6_004
BondingCurveComplete = 6_005
BondingCurveNotComplete = 6_006
NotInitialized = 6_007
WithdrawTooFrequent = 6_008
NewSizeShouldBeGreaterThanCurrentSize = 6_009
AccountTypeNotSupported = 6_010
InitialRealTokenReservesShouldBeLessThanTokenTotalSupply = 6_011
InitialVirtualTokenReservesShouldBeGreaterThanInitialRealTokenReserves = 6_012
FeeBasisPointsGreaterThanMaximum = 6_013
AllZerosWithdrawAuthority = 6_014
PoolMigrationFeeShouldBeLessThanFinalRealSolReserves = 6_015
PoolMigrationFeeShouldBeGreaterThanCreatorFeePlusMaxMigrateFees = 6_016
DisabledWithdraw = 6_017
DisabledMigrate = 6_018
InvalidCreator = 6_019
BuyZeroAmount = 6_020
NotEnoughTokensToBuy = 6_021
SellZeroAmount = 6_022
NotEnoughTokensToSell = 6_023
Overflow = 6_024
Truncation = 6_025
DivisionByZero = 6_026
NotEnoughRemainingAccounts = 6_027
AllFeeRecipientsShouldBeNonZero = 6_028
UnsortedNotUniqueFeeRecipients = 6_029
CreatorShouldNotBeZero = 6_030
StartTimeInThePast = 6_031
EndTimeInThePast = 6_032
EndTimeBeforeStartTime = 6_033
TimeRangeTooLarge = 6_034
EndTimeBeforeCurrentDay = 6_035
SupplyUpdateForFinishedRange = 6_036
DayIndexAfterEndIndex = 6_037
DayInActiveRange = 6_038
InvalidIncentiveMint = 6_039
BuyNotEnoughSolToCoverRent = 6_040
BuyNotEnoughSolToCoverFees = 6_041
BuySlippageBelowMinTokensOut = 6_042
NameTooLong = 6_043
SymbolTooLong = 6_044
UriTooLong = 6_045
CreateV2Disabled = 6_046
CpitializeMayhemFailed = 6_047
MayhemModeDisabled = 6_048
CreatorMigratedToSharingConfig = 6_049
UnableToDistributeCreatorVaultMigratedToSharingConfig = 6_050
SharingConfigNotActive = 6_051
UnableToDistributeCreatorFeesToExecutableRecipient = 6_052
BondingCurveAndSharingConfigCreatorMismatch = 6_053
CashbackNotEnabled = 6_056
Trait Implementations§
Source§impl Error for PumpError
impl Error for PumpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<PumpError> for ProgramError
impl From<PumpError> for ProgramError
Source§impl FromPrimitive for PumpError
impl FromPrimitive for PumpError
Source§fn from_i64(n: i64) -> Option<Self>
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>
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>
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>
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>
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>
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>
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 moreSource§fn from_usize(n: usize) -> Option<Self>
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>
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>
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>
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>
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 moreimpl Eq for PumpError
impl StructuralPartialEq for PumpError
Auto Trait Implementations§
impl Freeze for PumpError
impl RefUnwindSafe for PumpError
impl Send for PumpError
impl Sync for PumpError
impl Unpin for PumpError
impl UnsafeUnpin for PumpError
impl UnwindSafe for PumpError
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