HedgerPoolErrorLibrary
Author: Quantillon Labs - Nicolas Bellengé - @chewbaccoin
HedgerPool-specific errors for Quantillon Protocol
Main characteristics:
- Errors specific to HedgerPool operations
- Trading position management errors
- Liquidation system errors
- Margin and leverage validation errors
Note: security-contact: team@quantillon.money
Errors
FlashLoanAttackDetected
error FlashLoanAttackDetected();
NotWhitelisted
error NotWhitelisted();
PendingLiquidationCommitment
error PendingLiquidationCommitment();
InvalidPosition
error InvalidPosition();
PositionNotLiquidatable
error PositionNotLiquidatable();
YieldClaimFailed
error YieldClaimFailed();
InvalidHedger
error InvalidHedger();
TooManyPositions
error TooManyPositions();
MaxPositionsPerTx
error MaxPositionsPerTx();
NotPaused
error NotPaused();
ZeroAddress
error ZeroAddress();
InvalidAmount
error InvalidAmount();
ConfigValueTooLow
error ConfigValueTooLow();
ConfigInvalid
error ConfigInvalid();
ConfigValueTooHigh
error ConfigValueTooHigh();
AlreadyWhitelisted
error AlreadyWhitelisted();
InvalidOraclePrice
error InvalidOraclePrice();
InvalidAddress
error InvalidAddress();
NotAuthorized
error NotAuthorized();
RewardOverflow
error RewardOverflow();
InsufficientMargin
error InsufficientMargin();
CannotRecoverOwnToken
error CannotRecoverOwnToken();
NoETHToRecover
error NoETHToRecover();
MarginExceedsMaximum
error MarginExceedsMaximum();
PositionSizeExceedsMaximum
error PositionSizeExceedsMaximum();
EntryPriceExceedsMaximum
error EntryPriceExceedsMaximum();
LeverageExceedsMaximum
error LeverageExceedsMaximum();
TimestampOverflow
error TimestampOverflow();
TotalMarginExceedsMaximum
error TotalMarginExceedsMaximum();
TotalExposureExceedsMaximum
error TotalExposureExceedsMaximum();
NewMarginExceedsMaximum
error NewMarginExceedsMaximum();
PendingRewardsExceedMaximum
error PendingRewardsExceedMaximum();
InvalidLeverage
error InvalidLeverage();
LeverageTooHigh
error LeverageTooHigh();
LeverageTooLow
error LeverageTooLow();
MaxLeverageExceeded
error MaxLeverageExceeded();
MarginTooLow
error MarginTooLow();
MarginRatioTooLow
error MarginRatioTooLow();
MarginRatioTooHigh
error MarginRatioTooHigh();
MarginInsufficient
error MarginInsufficient();
MarginLimitExceeded
error MarginLimitExceeded();
PositionNotFound
error PositionNotFound();
PositionOwnerMismatch
error PositionOwnerMismatch();
PositionAlreadyClosed
error PositionAlreadyClosed();
PositionClosureRestricted
error PositionClosureRestricted();
PositionNotActive
error PositionNotActive();
LiquidationNotAllowed
error LiquidationNotAllowed();
LiquidationRewardTooHigh
error LiquidationRewardTooHigh();
LiquidationPenaltyTooHigh
error LiquidationPenaltyTooHigh();
LiquidationThresholdInvalid
error LiquidationThresholdInvalid();
LiquidationCooldown
error LiquidationCooldown();
NoValidCommitment
error NoValidCommitment();
CommitmentAlreadyExists
error CommitmentAlreadyExists();
CommitmentDoesNotExist
error CommitmentDoesNotExist();
FeeTooHigh
error FeeTooHigh();
EntryFeeTooHigh
error EntryFeeTooHigh();
ExitFeeTooHigh
error ExitFeeTooHigh();
MarginFeeTooHigh
error MarginFeeTooHigh();
YieldFeeTooHigh
error YieldFeeTooHigh();
YieldBelowThreshold
error YieldBelowThreshold();
YieldNotAvailable
error YieldNotAvailable();
YieldDistributionFailed
error YieldDistributionFailed();
YieldCalculationError
error YieldCalculationError();
InsufficientYield
error InsufficientYield();
HoldingPeriodNotMet
error HoldingPeriodNotMet();