Skip to main content

effective_rate_ceiling

Function effective_rate_ceiling 

Source
pub const fn effective_rate_ceiling(
    probe_relative: u64,
    config_absolute: u64,
) -> u64
Expand description

Combine the two buyer rate ceilings into one effective bound, treating 0 as “unbounded” on each input (the probe-relative bound and the absolute config bound are both optional). Returns 0 only when BOTH are unbounded.