StakerGovernorVotes
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Staker DAO voting power extraction from staked T positions,
contract IVotesHistory staking
constructor(contract IVotesHistory tStakingAddress) internal
function getVotes(address account, uint256 blockNumber) public view virtual returns (uint256)
Read the voting weight from the snapshot mechanism in the T staking contracts. Note that this also tracks legacy stakes (NU/KEEP).
See {IGovernor-getVotes}
account
address
Delegate account with T staking voting power
blockNumber
uint256
The block number to get the vote balance at
function _getPastTotalSupply(uint256 blockNumber) internal view virtual returns (uint256)
Compute the total voting power for the Staker DAO.
blockNumber
uint256
The block number to get the voting power at