StakerGovernor
StakerGovernor
VETO_POWER
bytes32 VETO_POWER
manager
address manager
constructor
constructor(contract IVotesHistory _staking, contract TimelockController _timelock, contract TokenholderGovernor tokenholderGovernor, address vetoer) public
cancel
function cancel(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) external returns (uint256)
propose
function propose(address[] targets, uint256[] values, bytes[] calldatas, string description) public returns (uint256)
quorum
function quorum(uint256 blockNumber) public view returns (uint256)
proposalThreshold
function proposalThreshold() public view returns (uint256)
getVotes
function getVotes(address account, uint256 blockNumber) public view returns (uint256)
state
function state(uint256 proposalId) public view returns (enum IGovernor.ProposalState)
supportsInterface
function supportsInterface(bytes4 interfaceId) public view returns (bool)
_execute
function _execute(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) internal
_cancel
function _cancel(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) internal returns (uint256)
_executor
function _executor() internal view returns (address)
Returns the address of the entity that acts as governance for this contract.
By default, Governor assumes this is either the Governor contract itself, or a timelock if there's one configured. We override this here for the StakerGovernor contract so it's the Tokenholder DAO's Timelock, which we obtain at constructor time.
Last updated
Was this helpful?