pub fn normalize_amount(amount: f64, precision: u8) -> f64
Normalizes the given amount by truncating it to the specified decimal precision.