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

fix: proposer deposit should be burned if proposal does not move into the deposit #12807

Closed
p0mvn opened this issue Aug 3, 2022 · 10 comments
Closed
Labels

Comments

@p0mvn
Copy link
Member

p0mvn commented Aug 3, 2022

Summary of Bug

In #12771 we introduced a min proposer deposit at submission time.

The feature was ported from osmosis-labs#296

However, we later discovered that Osmosis sdk fork differs from this repository. Osmosis burns the deposit if it does not move into the voting period but this repository returns it.

Since #12771 was a direct backport, this important difference was left out.

We should be burning the proposer deposit from submission time so that it is an effective measure against spam resistance.

Version

main branch

Steps to Reproduce

  • submit the proposal and the initial deposit
  • do not fulfill the deposit requirement for moving into the voting period
  • observe that the deposit is returned (should be burned instead)
@alexanderbez
Copy link
Contributor

I'm in favor of this 👍

@tac0turtle
Copy link
Member

tac0turtle commented Aug 4, 2022

I started this a while ago but was waiting for the param migration., Need to resurrect this #11080. We will do it before the next release

ref #11057

@atheeshp
Copy link
Contributor

Can this be picked up? @marbar3778

@yihuang
Copy link
Collaborator

yihuang commented Aug 16, 2022

I guess this need to backport to 0.46?

@alexanderbez
Copy link
Contributor

I guess this need to backport to 0.46?

This would be state breaking, no? If so, we cannot really backport to 0.46

@jhernandezb
Copy link

Can this be added to 0.47? The current spam situation is just getting worse in cosmos governance.

@julienrbrt
Copy link
Member

Can this be added to 0.47? The current spam situation is just getting worse in cosmos governance.

v0.47 is feature frozen. However, this is included https://github.com/cosmos/cosmos-sdk/blob/main/UPGRADING.md#minimum-proposal-deposit-at-time-of-submission and will probably solve that spam issue.

@jhernandezb
Copy link

I don't know why this was left out, if there is no penalty spam depositors will just get their money back even with a 20% min deposit.

@julienrbrt
Copy link
Member

I don't know why this was left out, if there is no penalty spam depositors will just get their money back even with a 20% min deposit.

You are right!

@julienrbrt
Copy link
Member

Superseded by #11057.
#11057 will be included in v0.47 as per community request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants