Governor
The GovernorAlpha contract is an adapted clone of Compound’s governance model.
The GovernorAlpha
contract has two instances:
The
GovernorOwner
: Which is the one authorized to perform changes in the code of the Sovryn's protocol.The
GovernorAdmin
: Which is the one authorized to perform settings in parameters of the code of the Sovryn's protocol, and make movement of funds.
MAKING A PROPOSAL
Stakers can make (executable) proposals if they possess enough voting power, currently above the 1% of the total voting power.
The execution of the GovernorAlpha.propose
returns the number ID of the proposal.
Arguments
targets
address[]
Array of contract addresses to perform proposal execution
values
uint256[]
Array of rBTC amounts to send on proposal execution
signatures
string[]
Array of function signatures to call on proposal execution
calldatas
bytes[]
Array of payloads for the calls on proposal execution
description
string
Text describing the purpose of the proposal
VOTING A PROPOSAL
Once a proposal is successfully deployed, it has a window to be voted of 2880 blocks
in RSK blockchain, which is around 24 hours. Only stakers will have voting power. The execution of the former function does not revert if you are not a staker user: it just add zero voting weight to the proposal, and spends the needed gas.
Arguments
proposalId
uint256
Proposal index to access the list proposals[] from storage
support
bool
Vote value, yes or no: whether you support or not the proposal
QUEUEING A PROPOSAL
If a proposal earns enough voting power in favor, the proposal must be put in a queue of 48 hours: this allow users that do not agree with the results to withdraw their funds from Sovryn protocol. Anybody can put in que an approved proposal.
Arguments
proposalId
uint256
Proposal index to access the list proposals[] from storage
EXECUTING A PROPOSAL
After the minimum queue time windows is done, anybody can execute an approved proposal.
Arguments
proposalId
uint256
Proposal index to access the list proposals[] from storage
Last updated