-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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): implement a minimum amount per deposit #18146
Changes from 14 commits
fb1f74c
32d9be5
b5ff28a
2f5bb4c
70506fa
89d493f
0bba608
5cf3bc2
7f2f019
62bc6cc
7fa8f2f
9a3d624
cf4e715
cef4978
3c15843
c5b709a
0f10c90
c7e841c
f2cd8c3
63c003d
e4b06f9
8f3d1b5
05159a7
cbb97e6
d2d05e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,4 +261,11 @@ message Params { | |
|
||
// burn deposits if quorum with vote type no_veto is met | ||
bool burn_vote_veto = 15; | ||
|
||
// The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. | ||
// Default value: 0.001. Meaning that for a chain with a min_deposit of 1000stake, a deposit of 1stake would be | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Default looks quite low, shouldn't we do 1% instead of 0.1%. |
||
// required. | ||
// | ||
// Since: cosmos-sdk 0.50 | ||
string min_deposit_ratio = 16 [(cosmos_proto.scalar) = "cosmos.Dec"]; | ||
} |
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.
The changelog entry correctly summarizes the changes made in the PR. It mentions the addition of the
MinDepositRatio
parameter and the new requirement for deposits. However, it might be helpful to also mention the new error constantErrInvalidDepositDenom
that was added for handling invalid deposit denominations.Commitable suggestion (Beta)