Skip to content

Commit 90d26ba

Browse files
committed
ReactiveStaking: Emergency Mode setter included
1 parent 85a1e0f commit 90d26ba

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/ReactiveStakingAbstract.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ abstract contract ReactiveStaking is ReentrancyGuardUpgradeable {
6464
event ProposalEnded(uint256 indexed proposalId);
6565
event UserSnapshottedForProposal(address indexed user, uint256 balance, uint256 indexed proposalId);
6666
event VotingContractUpdated(address indexed newVotingContract);
67+
event EmergencyModeUpdated(bool enabled);
6768

6869
// -- Modifiers --
6970
modifier onlyVotingContract() {
@@ -278,6 +279,11 @@ abstract contract ReactiveStaking is ReentrancyGuardUpgradeable {
278279
emit VotingContractUpdated(votingContractAddress);
279280
}
280281

282+
function setEmergencyMode(bool enabled) public virtual {
283+
_emergencyMode = enabled;
284+
emit EmergencyModeUpdated(enabled);
285+
}
286+
281287
// -- Internal Helper
282288

283289
function _removeRequestByIndex(address user, uint256 index) internal {

0 commit comments

Comments
 (0)