Expand description
§jiminy-vesting
Linear, cliff, stepped, and periodic unlock schedules.
Calculate how many tokens a user can claim right now, given a schedule and a timestamp. Covers every common vesting curve: linear with cliff, stepped (monthly/quarterly), periodic, and custom combinations.
Re-exports§
pub use pinocchio;
Functions§
- check_
cliff_ reached - Check that the cliff timestamp has been reached.
- claimable
- Compute the claimable amount (vested minus already claimed).
- elapsed_
steps - Compute the number of elapsed vesting steps given timestamps.
- unlocked_
at_ step - Compute the unlocked amount under a stepped/periodic schedule.
- vested_
amount - Compute the vested amount under a linear schedule with cliff.