#dao #module #proposal #native #cw20 #pre-propose #deposits

dao-pre-propose-multiple

A DAO DAO pre-propose module for dao-proposal-multiple for native and cw20 deposits

5 stable releases

2.4.2 Jul 22, 2024
2.4.0 Jul 21, 2024
2.3.0 Oct 18, 2023
2.2.0 Jul 9, 2023

#6 in #cw20

Download history 1/week @ 2024-06-24 18/week @ 2024-07-01 77/week @ 2024-07-15 566/week @ 2024-07-22 196/week @ 2024-07-29 40/week @ 2024-08-05 267/week @ 2024-08-12 21/week @ 2024-09-02 86/week @ 2024-09-09 57/week @ 2024-09-16 91/week @ 2024-09-23 10/week @ 2024-09-30

251 downloads per month
Used in 3 crates (2 directly)

BSD-3-Clause

150KB
3.5K SLoC

Multiple choice proposal deposit contract

dao-pre-propose-multiple on crates.io docs.rs

This is a pre-propose module that manages proposal deposits for the dao-proposal-multiple proposal module.

It may accept either native (bank module), cw20 tokens, or no tokens as a deposit. If a proposal deposit is enabled the following refund strategies are avaliable:

  1. Never refund deposits. All deposits are sent to the DAO on proposal completion.
  2. Always refund deposits. Deposits are returned to the proposer on proposal completion.
  3. Only refund passed proposals. Deposits are only returned to the proposer if the proposal passes. Otherwise, they are sent to the DAO.

This module may also be configured to only accept proposals from members (addresses with voting power) of the DAO.

Here is a flowchart showing the proposal creation process using this module:

Resources

More about the pre-propose design.

More about pre-propose modules.

Dependencies

~10MB
~211K SLoC