-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(errors): aave + compound update
- Loading branch information
1 parent
fe64e5c
commit fe0d3e2
Showing
4 changed files
with
74 additions
and
41 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 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 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 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,25 @@ | ||
// SPDX-License-Identifier: GNU AGPLv3 | ||
pragma solidity 0.8.7; | ||
|
||
library Errors { | ||
string public constant MM_MARKET_NOT_CREATED = "0"; | ||
string public constant MM_POSITIONS_MANAGER_SET = "1"; | ||
string public constant MM_MARKET_ALREADY_CREATED = "2"; | ||
string public constant MM_MARKET_CREATED_FAIL_ON_COMP = "3"; | ||
string public constant PM_MARKET_NOT_CREATED = "4"; | ||
string public constant PM_AMOUNT_NOT_ABOVE_THRESHOLD = "5"; | ||
string public constant PM_ONLY_MARKETS_MANAGER = "6"; | ||
string public constant PM_AMOUNT_IS_0 = "7"; | ||
string public constant PM_DEBT_VALUE_NOT_ABOVE_MAX = "8"; | ||
string public constant PM_AMOUNT_ABOVE_ALLOWED_TO_REPAY = "9"; | ||
string public constant PM_TO_SEIZE_ABOVE_COLLATERAL = "10"; | ||
string public constant PM_REMAINING_TO_UNMATCH_IS_NOT_0 = "11"; | ||
string public constant PM_DEBT_VALUE_ABOVE_MAX = "12"; | ||
string public constant PM_DELEGATECALL_BORROWER_UPDATE_NOT_SUCCESS = "13"; | ||
string public constant PM_DELEGATECALL_SUPPLIER_UPDATE_NOT_SUCCESS = "14"; | ||
string public constant PM_BORROW_ON_COMP_FAIL = "15"; | ||
string public constant PM_MINT_ON_COMP_FAIL = "16"; | ||
string public constant PM_REDEEM_ON_COMP_FAIL = "17"; | ||
string public constant PM_REPAY_ON_COMP_FAIL = "18"; | ||
string public constant PM_ORACLE_FAIL = "19"; | ||
} |