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

feat(x/gov): dynamic deposit throttler #69

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

giunatale
Copy link
Collaborator

Add code for the deposit auto-throttler described in #65

MinDeposit cannot be nil even if not provided because it has a nullable
false proto property.
var (
depositThresholdMet bool
thresholds []string
)
for _, minDep := range minDepositAmount {
for _, minDep := range minDeposit {
Copy link
Collaborator

@tbruyelle tbruyelle Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized that while reviewing the min initial deposit PR, and this follows a discussion we had, I think the minDepositRatio should only apply to a fixed value, for example v1.DefaultMinDepositToken (or params.MinDepositThrottler.FloorValue).
I don't think that makes sense to see this value evolving like the min deposit.

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