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

Backport from DAO DAO: optionally charge to make proposal #742

Closed
ethanfrey opened this issue Jun 19, 2022 · 6 comments · Fixed by #751
Closed

Backport from DAO DAO: optionally charge to make proposal #742

ethanfrey opened this issue Jun 19, 2022 · 6 comments · Fixed by #751
Assignees
Milestone

Comments

@ethanfrey
Copy link
Member

ethanfrey commented Jun 19, 2022

cw3-flex-multisig may require a payment in order to create a proposal. This will often not be set on multisig-like implementations, and set on token-weighted voting to stop people from staking one token and spamming proposals.

Requirements:

  • The proposal start_time will not be set (not be active) until the required funds are sent
  • If the proposal passes, the deposit will be returned

DAO DAO implementation (you can use this, or do something better, but this is a reference):

Some notes:

@0xekez
Copy link
Contributor

0xekez commented Jul 6, 2022

For multisigs it seems reasonable that you'd actually accept either a cw20 or native token as a proposal deposit. Accepting cw20 tokens is fine, but accepting native ones as well would make these contracts more flexible.

I'd be happy to take this on. Want to add this to DAO DAO as well so it'll be good for me. @ueco-jb do you currently have work in progress for this or do you mind if I put something up?

@ethanfrey
Copy link
Member Author

If it is easy enough to merge this PR, I am happy to merge it.

On the other hand, I am also happy to leave cw3/cw4 as a reference pattern not as a full product (this is a more product-level feature) and recommending people to look at DAO-DAO code for advanced use cases.

I would not block a release on this if it takes significant time

@maurolacy maurolacy modified the milestones: 0.15.0, 0.16.0 Sep 14, 2022
@0xekez
Copy link
Contributor

0xekez commented Sep 14, 2022

@ethanfrey I am also happy to leave cw3/cw4 as a reference pattern not as a full product (this is a more product-level feature) and recommending people to look at DAO-DAO code for advanced use cases.

imo - this is probably a good approach. at least on the DAO DAO side, we've never had someone ask for proposal deposits for their cw4-groups based DAOs (despite the fact that we do support it as cw4 and token based daos share a proposal system). i may have some bias here, but i'm a huge fan of having less code.

that said, i'm always happy to backport code to cw-plus from dao dao when you'd like and i'll update the PR so it can be merged if we'd like. i've used cw-plus code extensively and want to give back where I can!

@ueco-jb ueco-jb assigned 0xekez and unassigned ueco-jb Sep 23, 2022
@uint uint modified the milestones: 0.16.0, 0.17.0 Oct 17, 2022
@uint
Copy link
Contributor

uint commented Oct 25, 2022

If it is easy enough to merge this PR, I am happy to merge it.
On the other hand, I am also happy to leave cw3/cw4 as a reference pattern not as a full product (this is a more product-level feature) and recommending people to look at DAO-DAO code for advanced use cases.

@ethanfrey So, we have a PR from @0xekez that ticks off all your boxes (thanks BTW!) and only needs to be updated with current main. Do you want me to rebase and merge this before officially freezing specs? Or are we dropping it to have clean, minimal reference contracts here?

we've never had someone ask for proposal deposits for their cw4-groups based DAOs

If it's not a frequent use case, I'd vote to drop it too.

@ethanfrey
Copy link
Member Author

that said, i'm always happy to backport code to cw-plus from dao dao when you'd like and i'll update the PR so it can be merged if we'd like. i've used cw-plus code extensively and want to give back where I can!

I very much appreciate this.

we've never had someone ask for proposal deposits for their cw4-groups based DAOs

It is a very important case for dao-dao, and may make sense for cw4-stake if people use/used that much.

My main point is that with dao-dao as a product, I see these more as reference. That said, if the PR is ready, we can merge it, then work to freezing them. Just don't aim to keep feature parity with dao-dao, but as a simple example.

I do think proposal deposits is good, and there is even an (unused) state for proposals waiting to collect enough deposits.

@ethanfrey
Copy link
Member Author

TL;DR if not too much work, let's merge it and freeze spec after. no need to keep updating with dao-dao advancements, as these remain as simpler reference

@uint uint closed this as completed in #751 Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants