{% hint style="warning" %}
You are referring to the Legacy
version of KyberSwap docs.
For the most updated information, please refer to:
Classic
Elastic
Limit Order
Aggregator
{% endhint %}
Source: IEpochUtils.sol
INDEX
<AUTOGENERATED_TABLE_OF_CONTENTS>
REFERENCE
Functions
epochPeriodInSeconds
Returns the number of seconds defined in an epoch.
function epochPeriodInSeconds() external view returns (uint256) Returns:\ Number of seconds in an epoch
### `firstEpochStartTimestamp` Returns the timestamp when the first epoch starts. ___ function __firstEpochStartTimestamp__() external view returns (uint256) **Returns:**\ Start timestamp of first epoch
### `getCurrentEpochNumber` Returns the current epoch number. ___ function __getCurrentEpochNumber__() external view returns (uint256)\ **Returns:**\ Current epoch number
### `getEpochNumber` Returns the epoch number at timestamp. ___ function __getEpochNumber__(uint256 timestamp) external view returns (uint256) | Parameter | Type | Description | | --------- |:-----:|:-----------:| | `timestamp` | uint256 | timestamp in epoch time | **Returns:**\ Epoch number at timestamp