Token vesting — Solidity contract

Linear vesting of an ERC-20 to a beneficiary with a cliff; releasable amount computed on chain. One file, no imports, 53 lines. Compiled with solc 0.8.36 on every build. Labelled community: written for this library, not independently audited.

What it does

9 functions (8 read, 1 write), 1 events, 2095 bytes of creation bytecode. Constructor: address token, address beneficiary, uint64 start, uint64 cliff, uint64 duration.

Use it

Open it in the IDE to compile and deploy through your wallet, or fork it into a workspace and change it. The ABI explorer beside this page calls a deployed instance at any address.