diff --git a/contracts/libraries/ReserveConfiguration.sol b/contracts/libraries/ReserveConfiguration.sol index 5f058dca..1855a859 100644 --- a/contracts/libraries/ReserveConfiguration.sol +++ b/contracts/libraries/ReserveConfiguration.sol @@ -83,7 +83,7 @@ library ReserveConfiguration { /** * @dev sets the liquidation bonus of the reserve * @param _self the reserve configuration - * @param _ltv the new liquidation bonus + * @param _bonus the new liquidation bonus **/ function setLiquidationBonus(ReserveConfiguration.Map memory _self, uint256 _bonus) internal { _self.data = (_self.data & LIQUIDATION_BONUS_MASK) | (_bonus << 32); diff --git a/contracts/libraries/ValidationLogic.sol b/contracts/libraries/ValidationLogic.sol index 7f22b21f..8e4a6a12 100644 --- a/contracts/libraries/ValidationLogic.sol +++ b/contracts/libraries/ValidationLogic.sol @@ -221,7 +221,7 @@ library ValidationLogic { uint256 _actualPaybackAmount, uint256 _msgValue ) external view { - (bool isActive, , , ) = _reserve.configuration.getFlags(); + bool isActive = _reserve.configuration.getActive(); require(isActive, 'Action requires an active reserve');