fn convert_to_base_token(&self, price_in_wei: u64) -> u64 {
        let converted_price = u128::from(price_in_wei)
            * u128::from(self.conversion_ratio.numerator.get())
            / u128::from(self.conversion_ratio.denominator.get());

        // Match on the converted price to ensure it can be represented as a u64
        match converted_price.try_into() {
            Ok(converted_price) => converted_price,
            Err(_) => {
                if converted_price > u128::from(u64::MAX) {
                    tracing::warn!(
                        "Conversion to base token price failed: converted price is too large: {}. Using u64::MAX instead.",
                        converted_price
                    );
                } else {
                    panic!(
                        "Conversion to base token price failed: converted price is not a valid u64: {}",
                        converted_price
                    );
                }
                u64::MAX
            }
        }
    }
Converts the fee param to the base token.
core/lib/types/src/fee_model.rs