mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
rename: renamed NOT_NULL Errors to NOT_ZERO
This commit is contained in:
parent
d0841097e6
commit
68b7384146
|
@ -109,9 +109,9 @@ library Errors {
|
||||||
string public constant LPC_CALLER_NOT_EMERGENCY_OR_POOL_ADMIN = '85';
|
string public constant LPC_CALLER_NOT_EMERGENCY_OR_POOL_ADMIN = '85';
|
||||||
string public constant VL_RESERVE_PAUSED = '86';
|
string public constant VL_RESERVE_PAUSED = '86';
|
||||||
string public constant LPC_CALLER_NOT_RISK_OR_POOL_ADMIN = '87';
|
string public constant LPC_CALLER_NOT_RISK_OR_POOL_ADMIN = '87';
|
||||||
string public constant RL_ATOKEN_SUPPLY_NOT_NULL = '88';
|
string public constant RL_ATOKEN_SUPPLY_NOT_ZERO = '88';
|
||||||
string public constant RL_STABLE_DEBT_NOT_NULL = '89';
|
string public constant RL_STABLE_DEBT_NOT_ZERO = '89';
|
||||||
string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_NULL = '90';
|
string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90';
|
||||||
|
|
||||||
enum CollateralManagerErrors {
|
enum CollateralManagerErrors {
|
||||||
NO_ERROR,
|
NO_ERROR,
|
||||||
|
|
|
@ -483,14 +483,14 @@ library ValidationLogic {
|
||||||
* @param reserve The reserve object
|
* @param reserve The reserve object
|
||||||
**/
|
**/
|
||||||
function validateDropReserve(DataTypes.ReserveData storage reserve) external view {
|
function validateDropReserve(DataTypes.ReserveData storage reserve) external view {
|
||||||
require(IERC20(reserve.aTokenAddress).totalSupply() == 0, Errors.RL_ATOKEN_SUPPLY_NOT_NULL);
|
require(IERC20(reserve.aTokenAddress).totalSupply() == 0, Errors.RL_ATOKEN_SUPPLY_NOT_ZERO);
|
||||||
require(
|
require(
|
||||||
IERC20(reserve.stableDebtTokenAddress).totalSupply() == 0,
|
IERC20(reserve.stableDebtTokenAddress).totalSupply() == 0,
|
||||||
Errors.RL_STABLE_DEBT_NOT_NULL
|
Errors.RL_STABLE_DEBT_NOT_ZERO
|
||||||
);
|
);
|
||||||
require(
|
require(
|
||||||
IERC20(reserve.variableDebtTokenAddress).totalSupply() == 0,
|
IERC20(reserve.variableDebtTokenAddress).totalSupply() == 0,
|
||||||
Errors.RL_VARIABLE_DEBT_SUPPLY_NOT_NULL
|
Errors.RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user