Skip to content

IFtsoGenesis#

Portion of the IFtso interface that is available to contracts deployed at genesis.

Functions#

revealPriceSubmitter#

Defined in IFtsoGenesis (Docs, Source).

function revealPriceSubmitter(
    address _voter,
    uint256 _epochId,
    uint256 _price,
    uint256 _voterWNatVP
) external;

Reveals the price submitted by a voter on a specific epoch. The hash of _price and _random must be equal to the submitted hash

Parameters Type Description
_voter address Voter address.
_epochId uint256 ID of the epoch in which the price hash was submitted.
_price uint256 Submitted price.
_voterWNatVP uint256 Voter's vote power in WNat units.

wNatVotePowerCached#

Defined in IFtsoGenesis (Docs, Source).

function wNatVotePowerCached(
    address _voter,
    uint256 _epochId
) external returns (
    uint256);

Get and cache the vote power of a voter on a specific epoch, in WNat units.

Parameters Type Description
_voter address Voter address.
_epochId uint256 ID of the epoch in which the price hash was submitted.
Returns Type Description
[0] uint256 Voter's vote power in WNat units.

Last update: 2024-03-01