[pallet-referenda] Crowd Sourced Decision Deposit
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
nhighest amounts paid and refund the lower ones
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
Thanks @runcomet!
I already have this ready in a branch 😅
https://github.com/paritytech/polkadot-sdk/tree/bkchr-referenda-deposit-contribute this is my current work. Just misses some benchmarking improvements and more tests.
https://github.com/paritytech/polkadot-sdk/tree/bkchr-referenda-deposit-contribute this is my current work. Just misses some benchmarking improvements and more tests.
Do you want help cleaning it up? (Looking for bounties projects for PBA graduates)
Yeah can be taken by someone @apopiak. If you have someone, you can send them to me.
@apopiak Will take this if you haven't passed it off yet
Go for it
@PolkadotDom Still working on this?