staking: avoid proportional slashing leak dust into chunks that should not be slashed (#12058)
* replace slash ratio with remaining ratio Signed-off-by: linning <[email protected]> * little refactor Signed-off-by: linning <[email protected]> * fix test Signed-off-by: linning <[email protected]> * fix typo Signed-off-by: linning <[email protected]> * revert refactor Signed-off-by: linning <[email protected]> * rounding up instead of remaining ratio Signed-off-by: linning <[email protected]> * address comment Signed-off-by: linning <[email protected]> * Update frame/nomination-pools/test-staking/src/lib.rs Signed-off-by: linning <[email protected]> Co-authored-by: Kian Paimani <[email protected]> * Update frame/nomination-pools/test-staking/src/lib.rs Signed-off-by: linning <[email protected]> Co-authored-by: Roman Useinov <[email protected]> Signed-off-by: linning <[email protected]> Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Roman Useinov <[email protected]> Co-authored-by: parity-processbot <>
parent
2795b5fd
Please register or sign in to comment