Skip to main content

OptimisticTimelock

Functions

constructor

function constructor(
address core_,
uint256 minDelay,
address[] proposers,
address[] executors
) public

Parameters

NameTypeDescription
core_address
minDelayuint256
proposersaddress[]
executorsaddress[]

becomeAdmin

function becomeAdmin() public

allow guardian or governor to assume timelock admin roles This more elegantly achieves optimistic timelock as follows:

    - veto: grant self PROPOSER_ROLE and cancel
- pause proposals: revoke PROPOSER_ROLE from target
- pause execution: revoke EXECUTOR_ROLE from target
- set new proposer: revoke old proposer and add new one

In addition it allows for much more granular and flexible access for multisig operators