-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
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 { |
There was a problem hiding this comment.
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.
Add code for the deposit auto-throttler described in #65