# lockDuration()

### Function lockDuration()

{% code title="PendingWithdrawals.sol" %}

```javascript
function lockDuration() external view returns (uint32)
```

{% endcode %}

This function is used to get the length of the cooldown period for withdrawals.&#x20;

{% hint style="info" %}
Once a withdrawal has been initiated, the cooldown period begins. The length of the cooldown period can be acquired by calling this function.&#x20;

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.&#x20;
{% endhint %}

### Return Variables

This function returns the length of the withdrawal cooldown period, in seconds.&#x20;

| Variable Type | Returns                                                                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| uint32        | <p>The number returned represents the cooldown period, in seconds, for withdrawals. <br><br>For example:<br><code>604800 uint32</code></p> |
