From 2c19aeb87b9c1edfff4f7ca7cd9ed1a21361136e Mon Sep 17 00:00:00 2001 From: The3D Date: Thu, 1 Jul 2021 20:00:02 +0200 Subject: [PATCH] fix: added check to skip dropped reserves in setPoolPause() --- contracts/protocol/lendingpool/LendingPoolConfigurator.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol index 44735f00..4ecc8b2d 100644 --- a/contracts/protocol/lendingpool/LendingPoolConfigurator.sol +++ b/contracts/protocol/lendingpool/LendingPoolConfigurator.sol @@ -488,7 +488,9 @@ contract LendingPoolConfigurator is VersionedInitializable, ILendingPoolConfigur address[] memory reserves = _pool.getReservesList(); for (uint256 i = 0; i < reserves.length; i++) { - setReservePause(reserves[i], paused); + if (reserves[i] != address(0)) { //might happen is a reserve was dropped + setReservePause(reserves[i], paused); + } } }