Skip to content

Commit

Permalink
fix: Add getActive check on assets in flashloan.
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Oct 12, 2021
1 parent 9cc4d0c commit 740aeaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/protocol/libraries/logic/ValidationLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ library ValidationLogic {
) internal view {
for (uint256 i = 0; i < assets.length; i++) {
require(!reservesData[assets[i]].configuration.getPaused(), Errors.VL_RESERVE_PAUSED);
require(reservesData[assets[i]].configuration.getActive(), Errors.VL_NO_ACTIVE_RESERVE);
}
require(assets.length == amounts.length, Errors.VL_INCONSISTENT_FLASHLOAN_PARAMS);
}
Expand Down

0 comments on commit 740aeaf

Please sign in to comment.