diff --git a/src/SparkLendFreezerMom.sol b/src/SparkLendFreezerMom.sol index 89cb865..2b648a5 100644 --- a/src/SparkLendFreezerMom.sol +++ b/src/SparkLendFreezerMom.sol @@ -50,7 +50,7 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom { } /**********************************************************************************************/ - /*** Wards Functions ***/ + /*** Owner Functions ***/ /**********************************************************************************************/ function setAuthority(address authority_) external override onlyOwner { @@ -72,7 +72,6 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom { address[] memory reserves = PoolLike(pool).getReservesList(); for (uint256 i = 0; i < reserves.length; i++) { - if (reserves[i] == address(0)) continue; PoolConfiguratorLike(poolConfigurator).setReserveFreeze(reserves[i], true); } } diff --git a/src/interfaces/ISparkLendFreezerMom.sol b/src/interfaces/ISparkLendFreezerMom.sol index ebed816..2c2e06e 100644 --- a/src/interfaces/ISparkLendFreezerMom.sol +++ b/src/interfaces/ISparkLendFreezerMom.sol @@ -70,13 +70,17 @@ interface ISparkLendFreezerMom { /**********************************************************************************************/ /** - * @dev Function to freeze a specified market. Permissioned to the `hat` in the Chief. + * @dev Function to freeze a specified market. Permissioned using the isAuthorized function + * which allows the owner, the freezer contract itself, or the `hat` in the Chief + * to call the function. * @param reserve The address of the market to freeze. */ function freezeMarket(address reserve) external; /** - * @dev Function to freeze all markets. Permissioned to the `hat` in the Chief. + * @dev Function to freeze all markets. Permissioned using the isAuthorized function + * which allows the owner, the freezer contract itself, or the `hat` in the Chief + * to call the function. */ function freezeAllMarkets() external;