Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/gov-action-contracts/AIPs/CoreGovTimelockUpdateDelay.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.16;

import "../address-registries/L2AddressRegistryInterfaces.sol";

/// @notice Updates the delay of the core gov timelock to 8 days
contract CoreGovTimelockUpdateDelayEightDayAction {
ICoreGovTimelockGetter public immutable govAddressRegistry;
uint256 public constant delay = 86400 * 8;

constructor(ICoreGovTimelockGetter _govAddressRegistry) {
govAddressRegistry = _govAddressRegistry;
}

function perform() external {
govAddressRegistry.coreGovTimelock().updateDelay(delay);
require(
govAddressRegistry.coreGovTimelock().getMinDelay() == delay,
"CoreGovTimelockUpdateDelayAction: Timelock delay"
);
}
}