This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Revise staking origins #12930
Labels
J0-enhancement
An additional feature request.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Currently,
cancel_defered_slash
has a custom origin.everything else, including:
force_unstake
set_config
(sets the count bounds, min bonds, and min-commission)are all root. Some of these are not justifiable to be root, and not in-line with gov v2.
An easy fix is to make all of this be one custom origin, and map them to
StakingAdmin
on Kusama (andRoot
in Polkadot while we're at Gov v1). So rename and reuse the existingSlashCancelOrigin
for more things.I thought about splitting them up, but it doesn't make sense. Almost all of these are equally important, and with obtaining any of them you can attack a chain.
For example:
So all of them can be equally destructive and should be well protected.
Long term, it would be good if we can extract setting commission into another transaction that has a slightly weaker origin, as this one is the only non-attackbale one.
The text was updated successfully, but these errors were encountered: