mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Updated validateRepay, fixed natspec comment
This commit is contained in:
parent
1a29def14d
commit
8a79d71230
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user