-
Notifications
You must be signed in to change notification settings - Fork 7
VotingPowerCombined
senamakel edited this page Jul 29, 2024
·
3 revisions
contract IOmnichainStaking lpStakingcontract IOmnichainStaking tokenStakingfunction init(address _owner, address _tokenStaking, address _lpStaking) externalfunction setAddresses(address _tokenStaking, address _lpStaking) externalfunction getVotes(address account) external view returns (uint256)Returns the current amount of votes that account has.
function totalVotes() external view returns (uint256)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.
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._
function delegates(address) external pure returns (address)function delegate(address) external purefunction delegateBySig(address, uint256, uint256, uint8, bytes32, bytes32) external pure