mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: added check to skip dropped reserves in setPoolPause()
This commit is contained in:
parent
7acbd2925b
commit
2c19aeb87b
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user