Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a deposit to proposal #43

Open
5-mark opened this issue Jul 15, 2022 · 0 comments
Open

add a deposit to proposal #43

5-mark opened this issue Jul 15, 2022 · 0 comments
Labels

Comments

@5-mark
Copy link
Contributor

5-mark commented Jul 15, 2022

User Story

As protocol I want to protect market participants from protocol abuse, e.g. bad actors proposing destructive activity for GameDAO or any other DAO running on the protocol.

To achieve this we require creators of a Proposal to deposit a sound amount of collateral to their proposal. This disincentivizes bad actors from abuse and creates more transparency for the voters.

Acceptance Criteria

  1. add deposit to all Proposal extrinsics
  2. lock deposited amount over lifetime of Proposal
  3. return deposit after Proposal is either expired or voted on
  4. if the user does not have enough GAME token to deposit, an error message is thrown ("insufficient funds")

Additional Information

  • min deposit: 100 GAME

How to test

  1. Create a proposal without deposit --> get error (e.g. "not enough mana").
  2. Create a proposal for a future Blocktime --> see deposit reserved as collateral in wallet.
  3. Create a proposal, check reserved amount and wait for expiry--> see amount unlocked and transferable again.
@5-mark 5-mark added the Story label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant