KyberDeveloper · Powering Liquidity for the Ecosystem

KyberDeveloper · Powering Liquidity for the Ecosystem

  • Home
  • Integrations
  • Reserves
  • KyberPRO
  • Addresses
  • API/ABI
  • Trade Debugger
  • Tracker
  • GitHub

›Core Smart Contracts

Getting Started

  • Introduction

RESTful API

  • RESTful API Overview
  • RESTful API

Widgets

  • Widgets Overview
  • KyberWidget
  • Sign In Widget

Core Smart Contracts

  • IKyberNetworkProxy
  • KyberNetworkProxy
  • IKyberNetwork
  • ISimpleKyberProxy
  • IKyberMatchingEngine
  • KyberMatchingEngine
  • IKyberHint
  • KyberHintHandler
  • IKyberFeeHandler
  • KyberFeeHandler
  • IKyberStaking
  • KyberStaking
  • IKyberDao
  • KyberDao
  • IKyberStorage
  • KyberStorage
  • IKyberHistory
  • KyberHistory
  • IKyberReserve
  • KyberReserve
  • ConversionRates
  • LiquidityConversionRates
  • IEpochUtils
  • EpochUtils

Contract ABIs

  • ABIs

Plugins

  • Plugins Overview
  • WooCommerce Plugin

Code Snippets

  • Token Quantity Conversion

Misc Contracts

  • KyberNetwork
  • ConversionRatesInterface
  • OrderbookReserveInterface
  • PermissionGroups
  • SanityRates
  • SanityRatesInterface
  • Withdrawable

IEpochUtils

interface IEpochUtils

Source: IEpochUtils.sol


INDEX

  • epochPeriodInSeconds
  • firstEpochStartTimestamp
  • getCurrentEpochNumber
  • getEpochNumber

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)

ParameterTypeDescription
timestampuint256timestamp in epoch time

Returns:
Epoch number at timestamp

← LiquidityConversionRatesEpochUtils →
  • INDEX
  • REFERENCE
    • Functions
    • epochPeriodInSeconds
    • firstEpochStartTimestamp
    • getCurrentEpochNumber
    • getEpochNumber
KyberDeveloper · Powering Liquidity for the Ecosystem
EssentialsGetting StartedDesign PrinciplesProtocol OverviewSmart Contract Architecture
IntegrationsDAppsVendorsWalletsPlatform Fees
ReservesFed PriceAutomated Price
© 2019 Kyber Network. All rights reserved.
Follow us on Facebook
Follow us on Twitter
Follow us on Github
Follow us on Reddit
Join our Telegram group
Subscribe to our Youtube channel
Read our blog on Medium