Skip to content

Commit

Permalink
tweak: natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
alcueca committed Aug 6, 2021
1 parent 67978c6 commit 78693c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/utils/EmergencyBrake.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ interface IEmergencyBrake {
function terminate(address target, address[] memory contacts, bytes4[][] memory permissions) external;
}

/// @dev EmergencyBrake allows to plan for and execute isolation transactions that remove access permissions for
/// a target contract from a series of contacts. In an permissioned environment can be used for pausing components.
/// @dev EmergencyBrake allows to plan for and execute transactions that remove access permissions for a target
/// contract. In an permissioned environment this can be used for pausing components.
/// All contracts in scope of emergency plans must grant ROOT permissions to EmergencyBrake. To mitigate the risk
/// of governance capture, EmergencyBrake has very limited functionality, being able only to revoke existing roles
/// and to restore previously revoked roles. Thus EmergencyBrake cannot grant permissions that weren't there in the
Expand Down Expand Up @@ -41,7 +41,7 @@ contract EmergencyBrake is AccessControl, IEmergencyBrake {
// Granting roles (plan, cancel, execute, restore, terminate) is reserved to ROOT
}

/// @dev Register an isolation transaction
/// @dev Register an access removal transaction
function plan(address target, address[] memory contacts, bytes4[][] memory permissions)
external override auth
returns (bytes32 txHash)
Expand All @@ -62,7 +62,7 @@ contract EmergencyBrake is AccessControl, IEmergencyBrake {
emit Planned(txHash, target, contacts, permissions);
}

/// @dev Erase a planned isolation transaction
/// @dev Erase a planned access removal transaction
function cancel(address target, address[] memory contacts, bytes4[][] memory permissions)
external override auth
{
Expand All @@ -73,7 +73,7 @@ contract EmergencyBrake is AccessControl, IEmergencyBrake {
emit Cancelled(txHash, target, contacts, permissions);
}

/// @dev Execute an isolation transaction
/// @dev Execute an access removal transaction
function execute(address target, address[] memory contacts, bytes4[][] memory permissions)
external override auth
{
Expand Down

0 comments on commit 78693c5

Please sign in to comment.