Skip to main content

plan_within_grace

Function plan_within_grace 

Source
pub fn plan_within_grace(
    verified_at: i64,
    now: i64,
    grace_days: i64,
) -> (bool, i64)
Expand description

Pure grace check (no clock/IO) so it is unit-testable: is a plan confirmed at verified_at still within grace_days of now? Returns the age in days too.