-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from morpho-labs/refactor/libraries
Various changes in libs
- Loading branch information
Showing
9 changed files
with
181 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
library ErrorsLib { | ||
string constant NOT_OWNER = "not owner"; | ||
string constant LLTV_TOO_HIGH = "LLTV too high"; | ||
string constant MAX_FEE_EXCEEDED = "MAX_FEE exceeded"; | ||
string constant IRM_NOT_ENABLED = "IRM not enabled"; | ||
string constant LLTV_NOT_ENABLED = "LLTV not enabled"; | ||
string constant MARKET_CREATED = "market created"; | ||
string constant MARKET_NOT_CREATED = "market not created"; | ||
string constant INCONSISTENT_INPUT = "inconsistent input"; | ||
string constant ZERO_AMOUNT = "zero amount"; | ||
string constant ZERO_ADDRESS = "zero address"; | ||
string constant UNAUTHORIZED = "unauthorized"; | ||
string constant INSUFFICIENT_COLLATERAL = "insufficient collateral"; | ||
string constant INSUFFICIENT_LIQUIDITY = "insufficient liquidity"; | ||
string constant HEALTHY_POSITION = "position is healthy"; | ||
string constant INVALID_SIGNATURE = "invalid signature"; | ||
string constant SIGNATURE_EXPIRED = "signature expired"; | ||
} |
Oops, something went wrong.