#[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
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
LevercoinSupplyNotSet = 7040
DestinationCollateral = 7041
DestinationStablecoin = 7042
RequestedStablecoinOverMaxMintable = 7043
VirtualStablecoinOverhang = 7044
VirtualStablecoinSurplus = 7045
VirtualStablecoinBurnLimit = 7046
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§
Trait Implementations§
impl Copy for CoreError
impl Eq for CoreError
Source§impl Error for CoreError
impl Error for CoreError
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<ExponentMismatch> for CoreError
impl From<ExponentMismatch> for CoreError
Source§fn from(_: ExponentMismatch) -> CoreError
fn from(_: ExponentMismatch) -> CoreError
Converts to this type from the input type.
impl StructuralPartialEq for CoreError
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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