Updated validateRepay, fixed natspec comment

This commit is contained in:
The3D 2020-07-27 09:59:04 +02:00
parent 1a29def14d
commit 8a79d71230
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ library ReserveConfiguration {
/** /**
* @dev sets the liquidation bonus of the reserve * @dev sets the liquidation bonus of the reserve
* @param _self the reserve configuration * @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 { function setLiquidationBonus(ReserveConfiguration.Map memory _self, uint256 _bonus) internal {
_self.data = (_self.data & LIQUIDATION_BONUS_MASK) | (_bonus << 32); _self.data = (_self.data & LIQUIDATION_BONUS_MASK) | (_bonus << 32);

View File

@ -221,7 +221,7 @@ library ValidationLogic {
uint256 _actualPaybackAmount, uint256 _actualPaybackAmount,
uint256 _msgValue uint256 _msgValue
) external view { ) external view {
(bool isActive, , , ) = _reserve.configuration.getFlags(); bool isActive = _reserve.configuration.getActive();
require(isActive, 'Action requires an active reserve'); require(isActive, 'Action requires an active reserve');