GovernanceUtils

GovernanceUtils

onlyAfterGovernanceDelay

function onlyAfterGovernanceDelay(uint256 changeInitiatedTimestamp, uint256 delay) internal view

Reverts if the governance delay has not passed since the change initiated time or if the change has not been initiated.

Parameters

NameTypeDescription

changeInitiatedTimestamp

uint256

The timestamp at which the change has been initiated.

delay

uint256

Governance delay.

getRemainingGovernanceDelay

function getRemainingGovernanceDelay(uint256 changeInitiatedTimestamp, uint256 delay) internal view returns (uint256)

Gets the time remaining until the governable parameter update can be committed.

Parameters

NameTypeDescription

changeInitiatedTimestamp

uint256

Timestamp indicating the beginning of the change.

delay

uint256

Governance delay.

Return Values

NameTypeDescription

[0]

uint256

Remaining time in seconds.

Last updated