-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SC-324] Deny can be triggered by auth (#8)
* deny can be triggered by auth * add spell and integration tests * add new spell to readme; give a good description of what the setup should be * test all functions are de-authed
- Loading branch information
Showing
5 changed files
with
153 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import { IExecuteOnceSpell } from "src/interfaces/IExecuteOnceSpell.sol"; | ||
import { ISparkLendFreezerMom } from "src/interfaces/ISparkLendFreezerMom.sol"; | ||
|
||
contract EmergencySpell_SparkLend_RemoveMultisig is IExecuteOnceSpell { | ||
|
||
address public immutable sparkLendFreezerMom; | ||
address public immutable multisig; | ||
|
||
bool public override executed; | ||
|
||
constructor(address sparkLendFreezerMom_, address multisig_) { | ||
sparkLendFreezerMom = sparkLendFreezerMom_; | ||
multisig = multisig_; | ||
} | ||
|
||
function execute() external override { | ||
require(!executed, "RemoveMultisigSpell/already-executed"); | ||
executed = true; | ||
ISparkLendFreezerMom(sparkLendFreezerMom).deny(multisig); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters