Skip to content

Commit

Permalink
Merge branch 'sc-204-build-gsm-bypass' into sc-239-add-spells-and-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Nov 12, 2023
2 parents 5354fd5 + c741113 commit 8d2b021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/SparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ contract SparkLendFreezerMom is ISparkLendFreezerMom {
address[] memory reserves = PoolLike(pool).getReservesList();

for (uint256 i = 0; i < reserves.length; i++) {
PoolConfiguratorLike(poolConfigurator).setReserveFreeze(reserves[i], true);
emit FreezeMarket(reserves[i]);
address reserve = reserves[i];
PoolConfiguratorLike(poolConfigurator).setReserveFreeze(reserve, true);
emit FreezeMarket(reserve);
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/interfaces/ISparkLendFreezerMom.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface ISparkLendFreezerMom {

/**
* @dev Event to log the freezing of a given market in SparkLend.
* @dev NOTE: This event will fire even if the market is already frozen.
* @param reserve The address of the market reserve.
*/
event FreezeMarket(address indexed reserve);
Expand Down Expand Up @@ -78,7 +79,8 @@ interface ISparkLendFreezerMom {
/**
* @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.
* to call the function. Note that the `authority` in this contract is assumed to be
* the Chief in the MakerDAO protocol.
* @param reserve The address of the market to freeze.
*/
function freezeMarket(address reserve) external;
Expand Down

0 comments on commit 8d2b021

Please sign in to comment.