Errors

Git Source

Author: Morpho Labs

Library exposing errors used in Morpho.

Errors

MarketNotCreated

Thrown when interacting with a market that is not created.

error MarketNotCreated();

MarketAlreadyCreated

Thrown when creating a market that is already created.

error MarketAlreadyCreated();

MarketIsNotListedOnAave

Thrown when creating a market that is not listed on Aave.

error MarketIsNotListedOnAave();

SiloedBorrowMarket

Thrown when the market is in a siloed borrowing mode.

error SiloedBorrowMarket();

MarketLtTooLow

Thrown when the market liquidation threshold is too low to be created.

error MarketLtTooLow();

AddressIsZero

Thrown when the address used is the zero address.

error AddressIsZero();

AmountIsZero

Thrown when the amount used is zero.

error AmountIsZero();

DebtIsZero

Thrown when the user's debt is zero.

error DebtIsZero();

SupplyIsZero

Thrown when the user's supply is zero.

error SupplyIsZero();

CollateralIsZero

Thrown when the user's collateral is zero.

error CollateralIsZero();

PermissionDenied

Thrown when the manager is not approved by the delegator.

error PermissionDenied();

SupplyIsPaused

Thrown when supply is paused for the asset.

error SupplyIsPaused();

SupplyCollateralIsPaused

Thrown when supply collateral is paused for the asset.

error SupplyCollateralIsPaused();

BorrowIsPaused

Thrown when borrow is paused for the asset.

error BorrowIsPaused();

RepayIsPaused

Thrown when repay is paused for the asset.

error RepayIsPaused();

WithdrawIsPaused

Thrown when withdraw is paused for the asset.

error WithdrawIsPaused();

WithdrawCollateralIsPaused

Thrown when withdraw collateral is paused for the asset.

error WithdrawCollateralIsPaused();

LiquidateCollateralIsPaused

Thrown when liquidate is paused for the collateral asset.

error LiquidateCollateralIsPaused();

LiquidateBorrowIsPaused

Thrown when liquidate is paused for the borrow asset

error LiquidateBorrowIsPaused();

ClaimRewardsPaused

Thrown when claim rewards is paused.

error ClaimRewardsPaused();

MarketIsDeprecated

Thrown when unpausing the borrow of a market that is deprecated.

error MarketIsDeprecated();

BorrowNotPaused

Thrown when deprecating a market that is not paused.

error BorrowNotPaused();

BorrowNotEnabled

Thrown when the market is not enabled on Aave.

error BorrowNotEnabled();

SentinelBorrowNotEnabled

Thrown when the oracle sentinel is set and disables borrowing.

error SentinelBorrowNotEnabled();

InconsistentEMode

Thrown when borrowing an asset that is not in Morpho's e-mode category.

error InconsistentEMode();

UnauthorizedBorrow

Thrown when a borrow would leave the user undercollateralized.

error UnauthorizedBorrow();

UnauthorizedWithdraw

Thrown when a withdraw would leave the user undercollateralized.

error UnauthorizedWithdraw();

UnauthorizedLiquidate

Thrown when the liquidatation is not authorized because of a collateralization ratio too high.

error UnauthorizedLiquidate();

SentinelLiquidateNotEnabled

Thrown when the oracle sentinel is set and disables liquidating.

error SentinelLiquidateNotEnabled();

AssetNotCollateralOnPool

Thrown when (un)setting a market as collateral on Morpho while it is not a collateral on Aave.

error AssetNotCollateralOnPool();

AssetNotCollateralOnMorpho

Thrown when supplying an asset as collateral while it is not a collateral on Morpho.

error AssetNotCollateralOnMorpho();

AssetIsCollateralOnMorpho

Thrown when (un)setting a market as collateral on Aave while it is a collateral on Morpho.

error AssetIsCollateralOnMorpho();

SetAsCollateralOnPoolButMarketNotCreated

Thrown when setting a market as collateral on Aave while the market is not created on Morpho.

error SetAsCollateralOnPoolButMarketNotCreated();

ExceedsMaxBasisPoints

Thrown when the value exceeds the maximum basis points value (100% = 10000).

error ExceedsMaxBasisPoints();

InvalidValueS

Thrown when the s part of the ECDSA signature is invalid.

error InvalidValueS();

InvalidValueV

Thrown when the v part of the ECDSA signature is invalid.

error InvalidValueV();

InvalidSignatory

Thrown when the signatory of the ECDSA signature is invalid.

error InvalidSignatory();

InvalidNonce

Thrown when the nonce is invalid.

error InvalidNonce();

SignatureExpired

Thrown when the signature is expired

error SignatureExpired();

ExceedsBorrowCap

Thrown when the borrow cap on Aave is exceeded.

error ExceedsBorrowCap();