paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

Nomination pools: disallow setting above global max commission #14496

Closed rossbulat closed 1 year ago

rossbulat commented 1 year ago

This PR forces pools to not have a commission configured above GlobalMaxCommission. The current code allows users to set a current commission and max commission above GlobalMaxCommission, without any error or warning when doing so.

This PR explicitly fails the set_commission_current and set_max_commission calls if the provided commission is more than GlobalMaxCommission.

rossbulat commented 1 year ago

bot merge