StakerGovernorVotes

StakerGovernorVotes

Staker DAO voting power extraction from staked T positions,

staking

contract IVotesHistory staking

constructor

constructor(contract IVotesHistory tStakingAddress) internal

getVotes

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}

Parameters

NameTypeDescription

account

address

Delegate account with T staking voting power

blockNumber

uint256

The block number to get the vote balance at

_getPastTotalSupply

function _getPastTotalSupply(uint256 blockNumber) internal view virtual returns (uint256)

Compute the total voting power for the Staker DAO.

Parameters

NameTypeDescription

blockNumber

uint256

The block number to get the voting power at

Last updated