Skip to content

Conversation

@trizzle5k
Copy link

@trizzle5k trizzle5k commented Jan 17, 2026

This PR introduces a protocol-level requirement for a minimum validator commission rate of 5%. This change is designed to ensure network security and validator sustainability by preventing a "race to the bottom" in commission rates.

Changes:

Proto Definition: Updated StakingParams in params.proto to include min_commission_rate using cosmossdk.io/math.LegacyDec.

Validation: Added validateMinCommissionRate in params.go to enforce the 0.05 (5%) floor during parameter updates and ValidateBasic checks.

Defaults: Updated DefaultStakingParams to set the initial floor to 5%.

Note on Code Generation: I have manually updated the .proto and logic files. However, make generate failed in my environment due to a compatibility issue with github.com/bytedance/sonic (GoMapIterator error). I am submitting the source changes so the CI or a maintainer with a compatible build environment can sync the generated .pb.go files.


This change is Reviewable

Added validation for minimum commission rate to ensure it is between 5% and 100%.
Added min_commission_rate field with custom options.
@trizzle5k trizzle5k requested a review from a team as a code owner January 17, 2026 03:24
@trizzle5k trizzle5k requested review from TxCorpi0x, masihyeganeh, metalarm10 and miladz68 and removed request for a team January 17, 2026 03:24
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.

1 participant