pub enum JitoVaultError {
Show 64 variants
BadEpochLength = 0,
VaultSlashUnderflow = 1_000,
VaultInitialAmountFailed = 1_001,
VaultInsufficientFunds = 1_002,
VaultOverflow = 1_003,
VaultOperatorAdminInvalid = 1_004,
VaultAdminInvalid = 1_005,
VaultCapacityAdminInvalid = 1_006,
VaultMintBurnAdminInvalid = 1_007,
VaultDelegationAdminInvalid = 1_008,
VaultDelegateAssetAdminInvalid = 1_009,
VaultCapacityExceeded = 1_010,
VaultSlasherAdminInvalid = 1_011,
VaultNcnAdminInvalid = 1_012,
VaultFeeAdminInvalid = 1_013,
ConfigAdminInvalid = 1_014,
ConfigFeeAdminInvalid = 1_015,
VaultFeeCapExceeded = 1_016,
VaultFeeChangeTooSoon = 1_017,
VaultFeeBumpTooLarge = 1_018,
VaultUnderflow = 1_019,
VaultUpdateNeeded = 1_020,
VaultIsUpdated = 1_021,
VaultOperatorDelegationUpdateNeeded = 1_022,
VaultOperatorDelegationIsUpdated = 1_023,
VaultUpdateIncorrectIndex = 1_024,
VaultUpdateStateNotFinishedUpdating = 1_025,
VaultSecurityOverflow = 1_026,
VaultSlashIncomplete = 1_027,
VaultSecurityUnderflow = 1_028,
SlippageError = 1_029,
VaultStakerWithdrawalTicketNotWithdrawable = 1_030,
VaultNcnSlasherTicketFailedCooldown = 1_031,
VaultNcnSlasherTicketFailedWarmup = 1_032,
VaultNcnTicketFailedCooldown = 1_033,
VaultNcnTicketFailedWarmup = 1_034,
VaultNcnTicketUnslashable = 1_035,
OperatorVaultTicketUnslashable = 1_036,
NcnOperatorStateUnslashable = 1_037,
VaultNcnSlasherTicketUnslashable = 1_038,
NcnVaultTicketUnslashable = 1_039,
NcnVaultSlasherTicketUnslashable = 1_040,
VaultMaxSlashedPerOperatorExceeded = 1_041,
VaultStakerWithdrawalTicketInvalidStaker = 1_042,
SlasherOverflow = 1_043,
NcnOverflow = 1_044,
OperatorOverflow = 1_045,
VaultDelegationZero = 1_046,
VaultCooldownZero = 1_047,
VaultBurnZero = 1_048,
VaultEnqueueWithdrawalAmountZero = 1_049,
VaultMintZero = 1_050,
VaultIsPaused = 1_051,
InvalidDepositor = 1_052,
InvalidDepositTokenAccount = 1_053,
NoSupportedMintBalanceChange = 1_054,
InvalidEpochLength = 1_055,
VaultRewardFeeDeltaTooLarge = 1_056,
VaultRewardFeeIsZero = 1_057,
VrtOutCannotBeZero = 1_058,
NonZeroAdditionalAssetsNeededForWithdrawalAtEndOfUpdate = 1_059,
ArithmeticOverflow = 3_000,
ArithmeticUnderflow = 3_001,
DivisionByZero = 3_002,
}Variants§
BadEpochLength = 0
0 - Bad epoch length
VaultSlashUnderflow = 1_000
1000 - VaultSlashUnderflow
VaultInitialAmountFailed = 1_001
1001 - VaultInitialAmountFailed
VaultInsufficientFunds = 1_002
1002 - VaultInsufficientFunds
VaultOverflow = 1_003
1003 - VaultOverflow
VaultOperatorAdminInvalid = 1_004
1004 - VaultOperatorAdminInvalid
VaultAdminInvalid = 1_005
1005 - VaultAdminInvalid
VaultCapacityAdminInvalid = 1_006
1006 - VaultCapacityAdminInvalid
VaultMintBurnAdminInvalid = 1_007
1007 - VaultMintBurnAdminInvalid
VaultDelegationAdminInvalid = 1_008
1008 - VaultDelegationAdminInvalid
VaultDelegateAssetAdminInvalid = 1_009
1009 - VaultDelegateAssetAdminInvalid
VaultCapacityExceeded = 1_010
1010 - VaultCapacityExceeded
VaultSlasherAdminInvalid = 1_011
1011 - VaultSlasherAdminInvalid
VaultNcnAdminInvalid = 1_012
1012 - VaultNcnAdminInvalid
VaultFeeAdminInvalid = 1_013
1013 - VaultFeeAdminInvalid
ConfigAdminInvalid = 1_014
1014 - ConfigAdminInvalid
ConfigFeeAdminInvalid = 1_015
1015 - ConfigFeeAdminInvalid
VaultFeeCapExceeded = 1_016
1016 - VaultFeeCapExceeded
VaultFeeChangeTooSoon = 1_017
1017 - VaultFeeChangeTooSoon
VaultFeeBumpTooLarge = 1_018
1018 - VaultFeeBumpTooLarge
VaultUnderflow = 1_019
1019 - VaultUnderflow
VaultUpdateNeeded = 1_020
1020 - VaultUpdateNeeded
VaultIsUpdated = 1_021
1021 - VaultIsUpdated
VaultOperatorDelegationUpdateNeeded = 1_022
1022 - VaultOperatorDelegationUpdateNeeded
VaultOperatorDelegationIsUpdated = 1_023
1023 - VaultOperatorDelegationIsUpdated
VaultUpdateIncorrectIndex = 1_024
1024 - VaultUpdateIncorrectIndex
VaultUpdateStateNotFinishedUpdating = 1_025
1025 - VaultUpdateStateNotFinishedUpdating
VaultSecurityOverflow = 1_026
1026 - VaultSecurityOverflow
VaultSlashIncomplete = 1_027
1027 - VaultSlashIncomplete
VaultSecurityUnderflow = 1_028
1028 - VaultSecurityUnderflow
SlippageError = 1_029
1029 - SlippageError
VaultStakerWithdrawalTicketNotWithdrawable = 1_030
1030 - VaultStakerWithdrawalTicketNotWithdrawable
VaultNcnSlasherTicketFailedCooldown = 1_031
1031 - VaultNcnSlasherTicketFailedCooldown
VaultNcnSlasherTicketFailedWarmup = 1_032
1032 - VaultNcnSlasherTicketFailedWarmup
VaultNcnTicketFailedCooldown = 1_033
1033 - VaultNcnTicketFailedCooldown
VaultNcnTicketFailedWarmup = 1_034
1034 - VaultNcnTicketFailedWarmup
VaultNcnTicketUnslashable = 1_035
1035 - VaultNcnTicketUnslashable
OperatorVaultTicketUnslashable = 1_036
1036 - OperatorVaultTicketUnslashable
NcnOperatorStateUnslashable = 1_037
1037 - NcnOperatorStateUnslashable
VaultNcnSlasherTicketUnslashable = 1_038
1038 - VaultNcnSlasherTicketUnslashable
NcnVaultTicketUnslashable = 1_039
1039 - NcnVaultTicketUnslashable
NcnVaultSlasherTicketUnslashable = 1_040
1040 - NcnVaultSlasherTicketUnslashable
VaultMaxSlashedPerOperatorExceeded = 1_041
1041 - VaultMaxSlashedPerOperatorExceeded
VaultStakerWithdrawalTicketInvalidStaker = 1_042
1042 - VaultStakerWithdrawalTicketInvalidStaker
SlasherOverflow = 1_043
1043 - SlasherOverflow
NcnOverflow = 1_044
1044 - NcnOverflow
OperatorOverflow = 1_045
1045 - OperatorOverflow
VaultDelegationZero = 1_046
1046 - VaultDelegationZero
VaultCooldownZero = 1_047
1047 - VaultCooldownZero
VaultBurnZero = 1_048
1048 - VaultBurnZero
VaultEnqueueWithdrawalAmountZero = 1_049
1049 - VaultEnqueueWithdrawalAmountZero
VaultMintZero = 1_050
1050 - VaultMintZero
VaultIsPaused = 1_051
1051 - VaultIsPaused
InvalidDepositor = 1_052
1052 - InvalidDepositor
InvalidDepositTokenAccount = 1_053
1053 - InvalidDepositTokenAccount
NoSupportedMintBalanceChange = 1_054
1054 - NoSupportedMintBalanceChange
InvalidEpochLength = 1_055
1055 - InvalidEpochLength
VaultRewardFeeDeltaTooLarge = 1_056
1056 - VaultRewardFeeDeltaTooLarge
VaultRewardFeeIsZero = 1_057
1057 - VaultRewardFeeIsZero
VrtOutCannotBeZero = 1_058
1058 - VrtOutCannotBeZero
NonZeroAdditionalAssetsNeededForWithdrawalAtEndOfUpdate = 1_059
1059 - NonZeroAdditionalAssetsNeededForWithdrawalAtEndOfUpdate
ArithmeticOverflow = 3_000
3000 - ArithmeticOverflow
ArithmeticUnderflow = 3_001
3001 - ArithmeticUnderflow
DivisionByZero = 3_002
3002 - DivisionByZero
Trait Implementations§
Source§impl Clone for JitoVaultError
impl Clone for JitoVaultError
Source§fn clone(&self) -> JitoVaultError
fn clone(&self) -> JitoVaultError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JitoVaultError
impl Debug for JitoVaultError
Source§impl Display for JitoVaultError
impl Display for JitoVaultError
Source§impl Error for JitoVaultError
impl Error for JitoVaultError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl FromPrimitive for JitoVaultError
impl FromPrimitive for JitoVaultError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more