Silk link

Silk link is an Oracle project, which provides offline price and data for NFT in defi stable currency synthetic asset insurance prediction market.

Source Code

Description

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 image-20210120173655881 ###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. ## Demo Introduce and demonstrate administrator, pledge voting and balance voting with demo. Demo project has token "silk" (myerc20. Sol) + agreement( Protocol.sol )。 1. Administrator adjusts protocol fee and transfers administrator( Protocol.sol ) 2. Pledge voting code: VoteByStake.sol Pledge before vote image-20210120184830633 3. Balance voting Corresponding code: myerc20 WithVotes.sol And VoteByBalance.sol When transferring money, set up a checkpoint to record its balance and height. ![image-20210120185054831]( https://img.learnblockchain.cn/pics/20210120185056.png ) Voting is the same as pledge voting.

How It's Made

Truffle and erc20 are used in this project Governance: with what kind of management system (Protocol) image-20210117151039912 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 image-20210120173655881 ###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. ## Demo Introduce and demonstrate administrator, pledge voting and balance voting with demo. Demo project has token "silk" (myerc20. Sol) + agreement( Protocol.sol )。 1. Administrator adjusts protocol fee and transfers administrator( Protocol.sol ) 2. Pledge voting code: VoteByStake.sol Pledge before vote image-20210120184830633 3. Balance voting Corresponding code: myerc20 WithVotes.sol And VoteByBalance.sol When transferring money, set up a checkpoint to record its balance and height. ![image-20210120185054831]( https://img.learnblockchain.cn/pics/20210120185056.png ) Voting is the same as pledge voting.

Team

Judas Luo erc ma Judas Luo dylan chen Jia Pei
← click here to see all projects