pub fn read_ratio_arg<T>(
caller: &mut Caller<'_, T>,
arg: Option<Rooted<StructRef>>,
) -> Result<Option<(i64, i64)>>Expand description
Reads a $ratio arg ref into its (numer, denom) components. None
returns for a null ref; a non-positive denominator is a structured trap.
Mirrors read_commodity_arg for the
dimensionless Scalar stratum (a draft-split amount).