Module price

Source
Expand description

Utils for price representation.

Re-exports§

pub use self::decimal::Decimal;
pub use self::decimal::DecimalError;

Modules§

decimal
Decimal type for price.

Structs§

Price
Price type.

Constants§

TEN
U192 number 10.

Functions§

convert_to_u128_storage
Convert to u128 storage.
find_divisor_decimals
Finds the minimum divisor decimals needed to convert a fixed-point number from U192 storage to u128 storage.

Type Aliases§

U192
[Uint] for 192 bits.