Skip to main content

is_usurious

Function is_usurious 

Source
pub fn is_usurious(
    projected_spend: u64,
    budget: u64,
    overage_percent: u64,
) -> bool
Expand description

Has projected_spend breached the usury ceiling for budget? Spending up to and including the ceiling is permitted; only a strictly greater spend is usurious.