Type Definition framenode_runtime::Fixed
source · pub type Fixed = FixedPoint<i128, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>;
Expand description
Basic type representing assets quantity.
MAX = (2 ** (BITS_COUNT - 1) - 1) / 10 ** PRECISION = = (2 ** (128 - 1) - 1) / 1e18 = = 170_141_183_460_469_231_731.687_303_715_884_105_727 ~ ~ 1.7e20 ERROR_MAX = 0.5 / (10 ** PRECISION) = = 0.5 / 1e18 = = 5e-19