Who controls dYdX bridge ?
Ownership
-
dYdX Bridge is a Proxy 0xd54f...
can be upgraded via
upgradeTo(...) onlyGovernance
method - Current governor is StarkExRemoverGovernorV2 0xfcaa...
- Admin of StarkExRemoverGovernorV2 is PriorityExecutor 0xa306...
- Admin of PriorityExecutor is DydxGovernor 0x7e9b...
- Current governance strategy is GovernanceStrategy 0x90df
Logic
voting power is held by dydx token owners
the proposal goes through stages Pending => Active => Succeeded => Queued => Executed
Proposal creation
DydxGovernor.create(...)
Requirements for creation
PriorityExecutor.validateCreatorOfProposal()
What is being checked
GovernanceStrategy.getPropositionPowerAt() >= getMinimumPropositionPowerNeeded()
getMinimumPropositionPowerNeeded()
GovernanceStrategy.getTotalPropositionSupplyAt(blockNumber)
.mul(PROPOSITION_THRESHOLD)
.div(ONE_HUNDRED_WITH_PRECISION)
//PROPOSITION_THRESHOLD = 50
//ONE_HUNDRED_WITH_PRECISION = 10000
current proposal threshold is 0.5%
so anyone with at least 0.5% of total supply of dydx token can create a proposal
Voting result
voting succeeds when
PriorityExecutor.isProposalPassed() && executionTime = 0`
it means the proposal was voted for by a majority and was not yet executed, now it can be enqueued for execution
What is being checked
isQuorumValid(governance, proposalId) && isVoteDifferentialValid(governance, proposalId)
isQuorumValid
proposal.forVotes >= getMinimumVotingPowerNeeded(votingSupply)
getMinimumVotingPowerNeeded()
votingSupply.mul(MINIMUM_QUORUM).div(ONE_HUNDRED_WITH_PRECISION)
//MINIMUM_QUORUM=200
current minimum quorum is 2%
isVoteDifferentialValid
proposal.forVotes.mul(ONE_HUNDRED_WITH_PRECISION).div(votingSupply) > proposal.againstVotes.mul(ONE_HUNDRED_WITH_PRECISION).div(votingSupply).add(VOTE_DIFFERENTIAL)
//VOTE_DIFFERENTIAL=50
current VOTE_DIFFERENTIAL is 0.5%
Execution
when the vote succeeds it can be executed by executor
dydx token
The token contract is at 0x92d5
Current total supply is 1,000,000,000
Minimum amount to create proposal is 5,000,000
Minimum quorum is 20,000,000
there are:
- 21 addresses who can create a proposal
- 8 addresses that can singlehandedly push proposal (if no other address votes)
Top comments (0)