rename: renamed NOT_NULL Errors to NOT_ZERO

This commit is contained in:
Hadrien Charlanes 2021-06-07 09:24:52 +02:00
parent d0841097e6
commit 68b7384146
2 changed files with 6 additions and 6 deletions

View File

@ -109,9 +109,9 @@ library Errors {
string public constant LPC_CALLER_NOT_EMERGENCY_OR_POOL_ADMIN = '85';
string public constant VL_RESERVE_PAUSED = '86';
string public constant LPC_CALLER_NOT_RISK_OR_POOL_ADMIN = '87';
string public constant RL_ATOKEN_SUPPLY_NOT_NULL = '88';
string public constant RL_STABLE_DEBT_NOT_NULL = '89';
string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_NULL = '90';
string public constant RL_ATOKEN_SUPPLY_NOT_ZERO = '88';
string public constant RL_STABLE_DEBT_NOT_ZERO = '89';
string public constant RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO = '90';
enum CollateralManagerErrors {
NO_ERROR,

View File

@ -483,14 +483,14 @@ library ValidationLogic {
* @param reserve The reserve object
**/
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(
IERC20(reserve.stableDebtTokenAddress).totalSupply() == 0,
Errors.RL_STABLE_DEBT_NOT_NULL
Errors.RL_STABLE_DEBT_NOT_ZERO
);
require(
IERC20(reserve.variableDebtTokenAddress).totalSupply() == 0,
Errors.RL_VARIABLE_DEBT_SUPPLY_NOT_NULL
Errors.RL_VARIABLE_DEBT_SUPPLY_NOT_ZERO
);
}
}