Skip to content
Commit 56e536f6 authored by NingLin-P's avatar NingLin-P Committed by GitHub
Browse files

staking: avoid proportional slashing leak dust into chunks that should not be slashed (#12058)



* replace slash ratio with remaining ratio

Signed-off-by: default avatarlinning <[email protected]>

* little refactor

Signed-off-by: default avatarlinning <[email protected]>

* fix test

Signed-off-by: default avatarlinning <[email protected]>

* fix typo

Signed-off-by: default avatarlinning <[email protected]>

* revert refactor

Signed-off-by: default avatarlinning <[email protected]>

* rounding up instead of remaining ratio

Signed-off-by: default avatarlinning <[email protected]>

* address comment

Signed-off-by: default avatarlinning <[email protected]>

* Update frame/nomination-pools/test-staking/src/lib.rs

Signed-off-by: default avatarlinning <[email protected]>

Co-authored-by: default avatarKian Paimani <[email protected]>

* Update frame/nomination-pools/test-staking/src/lib.rs

Signed-off-by: default avatarlinning <[email protected]>

Co-authored-by: default avatarRoman Useinov <[email protected]>

Signed-off-by: default avatarlinning <[email protected]>
Co-authored-by: default avatarKian Paimani <[email protected]>
Co-authored-by: default avatarRoman Useinov <[email protected]>
Co-authored-by: parity-processbot <>
parent 2795b5fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment