mantissa_to_price

Function mantissa_to_price 

Source
pub fn mantissa_to_price(mantissa: i64, exponent: i8, precision: u8) -> Price
Expand description

Converts a mantissa/exponent pair to a Nautilus [Price].

Uses pure integer arithmetic: raw = mantissa * 10^(FIXED_PRECISION + exponent).

ยงPanics

Panics if the scaled value overflows i64.