Skip to content

chore(x/gov): cap SensitivityTargetDistance for dynamic deposit #103

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

Conversation

giunatale
Copy link
Collaborator

Also add some comments and logging in case ApproxRoot errors.

@giunatale
Copy link
Collaborator Author

closing in favor of #105

@giunatale giunatale closed this Mar 26, 2025
@giunatale giunatale deleted the giunatale/dynamic-deposit/approxroot branch March 26, 2025 21:08
giunatale added a commit that referenced this pull request May 29, 2025
… and decreases only with time (#105)

This PR is based on #104 

Based on discussions, this is a revised model for the dynamic deposit
that:
- only performs deposit increases upon proposal activation (proposal
deactivation does not trigger an update of the deposit), and
- only perform time-dependent updates to decrease the deposit, and a
decrease happens only if active proposals is less than the target,
otherwise the time-based update has no effect.

Plus, remove the sensitivity to the distance for increases.

This PR should be merged only after #104 is (or in its stead). Moreover,
if this PR is accepted, the partially overlapping PR #103 can be closed.

---

Importantly, this PR does not yet update neither the `x/gov` README.md
nor the Dynamic Deposit ADR to reflect these changes, so it needs to be
done.

---------

Co-authored-by: Thomas Bruyelle <thomas.bruyelle@tendermint.com>
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 this pull request may close these issues.

2 participants