Skip to main content

ProtocolsV2Interface

Primary interface for managing protocol related metadata. This is a long-term support (LTS) interface, designed to ensure continuity even as underlying contracts evolve or protocols migrate to new versions.

Sourced from ProtocolsV2Interface.sol on GitHub.

Functions

firstRewardEpochStartTs

Timestamp when the first reward epoch started, in seconds since UNIX epoch.

function firstRewardEpochStartTs(
) external view returns (
uint64
);

firstVotingRoundStartTs

Timestamp when the first voting epoch started, in seconds since UNIX epoch.

function firstVotingRoundStartTs(
) external view returns (
uint64
);

getCurrentRewardEpochId

Returns the current reward epoch id.

function getCurrentRewardEpochId(
) external view returns (
uint24
);

getCurrentVotingEpochId

Returns the current voting epoch id.

function getCurrentVotingEpochId(
) external view returns (
uint32
);

getStartVotingRoundId

Returns the start voting round id for given reward epoch id.

function getStartVotingRoundId(
uint256 _rewardEpochId
) external view returns (
uint32
);

getVotePowerBlock

Returns the vote power block for given reward epoch id.

function getVotePowerBlock(
uint256 _rewardEpochId
) external view returns (
uint64 _votePowerBlock
);

rewardEpochDurationSeconds

Duration of reward epoch, in seconds.

function rewardEpochDurationSeconds(
) external view returns (
uint64
);

votingEpochDurationSeconds

Duration of voting epoch, in seconds.

function votingEpochDurationSeconds(
) external view returns (
uint64
);