This function is in the PendingWithdrawals.sol contract.

Function lockDuration()

function lockDuration() external view returns (uint32)

This function is used to get the length of the cooldown period for withdrawals.

Once a withdrawal has been initiated, the cooldown period begins. The length of the cooldown period can be acquired by calling this function.

The initial length of the lock duration is 604800 seconds, equal to 7 days. However, this can be adjusted by a vote from the DAO.

Return Variables

This function returns the length of the withdrawal cooldown period, in seconds.

Variable TypeReturns


The number returned represents the cooldown period, in seconds, for withdrawals. For example: 604800 uint32

Last updated