feat(iip-59): SetCommissionRate action + CandidateV2 commission fields#168
Open
raullenchai wants to merge 1 commit into
Open
feat(iip-59): SetCommissionRate action + CandidateV2 commission fields#168raullenchai wants to merge 1 commit into
raullenchai wants to merge 1 commit into
Conversation
…ields Proto changes for IIP-59 (protocol-native voter reward distribution): action.proto: - Add SetCommissionRate message (rate: uint64 basis points 0-10000) - Add setCommissionRate field 54 to ActionCore oneof state_data.proto: - Add commissionRate (field 10) to CandidateV2 - Add commissionRateLastEpoch (field 11) to CandidateV2 These fields enable: 1. Delegates to opt-in to automatic voter reward distribution 2. RPC/API to expose commission rate in candidate queries 3. Cooldown enforcement (last epoch tracking) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proto changes for IIP-59: protocol-native voter reward distribution.
Changes
action.proto:
SetCommissionRatemessage:rate(uint64, basis points 0-10000)ActionCoreoneof:setCommissionRatestate_data.proto:
CandidateV2.commissionRate(field 10): delegate's voter reward commission rateCandidateV2.commissionRateLastEpoch(field 11): cooldown enforcementUsage
Companion PR: iotexproject/iotex-core#4811
🤖 Generated with Claude Code