Silk link is an Oracle project, which provides offline price and data for NFT in defi stable currency synthetic asset insurance prediction market.
Prophecy of community management. Governance: with what kind of management system (Protocol)
A governance model can achieve de trust, improve user participation, and enhance the overall value of the project. For example, sushi shakes the status of uniswap in the world through token governance.
##Governance mode
<img src=" https://img.learnblockchain.cn/pics/20210120173657.png " alt="image-20210120173655881" style=" zoom:60%; " />###Administrator
A single account or multiple signage control is needed. One person (or a few) has the final say and is hard to establish broad consensus.
Usually as a transitional scheme.
###Pledge voting
The ideal way is to vote by all, one coin, one vote, and the minority is subordinate to the majority.
But how to prevent repeat voting? Pledge money to prevent the movement of voting money.
Additional pledge incentives are usually required.
Disadvantages: reduce the efficiency of the use of funds, voting expensive.
###Vote with the balance
To prevent repeated voting, the token balance of different block heights is recorded.
The balance of block height at the time of proposal is used to count the number of votes.
Disadvantages: high transfer cost
###Snapshot (offline governance)
Vote in the form of off-line signature, and the vote is stored in IPFs, which can not be tampered with and verified.
The votes are counted according to the height of a block.
Disadvantages: the voting result is not binding on the chain, and it still depends on the administrator (multi signature) to implement the proposal.
Balancer open source https://snapshot.page/#/
###Optimistic vote
Optimize snapshot voting, join Aragon court and Aragon agent.
Assuming that the voting result is correct, and there is an Aragon agent to implement the proposal, anyone can challenge the result to the Aragon court during the time lock-in period.
Introduce and demonstrate administrator, pledge voting and balance voting with demo.
Demo project has token "silk" (myerc20. Sol) + agreement( Protocol.sol )。
Administrator adjusts protocol fee and transfers administrator( Protocol.sol )
Pledge voting
code: VoteByStake.sol
Pledge before vote
<img src=" https://img.learnblockchain.cn/pics/20210120184832.png " alt="image-20210120184830633" style=" zoom:50%; " />Corresponding code: myerc20 WithVotes.sol And VoteByBalance.sol
When transferring money, set up a checkpoint to record its balance and height.
Voting is the same as pledge voting.
Truffle and erc20 are used in this project
Governance: with what kind of management system (Protocol)
<img src=" https://img.learnblockchain.cn/pics/20210117151050.png " alt="image-20210117151039912" style=" zoom:70%; " />A governance model can achieve de trust, improve user participation, and enhance the overall value of the project. For example, sushi shakes the status of uniswap in the world through token governance.
##Governance mode
<img src=" https://img.learnblockchain.cn/pics/20210120173657.png " alt="image-20210120173655881" style=" zoom:60%; " />###Administrator
A single account or multiple signage control is needed. One person (or a few) has the final say and is hard to establish broad consensus.
Usually as a transitional scheme.
###Pledge voting
The ideal way is to vote by all, one coin, one vote, and the minority is subordinate to the majority.
But how to prevent repeat voting? Pledge money to prevent the movement of voting money.
Additional pledge incentives are usually required.
Disadvantages: reduce the efficiency of the use of funds, voting expensive.
###Vote with the balance
To prevent repeated voting, the token balance of different block heights is recorded.
The balance of block height at the time of proposal is used to count the number of votes.
Disadvantages: high transfer cost
###Snapshot (offline governance)
Vote in the form of off-line signature, and the vote is stored in IPFs, which can not be tampered with and verified.
The votes are counted according to the height of a block.
Disadvantages: the voting result is not binding on the chain, and it still depends on the administrator (multi signature) to implement the proposal.
Balancer open source https://snapshot.page/#/
###Optimistic vote
Optimize snapshot voting, join Aragon court and Aragon agent.
Assuming that the voting result is correct, and there is an Aragon agent to implement the proposal, anyone can challenge the result to the Aragon court during the time lock-in period.
Introduce and demonstrate administrator, pledge voting and balance voting with demo.
Demo project has token "silk" (myerc20. Sol) + agreement( Protocol.sol )。
Administrator adjusts protocol fee and transfers administrator( Protocol.sol )
Pledge voting
code: VoteByStake.sol
Pledge before vote
<img src=" https://img.learnblockchain.cn/pics/20210120184832.png " alt="image-20210120184830633" style=" zoom:50%; " />Corresponding code: myerc20 WithVotes.sol And VoteByBalance.sol
When transferring money, set up a checkpoint to record its balance and height.
Voting is the same as pledge voting.