Skip to content

Commit

Permalink
fix: Add configuration cache to save gas
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Nov 11, 2021
1 parent 1e98320 commit e5b9c2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/protocol/libraries/logic/ValidationLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,9 @@ library ValidationLogic {
* @param reserve The state of the reserve
*/
function validateFlashloanSimple(DataTypes.ReserveData storage reserve) internal view {
require(!reserve.configuration.getPaused(), Errors.VL_RESERVE_PAUSED);
require(reserve.configuration.getActive(), Errors.VL_NO_ACTIVE_RESERVE);
DataTypes.ReserveConfigurationMap memory configuration = reserve.configuration;
require(!configuration.getPaused(), Errors.VL_RESERVE_PAUSED);
require(configuration.getActive(), Errors.VL_NO_ACTIVE_RESERVE);
}

struct ValidateLiquidationCallLocalVars {
Expand Down

0 comments on commit e5b9c2a

Please sign in to comment.