Skip to main content

CoreError

Enum CoreError 

Source
#[repr(u32)]
pub enum CoreError {
Show 122 variants TotalSolCacheDecrement = 7_000, TotalSolCacheIncrement = 7001, TotalSolCacheOverflow = 7002, TotalSolCacheUnderflow = 7003, TotalSolCacheOutdated = 7004, LstSolPriceDelta = 7005, LstSolPriceEpochOrder = 7006, LstSolPriceOutdated = 7007, LstSolPriceConversion = 7008, SolLstPriceConversion = 7009, LstLstPriceConversion = 7010, PythOracleConfidence = 7011, PythOracleExponent = 7012, PythOracleNegativePrice = 7013, PythOracleNegativeTime = 7014, PythOracleOutdated = 7015, PythOraclePriceRange = 7016, PythOracleSlotInvalid = 7017, PythOracleVerificationLevel = 7018, CollateralRatioOverflow = 7019, MaxMintable = 7020, MaxSwappable = 7021, StablecoinNav = 7022, TargetCollateralRatioTooLow = 7023, TotalValueLocked = 7024, SlippageArithmetic = 7025, SlippageExceeded = 7026, LeverToStable = 7027, StableToLever = 7028, LstToToken = 7029, TokenToLst = 7030, LstToUsd = 7031, FeeExtraction = 7032, NoValidLevercoinMintFee = 7033, NoValidLevercoinRedeemFee = 7034, NoValidStablecoinMintFee = 7035, NoValidStablecoinRedeemFee = 7036, NoValidSwapFee = 7037, InvalidFees = 7038, LevercoinNav = 7039, LevercoinSupplyNotSet = 7040, DestinationCollateral = 7041, DestinationStablecoin = 7042, RequestedStablecoinOverMaxMintable = 7043, VirtualStablecoinOverhang = 7044, VirtualStablecoinSurplus = 7045, VirtualStablecoinBurnLimit = 7046, LpTokenNav = 7047, LpTokenOut = 7048, TokenWithdraw = 7049, YieldHarvestConfigValidation = 7050, YieldHarvestMultiplier = 7051, MintOverflow = 7052, BurnUnderflow = 7053, InterpInsufficientPoints = 7054, InterpPointsNotMonotonic = 7055, InterpOutOfDomain = 7056, InterpArithmetic = 7057, MarginalRateInvalid = 7058, CollateralRatioConversion = 7059, InterpFeeConversion = 7060, BorrowRateValidation = 7061, BorrowRateApply = 7062, ExoToToken = 7063, ExoFromToken = 7064, ExoToUsd = 7065, ExoAmountNormalization = 7066, ExoCollateralToUsdc = 7067, ExoUsdcToCollateral = 7068, LstToUsdc = 7069, UsdcToLst = 7070, RebalanceCurveConfigValidation = 7071, RebalancePriceConstruction = 7072, RebalancePriceConversion = 7073, RebalanceOutOfDomain = 7074, RebalanceAmountExceeded = 7075, RebalancePercentArithmetic = 7076, RebalanceSellSideLiquidity = 7077, RebalanceBuySideTarget = 7078, RebalanceSwapPnl = 7079, StakePoolDivByZero = 7080, OracleIntervalSecsInvalid = 7081, OracleConfToleranceInvalid = 7082, RangeUnexpectedBound = 7083, StablecoinMintThresholdInvalid = 7084, ReserveGateInvalid = 7085, LevercoinMarketCapLimitInvalid = 7086, LevercoinMarketCapLimitReached = 7087, LevercoinMarketCapArithmetic = 7088, DepositLimitArithmetic = 7089, DepositLimitExceeded = 7090, DepositLimitValidation = 7091, WithdrawalLimitArithmetic = 7092, WithdrawalLimitExceededForEpoch = 7093, WithdrawalLimitInvalidEpoch = 7094, WithdrawalLimitValidation = 7095, FixValueConversion = 7096, StakePoolAccountData = 7097, OperationDisabled = 7098, TokenAmountPrecision = 7099, UnknownLstMint = 7100, InsufficientLiquidity = 7101, ProtocolPaused = 7102, PairPaused = 7103, YieldHarvestNotRun = 7104, BorrowRateHarvestNotRun = 7105, DrawdownNotRepaid = 7106, LevercoinMarketCapExceeded = 7107, ZeroAmount = 7108, ProtocolAccountNotFound = 7109, RebalanceBuyTargetExceeded = 7110, InsufficientEarnPoolLiquidity = 7111, MinInputOverflow = 7112, UnknownExoMint = 7113, InvalidParTolerance = 7114, ParToleranceExceeded = 7115, MaxRedeemable = 7116, MinInputExceedsMax = 7117, NoRedemptionLane = 7118, RedemptionRateOverflow = 7119, UsdcReserveBelowMinimum = 7120, UnroutablePair = 7121,
}

Variants§

§

TotalSolCacheDecrement = 7_000

§

TotalSolCacheIncrement = 7001

§

TotalSolCacheOverflow = 7002

§

TotalSolCacheUnderflow = 7003

§

TotalSolCacheOutdated = 7004

§

LstSolPriceDelta = 7005

§

LstSolPriceEpochOrder = 7006

§

LstSolPriceOutdated = 7007

§

LstSolPriceConversion = 7008

§

SolLstPriceConversion = 7009

§

LstLstPriceConversion = 7010

§

PythOracleConfidence = 7011

§

PythOracleExponent = 7012

§

PythOracleNegativePrice = 7013

§

PythOracleNegativeTime = 7014

§

PythOracleOutdated = 7015

§

PythOraclePriceRange = 7016

§

PythOracleSlotInvalid = 7017

§

PythOracleVerificationLevel = 7018

§

CollateralRatioOverflow = 7019

§

MaxMintable = 7020

§

MaxSwappable = 7021

§

StablecoinNav = 7022

§

TargetCollateralRatioTooLow = 7023

§

TotalValueLocked = 7024

§

SlippageArithmetic = 7025

§

SlippageExceeded = 7026

§

LeverToStable = 7027

§

StableToLever = 7028

§

LstToToken = 7029

§

TokenToLst = 7030

§

LstToUsd = 7031

§

FeeExtraction = 7032

§

NoValidLevercoinMintFee = 7033

§

NoValidLevercoinRedeemFee = 7034

§

NoValidStablecoinMintFee = 7035

§

NoValidStablecoinRedeemFee = 7036

§

NoValidSwapFee = 7037

§

InvalidFees = 7038

§

LevercoinNav = 7039

§

LevercoinSupplyNotSet = 7040

§

DestinationCollateral = 7041

§

DestinationStablecoin = 7042

§

RequestedStablecoinOverMaxMintable = 7043

§

VirtualStablecoinOverhang = 7044

§

VirtualStablecoinSurplus = 7045

§

VirtualStablecoinBurnLimit = 7046

§

LpTokenNav = 7047

§

LpTokenOut = 7048

§

TokenWithdraw = 7049

§

YieldHarvestConfigValidation = 7050

§

YieldHarvestMultiplier = 7051

§

MintOverflow = 7052

§

BurnUnderflow = 7053

§

InterpInsufficientPoints = 7054

§

InterpPointsNotMonotonic = 7055

§

InterpOutOfDomain = 7056

§

InterpArithmetic = 7057

§

MarginalRateInvalid = 7058

§

CollateralRatioConversion = 7059

§

InterpFeeConversion = 7060

§

BorrowRateValidation = 7061

§

BorrowRateApply = 7062

§

ExoToToken = 7063

§

ExoFromToken = 7064

§

ExoToUsd = 7065

§

ExoAmountNormalization = 7066

§

ExoCollateralToUsdc = 7067

§

ExoUsdcToCollateral = 7068

§

LstToUsdc = 7069

§

UsdcToLst = 7070

§

RebalanceCurveConfigValidation = 7071

§

RebalancePriceConstruction = 7072

§

RebalancePriceConversion = 7073

§

RebalanceOutOfDomain = 7074

§

RebalanceAmountExceeded = 7075

§

RebalancePercentArithmetic = 7076

§

RebalanceSellSideLiquidity = 7077

§

RebalanceBuySideTarget = 7078

§

RebalanceSwapPnl = 7079

§

StakePoolDivByZero = 7080

§

OracleIntervalSecsInvalid = 7081

§

OracleConfToleranceInvalid = 7082

§

RangeUnexpectedBound = 7083

§

StablecoinMintThresholdInvalid = 7084

§

ReserveGateInvalid = 7085

§

LevercoinMarketCapLimitInvalid = 7086

§

LevercoinMarketCapLimitReached = 7087

§

LevercoinMarketCapArithmetic = 7088

§

DepositLimitArithmetic = 7089

§

DepositLimitExceeded = 7090

§

DepositLimitValidation = 7091

§

WithdrawalLimitArithmetic = 7092

§

WithdrawalLimitExceededForEpoch = 7093

§

WithdrawalLimitInvalidEpoch = 7094

§

WithdrawalLimitValidation = 7095

§

FixValueConversion = 7096

§

StakePoolAccountData = 7097

§

OperationDisabled = 7098

§

TokenAmountPrecision = 7099

§

UnknownLstMint = 7100

§

InsufficientLiquidity = 7101

§

ProtocolPaused = 7102

§

PairPaused = 7103

§

YieldHarvestNotRun = 7104

§

BorrowRateHarvestNotRun = 7105

§

DrawdownNotRepaid = 7106

§

LevercoinMarketCapExceeded = 7107

§

ZeroAmount = 7108

§

ProtocolAccountNotFound = 7109

§

RebalanceBuyTargetExceeded = 7110

§

InsufficientEarnPoolLiquidity = 7111

§

MinInputOverflow = 7112

§

UnknownExoMint = 7113

§

InvalidParTolerance = 7114

§

ParToleranceExceeded = 7115

§

MaxRedeemable = 7116

§

MinInputExceedsMax = 7117

§

NoRedemptionLane = 7118

§

RedemptionRateOverflow = 7119

§

UsdcReserveBelowMinimum = 7120

§

UnroutablePair = 7121

Implementations§

Source§

impl CoreError

Source

pub fn name(&self) -> String

Gets the name of this [#enum_name].

Trait Implementations§

Source§

impl Clone for CoreError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for CoreError

Source§

impl Debug for CoreError

Source§

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

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

impl Display for CoreError

Source§

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

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

impl Eq for CoreError

Source§

impl Error for CoreError

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 From<CoreError> for u32

Source§

fn from(e: CoreError) -> u32

Converts to this type from the input type.
Source§

impl From<CoreError> for Error

Source§

fn from(error_code: CoreError) -> Error

Converts to this type from the input type.
Source§

impl From<ExponentMismatch> for CoreError

Source§

fn from(_: ExponentMismatch) -> CoreError

Converts to this type from the input type.
Source§

impl PartialEq for CoreError

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CoreError

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

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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