Skip to content

VotingPowerCombined

senamakel edited this page Jul 29, 2024 · 3 revisions

Solidity API

VotingPowerCombined

lpStaking

contract IOmnichainStaking lpStaking

tokenStaking

contract IOmnichainStaking tokenStaking

init

function init(address _owner, address _tokenStaking, address _lpStaking) external

setAddresses

function setAddresses(address _tokenStaking, address _lpStaking) external

getVotes

function getVotes(address account) external view returns (uint256)

Returns the current amount of votes that account has.

totalVotes

function totalVotes() external view returns (uint256)

getPastVotes

function getPastVotes(address account, uint256 timepoint) external view returns (uint256)

Returns the amount of votes that account had at a specific moment in the past. If the clock() is configured to use block numbers, this will return the value at the end of the corresponding block.

getPastTotalSupply

function getPastTotalSupply(uint256 timepoint) external view returns (uint256)

_Returns the total supply of votes available at a specific moment in the past. If the clock() is configured to use block numbers, this will return the value at the end of the corresponding block.

NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. Votes that have not been delegated are still part of total supply, even though they would not participate in a vote._

delegates

function delegates(address) external pure returns (address)

delegate

function delegate(address) external pure

delegateBySig

function delegateBySig(address, uint256, uint256, uint8, bytes32, bytes32) external pure

Clone this wiki locally