Governor

contracts/TOKENGovernor.sol:TOKENGovernor

Governor Name (NAME) - string

The name of the governor contract. For example, 'CaptainGovernor' or 'CrunchGovernor'.

Average Block Time (BLOCKTIME) - uint256

The average block time on the chain. Can get this from the block explorer. For example, Polygon Mumbai has average block time of 2 seconds

Examples:

  • Average block time of 2.2 seconds: 2

  • Average block time of 12 seconds: 12

Voting Delay (VOTING_DELAY) - uint256

This is a delay since the proposal is submitted till when voting can start. The units are in seconds. For example, if the delay is 86400 seconds then once a proposal is submitted people can not start voting on that proposal till 1 day has passed. This parameter can be updated by governance.

Examples:

  • 1 day voting delay: 86400

  • 1 hour voting delay: 3600

Voting Period (VOTING_PERIOD) - uint256

The voting period is the length of time (in seconds) where voters can cast their votes on a proposal. For example, if the voting period is set to 604800 seconds then the proposal can be voted on for 1 week. This parameter can be updated by governance.

Examples:

  • 1 week voting period: 604800

  • 3 day voting period: 259200

Proposal Threshold (PROPOSAL_THRESHOLD) - uint256

The proposal threshold is the amount of VTOKEN needed to submit a proposal. For example, if the proposal is 100 then a user will need 100 VTOKEN to submit a proposal. This parameter can be updated by governance.

Examples:

  • 17 VTOKEN needed to make a proposal: 17

  • 2,000 VTOKEN needed to make a proposal: 2000

Quorum (QUORUM) - uint256

The quorum is the percent of the total VTOKEN supply that needs to vote on a proposal for it to pass. For example, if there are 10,000 VTOKEN supply and the quorum is set to 5% then 500 VTOKEN need to be voted with for the proposal to pass. If only 400 VTOKEN voted then the proposal will not pass. This parameter can not be updated after deployment.

Examples:

  • 4% quorum for vote to pass: 4

  • 10% quorum for vote to pass: 10

Last updated