pallet-staking: Converts all math operations to safe (#2435)
This PR converts unsafe math operations to safe in the staking pallet.
Closes https://github.com/paritytech/polkadot-sdk/issues/2431
---------
Co-authored-by:
Ankan <10196091+Ank4n@users.noreply.github.com>
Showing
- substrate/frame/staking/src/lib.rs 6 additions, 5 deletionssubstrate/frame/staking/src/lib.rs
- substrate/frame/staking/src/pallet/impls.rs 8 additions, 6 deletionssubstrate/frame/staking/src/pallet/impls.rs
- substrate/frame/staking/src/pallet/mod.rs 3 additions, 1 deletionsubstrate/frame/staking/src/pallet/mod.rs
- substrate/frame/staking/src/slashing.rs 16 additions, 11 deletionssubstrate/frame/staking/src/slashing.rs
Please register or sign in to comment