Core Functions
Last updated
Last updated
Copyright 2024 M^0 Foundation
Creates a new unique proposal
Marks next voting epoch as active if it is the first submitted proposal for the next voting epoch
Charges proposal fee
Returns of the newly created proposal.
Reverts if proposal is not Active
Reverts if voting of is 0
Reverts if already voted
Gets votes from the previous epoch as of
Accounts for vote
Increases for
If :
Marks participation for POWER inflation of token holders
Increase voting power by epoch amount
Mints ZERO rewards to
Returns of .
Reverts if the current epoch is 0
Executes governance action
Returns
start epoch;
end epoch;
state;
number of NO votes;
number of YES votes;
proposer address;
quorum, number of votes required to meet quorum.
Returns one of states:
Pending
Active
Executed
Defeated
Succeeded
Expired
Votes in batch for all .
See
Reverts if there is no proposal in state for calculated
Sends back to proposer.
Reverts if is not or
Reverts if the for this is 0
Sends paid to the Distribution vault.
Reverts if not called by
Sets in
Sets in
Sets .
See lifecycle diagram for more information on state’s transition for .