This section walks through the protocol and the process for adding and editing entries within a CMD.
Items can be created in registries with an initial stake of tokens.
Each item can be challenged with a value of tokens greater than the current stake.
Challenging an item creates a vote, which other token holders can participate in.
- Incumbent stake and challenge stake are considered as initial voting values of the stakers.
To vote, the sender of a vote must have available DIRT tokens that are not staked or currently in a vote.
The side with the larger total token value wins.
Incumbent and Challenger can also vote, their votes are treated the same as other votes.
In calculating the vote outcome, there are three parties:
- Winner: either the incumbent item owner, or the challenger.
- Winning voters: voters who are not the winner who voted on the same side as the winner.
- Losing voters: all voters who voted on the other side as the winner.
Vote payout is determined according to the registry's
VoteConfiguration(challengePenalty, votePenalty, challengeDistribution).
- Winner takes
challengePenalty% of losers stake.
votePenalty% of losing stake is distributed between winner and all winning voters.
- Winning voters take
challengeDistribution% of losing voters tokens as penalty.
- Winner takes
If challenger wins, the registry item is now owned by the challenger at the original challenge staking value.
- Stake cannot be adjusted by owners.
- Item deletion refunds all staked tokens to owners.
- Vote stakes can be increased, decreased or cancelled.