Skip to content
Lattice

VestingWalletStandalone

Git Source

Inherits: VestingWallet, Initializable

Title: VestingWalletStandalone

Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/finance/VestingWallet.sol)

A non-Diamond deployable VestingWallet that can be used as a standalone contract.

Combines VestingWallet functionality with direct ownership via OwnableLib. The beneficiary is the Ownable owner; to change the beneficiary transfer ownership.

Notes:

  • lattice-version: 0.1.0
  • lattice-source: OpenZeppelin v5.1.0

Functions

constructor

constructor(address beneficiary, uint64 startTimestamp, uint64 durationSeconds) initializer;

Parameters

NameTypeDescription
beneficiaryaddressThe initial beneficiary (owner) who will receive vested tokens.
startTimestampuint64The Unix timestamp at which vesting begins.
durationSecondsuint64The total duration of the vesting period in seconds.

receive

Accepts ETH deposits.

receive() external payable;