JitoVaultError

Enum JitoVaultError 

Source
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

Source§

fn clone(&self) -> JitoVaultError

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for JitoVaultError

Source§

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

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

impl Display for JitoVaultError

Source§

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

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

impl Error for JitoVaultError

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 JitoVaultError

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 JitoVaultError

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 JitoVaultError

Source§

fn print<E>(&self)

Source§

impl Eq for JitoVaultError

Source§

impl StructuralPartialEq for JitoVaultError

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> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V