Introduce checked PerThing
arithmetics
#199
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
D0-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder.
I4-refactor
Code needs refactoring.
I5-enhancement
An additional feature request.
T1-FRAME
This PR/Issue is related to core FRAME, the framework.
Some
PerThing
functions are prone to zero division panics. This requires the runtime code to pay close attention when calling them.Instead of relying on proof comments we could add fallible
checked
functions for:multiply_by_rational_with_rounding
rational_mul_correction
(there could be more, did not check all)
Context: paritytech/substrate#13660 (comment)
The text was updated successfully, but these errors were encountered: