ITEAMVESTING

Git Source

Note: security-contact: security@nebula-labs.xyz

Functions

start

Getter for the start timestamp.

function start() external returns (uint256);

Returns

Name
Type
Description

<none>

uint256

start timestamp

duration

Getter for the vesting duration.

function duration() external returns (uint256);

Returns

Name
Type
Description

<none>

uint256

duration seconds

end

Getter for the end timestamp.

Returns

Name
Type
Description

<none>

uint256

end timestamp

released

Getter for the amount of token already released

Returns

Name
Type
Description

<none>

uint256

amount of tokens released so far

releasable

Getter for the amount of releasable token ERC20 tokens.

Returns

Name
Type
Description

<none>

uint256

amount of vested tokens

release

Release the tokens that have already vested. Emits a ERC20Released event.

cancelContract

Cancels the vesting contract and refunds remaining tokens

Release the tokens that have already vested.

Returns

Name
Type
Description

remainder

uint256

Amount of tokens returned to the timelock Emits a ERC20Released event. Refund the remainder to the timelock

Events

Cancelled

Cancelled Event

Parameters

Name
Type
Description

amount

uint256

that was refunded to the treasury

ERC20Released

ERC20Released Event

Parameters

Name
Type
Description

token

address

address

amount

uint256

released

VestingInitialized

Contract initialization event

Parameters

Name
Type
Description

token

address

Address of the vested token contract

beneficiary

address

Address that will receive the vested tokens

timelock

address

Address of the timelock contract that can cancel vesting

startTimestamp

uint64

Unix timestamp when vesting begins

duration

uint64

Length of the vesting period in seconds

Errors

Unauthorized

Error thrown when an unauthorized address attempts a restricted action

Used to restrict functions that should only be callable by the contract creator

ZeroAddress

Error thrown when a zero address is provided where a valid address is required

Used in validation of constructor parameters

Last updated