crypto_rust/
utils.rs

1pub fn format_price(price: f64) -> String {
2    if price < 1.0 {
3        return format!("{:.6}", price);
4    }
5    else {
6        return format!("{:.1}", price);
7    }
8}