Skip to content

IIP-59: Protocol-Native Voter Reward Distribution#68

Open
raullenchai wants to merge 1 commit intoiotexproject:masterfrom
raullenchai:iip-59
Open

IIP-59: Protocol-Native Voter Reward Distribution#68
raullenchai wants to merge 1 commit intoiotexproject:masterfrom
raullenchai:iip-59

Conversation

@raullenchai
Copy link
Member

Summary

Replaces the centralized Hermes reward distribution service with protocol-native, automatic voter reward distribution via hard fork.

Key changes:

  • Add CommissionRate field to Candidate registration (basis points, 0–10000)
  • Modify GrantEpochReward() to auto-distribute voter rewards proportionally by weighted vote
  • Voters claim via existing ClaimFromRewardingFund — zero new infrastructure
  • Delegates opt in by calling SetCommissionRate; legacy behavior preserved for rate = 0

Why kill Hermes:

  • Single point of failure, centralized key custody, stale codebase (2022)
  • All data for distribution already exists on-chain (buckets, vote weights, reward accounts)
  • Protocol-native distribution: zero gas, zero external dependencies, fully trustless

Includes:

  • Full specification with skeleton Go implementation code
  • Protobuf extensions
  • Test cases (8 scenarios)
  • Security analysis
  • Migration plan (gradual delegate opt-in)

Builds on IIP-58 (ioSwarm) which introduced the RewardSettlement pattern.

🤖 Generated with Claude Code

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