polkadot-sdk icon indicating copy to clipboard operation
polkadot-sdk copied to clipboard

[pallet-referenda] Crowd Sourced Decision Deposit

Open ggwpez opened this issue 1 year ago • 9 comments

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 avatar Oct 14 '24 11:10 ggwpez

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

runcomet avatar Oct 14 '24 12:10 runcomet

Thanks @runcomet!

ggwpez avatar Oct 14 '24 12:10 ggwpez

I already have this ready in a branch 😅

bkchr avatar Oct 14 '24 18:10 bkchr

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

bkchr avatar Oct 14 '24 18:10 bkchr

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)

apopiak avatar Sep 11 '25 03:09 apopiak

Yeah can be taken by someone @apopiak. If you have someone, you can send them to me.

bkchr avatar Sep 11 '25 08:09 bkchr

@apopiak Will take this if you haven't passed it off yet

PolkadotDom avatar Nov 26 '25 15:11 PolkadotDom

Go for it

apopiak avatar Nov 26 '25 15:11 apopiak

@PolkadotDom Still working on this?

runcomet avatar Dec 05 '25 08:12 runcomet