Skip to content

Commit

Permalink
fix: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Nov 10, 2023
1 parent 21af6aa commit b8e6669
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/SparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom {
}

/**********************************************************************************************/
/*** Wards Functions ***/
/*** Owner Functions ***/
/**********************************************************************************************/

function setAuthority(address authority_) external override onlyOwner {
Expand All @@ -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);
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/interfaces/ISparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b8e6669

Please sign in to comment.