Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 source pure

Package vesting computes cliff-then-linear token release.

Overview

Package vesting computes cliff-then-linear token release.

Types 1

type Schedule

struct
1type Schedule struct {
2	Total    int64
3	Start    int64 // unix seconds
4	Cliff    int64 // seconds after Start before anything vests
5	Duration int64 // seconds after Start when everything has vested
6}
source

Methods on Schedule

func Releasable

method on Schedule
1func (s Schedule) Releasable(now, released int64) int64
source

func Validate

method on Schedule
1func (s Schedule) Validate()
source

func VestedAt

method on Schedule
1func (s Schedule) VestedAt(now int64) int64
source

Imports 1

Source Files 2