IMarketErrors.sol
IMarketErrors
OnlyAccessableByDao
error OnlyAccessableByDao()
Throws an error indicating that the caller is not the DAO.
OnlyAccessableByFactoryOrDao
error OnlyAccessableByFactoryOrDao()
Throws an error indicating that the caller is nether the chormatic factory contract nor the DAO.
OnlyAccessableByLiquidator
error OnlyAccessableByLiquidator()
Throws an error indicating that the caller is not the chromatic liquidator contract.
OnlyAccessableByVault
error OnlyAccessableByVault()
Throws an error indicating that the caller is not the chromatch vault contract.
TooSmallAmount
error TooSmallAmount()
Throws an error indicating that the amount of liquidity is too small. This error is thrown when attempting to remove liquidity with an amount of zero.
NotExistLpReceipt
error NotExistLpReceipt()
Throws an error indicating that the specified liquidity receipt does not exist.
NotClaimableLpReceipt
error NotClaimableLpReceipt()
Throws an error indicating that the liquidity receipt is not claimable.
NotWithdrawableLpReceipt
error NotWithdrawableLpReceipt()
Throws an error indicating that the liquidity receipt is not withdrawable.
InvalidLpReceiptAction
error InvalidLpReceiptAction()
Throws an error indicating that the liquidity receipt action is invalid.
InvalidTransferredTokenAmount
error InvalidTransferredTokenAmount()
Throws an error indicating that the transferred token amount is invalid. This error is thrown when the transferred token amount does not match the expected amount.
DuplicatedTradingFeeRate
error DuplicatedTradingFeeRate()
AddLiquidityDisabled
error AddLiquidityDisabled()
RemoveLiquidityDisabled
error RemoveLiquidityDisabled()
TooSmallTakerMargin
error TooSmallTakerMargin()
Throws an error indicating that the taker margin provided is smaller than the minimum required margin for the specific settlement token. The minimum required margin is determined by the DAO and represents the minimum amount required for operations such as liquidation and payment of keeper fees.
NotEnoughMarginTransferred
error NotEnoughMarginTransferred()
Throws an error indicating that the margin settlement token balance does not increase by the required margin amount after the callback.
NotPermitted
error NotPermitted()
Throws an error indicating that the caller is not permitted to perform the action as they are not the owner of the position.
ExceedMaxAllowableTradingFee
error ExceedMaxAllowableTradingFee()
Throws an error indicating that the total trading fee (including protocol fee) exceeds the maximum allowable trading fee.
ExceedMaxAllowableLeverage
error ExceedMaxAllowableLeverage()
Throws an error indicating thatwhen the specified leverage exceeds the maximum allowable leverage level set by the Oracle Provider. Each Oracle Provider has a specific maximum allowable leverage level, which is determined by the DAO. The default maximum allowable leverage level is 0, which corresponds to a leverage of up to 10x.
NotAllowableMakerMargin
error NotAllowableMakerMargin()
Throws an error indicating that the maker margin value is not within the allowable range based on the absolute quantity and the specified minimum/maximum take-profit basis points (BPS). The maker margin must fall within the range calculated based on the absolute quantity of the position and the specified minimum/maximum take-profit basis points (BPS) set by the Oracle Provider. The default range for the minimum/maximum take-profit basis points is 10% to 1000%.
NotExistPosition
error NotExistPosition()
Throws an error indicating that the requested position does not exist.
ClaimPositionCallbackError
error ClaimPositionCallbackError()
Throws an error indicating that an error occurred during the claim position callback.
AlreadyClosedPosition
error AlreadyClosedPosition()
Throws an error indicating that the position has already been closed.
NotClaimablePosition
error NotClaimablePosition()
Throws an error indicating that the position is not claimable.
OpenPositionDisabled
error OpenPositionDisabled()
ClosePositionDisabled
error ClosePositionDisabled()