Make post dispatch fee consistent with a direct calculation (#6165)

* Make post dispatch fee consistent with a direct calculation

* Remove unnecessary `saturated_into` calls

* Add test with negative multipliers

* Added regression test

* Test improvements
This commit is contained in:
Alexander Theißen
2020-05-28 14:33:10 +02:00
committed by GitHub
parent 95d73994c1
commit c672cce4bd
4 changed files with 136 additions and 29 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ pub use sp_core::RuntimeDebug;
/// Re-export top-level arithmetic stuff.
pub use sp_arithmetic::{
Perquintill, Perbill, Permill, Percent, PerU16, Rational128, Fixed64, Fixed128,
PerThing, traits::SaturatedConversion, FixedPointNumber,
PerThing, traits::SaturatedConversion, FixedPointNumber, FixedPointOperand,
};
/// Re-export 128 bit helpers.
pub use sp_arithmetic::helpers_128bit;