-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathErrorReporter.sol
More file actions
54 lines (39 loc) · 1.5 KB
/
ErrorReporter.sol
File metadata and controls
54 lines (39 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.8.25;
/**
* @title TokenErrorReporter
* @author Venus
* @notice Errors that can be thrown by the `VToken` contract.
*/
contract TokenErrorReporter {
uint256 public constant NO_ERROR = 0; // support legacy return codes
error TransferNotAllowed();
error MintFreshnessCheck();
error RedeemFreshnessCheck();
error RedeemTransferOutNotPossible();
error BorrowFreshnessCheck();
error BorrowCashNotAvailable();
error DelegateNotApproved();
error RepayBorrowFreshnessCheck();
error HealBorrowUnauthorized();
error ForceLiquidateBorrowUnauthorized();
error LiquidateFreshnessCheck();
error LiquidateCollateralFreshnessCheck();
error LiquidateAccrueCollateralInterestFailed(uint256 errorCode);
error LiquidateLiquidatorIsBorrower();
error LiquidateCloseAmountIsZero();
error LiquidateCloseAmountIsUintMax();
error LiquidateSeizeLiquidatorIsBorrower();
error ProtocolSeizeShareTooBig();
error SetReserveFactorFreshCheck();
error SetReserveFactorBoundsCheck();
error AddReservesFactorFreshCheck(uint256 actualAddAmount);
error ReduceReservesFreshCheck();
error ReduceReservesCashNotAvailable();
error ReduceReservesCashValidation();
error SetInterestRateModelFreshCheck();
error FlashLoanNotEnabled(address);
error ExecuteFlashLoanFailed();
error InvalidComptroller(address comptroller);
error InsufficientReypaymentBalance(address tokenAddress);
}