Vesting
A utility module to provide virtual implementations of vesting schedules.
Interface
new
Calculates the amount that has already vested.
@param start: The beginning of the vesting schedule.
@param duration: The duration of the schedule.
@param balance: The current amount of tokens in the wallet.
@param already_released: The total amount of tokens released.
@param timestamp: The current time in milliseconds.
@return u64. The vested amount.
Last updated