Function within_tolerance

Source
fn within_tolerance(
    source_gas: u64,
    target_gas: u64,
    tolerance_pct: Option<u32>,
) -> bool
Expand description

Returns true of the difference between the gas values exceeds the tolerance

If tolerance is None, then this returns true if both gas values are equal