Skip to main content

consumption_count

Function consumption_count 

Source
pub fn consumption_count(spec: &In, available: usize) -> usize
Expand description

Returns the actual number of tokens to consume given the available count.

ยงPanics

Panics if available is less than the required count.