Skip to main content

quota_debt_cap

Function quota_debt_cap 

Source
pub fn quota_debt_cap(wait_nanos: u128, rate: u64) -> u64
Expand description

Greatest representable whole micro-token debt earned during this wait.

The caller converts its time bound to the clock’s nanosecond resolution; carried fractional credit can only repay this conservative cap sooner.