pub enum VaultError {
Show 63 variants
VaultSlashUnderflow = 1_000,
VaultInitialAmountFailed = 1001,
VaultInsufficientFunds = 1002,
VaultOverflow = 1003,
VaultOperatorAdminInvalid = 1004,
VaultAdminInvalid = 1005,
VaultCapacityAdminInvalid = 1006,
VaultMintBurnAdminInvalid = 1007,
VaultDelegationAdminInvalid = 1008,
VaultDelegateAssetAdminInvalid = 1009,
VaultCapacityExceeded = 1010,
VaultSlasherAdminInvalid = 1011,
VaultNcnAdminInvalid = 1012,
VaultFeeAdminInvalid = 1013,
ConfigAdminInvalid = 1014,
ConfigFeeAdminInvalid = 1015,
VaultFeeCapExceeded = 1016,
VaultFeeChangeTooSoon = 1017,
VaultFeeBumpTooLarge = 1018,
VaultUnderflow = 1019,
VaultUpdateNeeded = 1020,
VaultIsUpdated = 1021,
VaultOperatorDelegationUpdateNeeded = 1022,
VaultOperatorDelegationIsUpdated = 1023,
VaultUpdateIncorrectIndex = 1024,
VaultUpdateStateNotFinishedUpdating = 1025,
VaultSecurityOverflow = 1026,
VaultSlashIncomplete = 1027,
VaultSecurityUnderflow = 1028,
SlippageError = 1029,
VaultStakerWithdrawalTicketNotWithdrawable = 1030,
VaultNcnSlasherTicketFailedCooldown = 1031,
VaultNcnSlasherTicketFailedWarmup = 1032,
VaultNcnTicketFailedCooldown = 1033,
VaultNcnTicketFailedWarmup = 1034,
VaultNcnTicketUnslashable = 1035,
OperatorVaultTicketUnslashable = 1036,
NcnOperatorStateUnslashable = 1037,
VaultNcnSlasherTicketUnslashable = 1038,
NcnVaultTicketUnslashable = 1039,
NcnVaultSlasherTicketUnslashable = 1040,
VaultMaxSlashedPerOperatorExceeded = 1041,
VaultStakerWithdrawalTicketInvalidStaker = 1042,
SlasherOverflow = 1043,
NcnOverflow = 1044,
OperatorOverflow = 1045,
VaultDelegationZero = 1046,
VaultCooldownZero = 1047,
VaultBurnZero = 1048,
VaultEnqueueWithdrawalAmountZero = 1049,
VaultMintZero = 1050,
VaultIsPaused = 1051,
InvalidDepositor = 1052,
InvalidDepositTokenAccount = 1053,
NoSupportedMintBalanceChange = 1054,
InvalidEpochLength = 1055,
VaultRewardFeeDeltaTooLarge = 1056,
VaultRewardFeeIsZero = 1057,
VrtOutCannotBeZero = 1058,
NonZeroAdditionalAssetsNeededForWithdrawalAtEndOfUpdate = 1059,
ArithmeticOverflow = 3_000,
ArithmeticUnderflow = 3001,
DivisionByZero = 3002,
}Variants§
VaultSlashUnderflow = 1_000
VaultInitialAmountFailed = 1001
VaultInsufficientFunds = 1002
VaultOverflow = 1003
VaultOperatorAdminInvalid = 1004
VaultAdminInvalid = 1005
VaultCapacityAdminInvalid = 1006
VaultMintBurnAdminInvalid = 1007
VaultDelegationAdminInvalid = 1008
VaultDelegateAssetAdminInvalid = 1009
VaultCapacityExceeded = 1010
VaultSlasherAdminInvalid = 1011
VaultNcnAdminInvalid = 1012
VaultFeeAdminInvalid = 1013
ConfigAdminInvalid = 1014
ConfigFeeAdminInvalid = 1015
VaultFeeCapExceeded = 1016
VaultFeeChangeTooSoon = 1017
VaultFeeBumpTooLarge = 1018
VaultUnderflow = 1019
VaultUpdateNeeded = 1020
VaultIsUpdated = 1021
VaultOperatorDelegationUpdateNeeded = 1022
VaultOperatorDelegationIsUpdated = 1023
VaultUpdateIncorrectIndex = 1024
VaultUpdateStateNotFinishedUpdating = 1025
VaultSecurityOverflow = 1026
VaultSlashIncomplete = 1027
VaultSecurityUnderflow = 1028
SlippageError = 1029
VaultStakerWithdrawalTicketNotWithdrawable = 1030
VaultNcnSlasherTicketFailedCooldown = 1031
VaultNcnSlasherTicketFailedWarmup = 1032
VaultNcnTicketFailedCooldown = 1033
VaultNcnTicketFailedWarmup = 1034
VaultNcnTicketUnslashable = 1035
OperatorVaultTicketUnslashable = 1036
NcnOperatorStateUnslashable = 1037
VaultNcnSlasherTicketUnslashable = 1038
NcnVaultTicketUnslashable = 1039
NcnVaultSlasherTicketUnslashable = 1040
VaultMaxSlashedPerOperatorExceeded = 1041
VaultStakerWithdrawalTicketInvalidStaker = 1042
SlasherOverflow = 1043
NcnOverflow = 1044
OperatorOverflow = 1045
VaultDelegationZero = 1046
VaultCooldownZero = 1047
VaultBurnZero = 1048
VaultEnqueueWithdrawalAmountZero = 1049
VaultMintZero = 1050
VaultIsPaused = 1051
InvalidDepositor = 1052
InvalidDepositTokenAccount = 1053
NoSupportedMintBalanceChange = 1054
InvalidEpochLength = 1055
VaultRewardFeeDeltaTooLarge = 1056
VaultRewardFeeIsZero = 1057
VrtOutCannotBeZero = 1058
NonZeroAdditionalAssetsNeededForWithdrawalAtEndOfUpdate = 1059
ArithmeticOverflow = 3_000
ArithmeticUnderflow = 3001
DivisionByZero = 3002
Trait Implementations§
Source§impl Debug for VaultError
impl Debug for VaultError
Source§impl<T> DecodeError<T> for VaultError
impl<T> DecodeError<T> for VaultError
fn type_of() -> &'static str
fn decode_custom_error_to_enum(custom: u32) -> Option<E>where
E: FromPrimitive,
Source§impl Display for VaultError
impl Display for VaultError
Source§impl Error for VaultError
impl Error for VaultError
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<VaultError> for ProgramError
impl From<VaultError> for ProgramError
Source§fn from(e: VaultError) -> Self
fn from(e: VaultError) -> Self
Converts to this type from the input type.
Source§impl From<VaultError> for u32
impl From<VaultError> for u32
Source§fn from(e: VaultError) -> Self
fn from(e: VaultError) -> Self
Converts to this type from the input type.
Source§impl From<VaultError> for u64
impl From<VaultError> for u64
Source§fn from(e: VaultError) -> Self
fn from(e: VaultError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VaultError
impl PartialEq for VaultError
impl Eq for VaultError
impl StructuralPartialEq for VaultError
Auto Trait Implementations§
impl Freeze for VaultError
impl RefUnwindSafe for VaultError
impl Send for VaultError
impl Sync for VaultError
impl Unpin for VaultError
impl UnwindSafe for VaultError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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