SIMD-0291

Commission Rate in Basis Points

Author: Justin Starry (Anza) · Category: Core Protocol GitHub →

TL;DR

Allow validators to update their inflations reward commission rate with basis points and update commission calculation.

Summary

Allow validators to update their inflations reward commission rate with basis points and update commission calculation.

Motivation

Validators should have more fine grained control over commission values beyond integer percentage values.

Key Changes

  • If the number of account inputs is less than 1, return
  • If the vote account (index 0) fails to deserialize, return
  • If the vote account's authorized withdrawer is not an account input for the
  • CommissionKind::InflationRewards: update the
  • CommissionKind::BlockRevenue: return

Impact

Validators will be able to set inflation rewards commission rates in basis points.

Backwards Compatibility

*(Optional)* A feature gate will be used to simultaneously update the vote program to support commission rates in basis points as well as update the runtime's commission calculations at epoch boundaries.

Security Considerations

NA