Contract detail
ProtocolTimelock
Live Robinhood Chain account facts for 0xe8ad05cc…7738405d. No activity has been observed yet while historical coverage continues.
- Address type
- Smart contract
- Transactions
- 0 observed
- History coverage
- No indexed activity found
- Emitted events
- 10
- Verification
- Verified
- Compiler
- v0.8.28+commit.7893614a
- Verification match
- partial
- Creation transaction
- 0x12dc66cf…a2ec033f
- Created at block
- #28611667
- Language
- solidity
- EVM version
- cancun
- License
- none
- Compiler optimization
- Enabled · 200 runs
Verified contract
Contract source code
// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;
import {TimelockController} from "@openzeppelin/contracts/governance/TimelockController.sol";
/// @title ProtocolTimelock
/// @notice Governance timelock that owns every RobinTomb contract once launch is complete.
///
/// @dev WHY THIS EXISTS. In upstream Tomb, `Operator.transferOperator` is `onlyOwner`, and the owner
/// of TOMB and TSHARE is a plain EOA — the same EOA that is the Treasury operator. That key can
/// seize mint rights on the peg and share tokens at any moment, with no delay and no warning.
/// A `Timelock.sol` shipped in the repo but was never placed in the ownership path. It is the
/// single largest unaddressed risk in the original design, and it is entirely avoidable.
///
/// Handing ownership here means every privileged action — changing the operator, retargeting the
/// oracle, altering fund splits, adjusting expansion tiers — becomes a public proposal that sits
/// for MIN_DELAY before it can execute. Holders get a window to exit before a hostile change
/// lands, which is the whole point.
///
/// ROLE MODEL used by the handover script:
/// proposers = [governance multisig] (also receives CANCELLER_ROLE from the base constructor)
/// executors = [address(0)] (anyone may execute a matured proposal, so a stuck or
/// uncooperative proposer cannot block queued actions)
/// admin = address(0) (self-administered; no backdoor role that skips delay)
contract ProtocolTimelock is TimelockController {
/// @notice Floor on the execution delay. Two days is enough for holders to react to a hostile
/// proposal; going much shorter makes the timelock decorative.
uint256 public constant MIN_DELAY = 2 days;
/// @notice Address granted CANCELLER_ROLE but never PROPOSER_ROLE.
address public immutable guardian;
/// @dev THE GUARDIAN EXISTS TO CLOSE A REAL GAP. TimelockController's constructor grants
/// CANCELLER_ROLE to every proposer, so with only a governance multisig configured, the
/// same key that queues a malicious proposal is also the only key that can cancel it.
/// A compromised multisig could then queue a hostile upgrade and cancel nothing but its
/// own opposition — the 2-day delay would give holders time to see the attack coming and
/// no one the power to stop it.
///
/// The guardian can veto anything during the delay window and propose nothing, so handing
/// it to a separate party costs no control and buys a real check. It MUST be independent
/// of the proposers or it provides none — hence the require below rather than a comment
/// asking nicely.
///
/// Roles must be granted here: `admin` is address(0), so the timelock is self-administered
/// and any post-deployment role change would itself need a 2-day proposal.
constructor(uint256 minDelay, address[] memory proposers, address[] memory executors, address _guardian)
TimelockController(minDelay, proposers, executors, address(0))
{
require(minDelay >= MIN_DELAY, "ProtocolTimelock: delay below the safe floor");
require(proposers.length > 0, "ProtocolTimelock: needs at least one proposer");
require(_guardian != address(0), "ProtocolTimelock: zero guardian");
for (uint256 i = 0; i < proposers.length; i++) {
require(_guardian != proposers[i], "ProtocolTimelock: guardian must not be a proposer");
}
guardian = _guardian;
_grantRole(CANCELLER_ROLE, _guardian);
}
}