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

[pallet-referenda] Crowd Sourced Decision Deposit #6041

Open
ggwpez opened this issue Oct 14, 2024 · 4 comments
Open

[pallet-referenda] Crowd Sourced Decision Deposit #6041

ggwpez opened this issue Oct 14, 2024 · 4 comments
Assignees
Labels
C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. D1-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. T2-pallets This PR/Issue is related to a particular pallet.

Comments

@ggwpez
Copy link
Member

ggwpez commented Oct 14, 2024

Currently the decision deposit for a referendum must be paid in full by a single address. We should add a mechanism that allows it to be crowdsourced. @bkchr suggested that we can re-use the code of the crowdloan-pallet from the Polkadot runtime. I am not familiar with the code of tha pallet but probably needs a new pallet though to manage the deposits.

Requirement:

  • It should be possible to split the payment between different addresses (at least 128)
  • The code should only consider the n highest amounts paid and refund the lower ones
@ggwpez ggwpez added T2-pallets This PR/Issue is related to a particular pallet. D1-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. labels Oct 14, 2024
@runcomet
Copy link

runcomet commented Oct 14, 2024

Hi @ggwpez, I would like to work on this! Decision deposits could help mitigate some whale activity in OpenGov.

Assigning me would be nice if possible

@ggwpez
Copy link
Member Author

ggwpez commented Oct 14, 2024

Thanks @runcomet!

@bkchr
Copy link
Member

bkchr commented Oct 14, 2024

I already have this ready in a branch 😅

@bkchr
Copy link
Member

bkchr commented Oct 14, 2024

https://github.com/paritytech/polkadot-sdk/tree/bkchr-referenda-deposit-contribute this is my current work. Just misses some benchmarking improvements and more tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C2-good-first-issue A task for a first time contributor to become familiar with the Polkadot-SDK. D1-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. T2-pallets This PR/Issue is related to a particular pallet.
Projects
Status: Backlog
Development

No branches or pull requests

3 participants