Skip to main content

is_sane_usd_rate

Function is_sane_usd_rate 

pub fn is_sane_usd_rate(rate: f64) -> bool
Expand description

Whether a USD rate is finite, non-negative, and within the shared safety bound. Zero remains valid so an explicitly free resource is distinguishable from unavailable pricing.