jiminy-vesting 0.16.0

Vesting schedule helpers for Jiminy: linear+cliff, stepped, periodic unlock, claimable calculations. Zero-copy, no_std, no_alloc, BPF-safe.
Documentation

jiminy-vesting

Linear + cliff vesting, stepped schedules, periodic unlock, claimable amount calculation.

jiminy-vesting = "0.16"

use jiminy_vesting::*;

let vested = vested_amount(total, start, cliff, end, now);
check_cliff_reached(cliff, now)?;
let claim = claimable(vested, already_claimed);

Also has unlocked_at_step for discrete step schedules and elapsed_steps for counting complete periods.

#![no_std] / no_alloc / BPF-safe / Apache-2.0

MoonManQuark / Bluefoot Labs