hopper-vesting
Vesting schedule math for Hopper programs: linear schedules with cliffs,
stepped unlocks, elapsed-step calculation, and safe claimable amounts. Pure
functions, no_std, no_alloc, and BPF-safe.
Part of the Hopper framework.
The crate does not own schedule storage. Your account layout stores the terms; these helpers compute how much is vested and how much is still claimable at a given timestamp.
use ;
let vested = vested_amount;
let to_send = claimable;
Docs: https://docs.rs/crate/hopper-vesting/0.1.0
License: Apache-2.0.