From d309005502b645fa77f50f83fd05df3b2b25944e Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Mon, 7 Jun 2021 09:24:52 +0200 Subject: [PATCH] rename: renamed NOT_NULL Errors to NOT_ZERO --- contracts/protocol/libraries/helpers/Errors.sol | 6 +++--- contracts/protocol/libraries/logic/ValidationLogic.sol | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/protocol/libraries/helpers/Errors.sol b/contracts/protocol/libraries/helpers/Errors.sol index 1b984270..4b0644f5 100644 --- a/contracts/protocol/libraries/helpers/Errors.sol +++ b/contracts/protocol/libraries/helpers/Errors.sol @@ -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, diff --git a/contracts/protocol/libraries/logic/ValidationLogic.sol b/contracts/protocol/libraries/logic/ValidationLogic.sol index 4bea7a8d..d64c1cc2 100644 --- a/contracts/protocol/libraries/logic/ValidationLogic.sol +++ b/contracts/protocol/libraries/logic/ValidationLogic.sol @@ -476,14 +476,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 ); } }