Skip to main content
Version: Legacy

EpochUtils

contract EpochUtils#

is IEpochUtils imports SafeMath, IEpochUtils

Source: EpochUtils.sol


INDEX#

<AUTOGENERATED_TABLE_OF_CONTENTS>

REFERENCE#

Functions#

getCurrentEpochNumber#

Returns the current epoch number.


function getCurrentEpochNumber() public view override returns (uint256)\ Returns:\ Current epoch number


### `getEpochNumber` Returns the epoch number at timestamp. ___ function __getEpochNumber__(uint256 timestamp) public view override returns (uint256) | Parameter | Type | Description | | --------- |:-----:|:-----------:| | `timestamp` | uint256 | timestamp in epoch time | **Returns:**\ Epoch number at timestamp