Skip to main content

quota_credit

Function quota_credit 

Source
pub fn quota_credit(
    available: u64,
    debt: u64,
    credit: u64,
    burst: u64,
) -> (u64, u64)
Expand description

Credit micro-tokens to a quota bucket, repaying debt before filling its balance.

Both refill and refund use this transition; rate and clock conversion and atomic state publication remain with the caller.