ITEAMVESTING
Note: security-contact: security@nebula-labs.xyz
Functions
start
Getter for the start timestamp.
function start() external returns (uint256);
Returns
<none>
uint256
start timestamp
duration
Getter for the vesting duration.
function duration() external returns (uint256);
Returns
<none>
uint256
duration seconds
end
Getter for the end timestamp.
function end() external returns (uint256);
Returns
<none>
uint256
end timestamp
released
Getter for the amount of token already released
function released() external returns (uint256);
Returns
<none>
uint256
amount of tokens released so far
releasable
Getter for the amount of releasable token
ERC20 tokens.
function releasable() external returns (uint256);
Returns
<none>
uint256
amount of vested tokens
release
Release the tokens that have already vested. Emits a ERC20Released event.
function release() external;
cancelContract
Cancels the vesting contract and refunds remaining tokens
Release the tokens that have already vested.
function cancelContract() external returns (uint256 remainder);
Returns
remainder
uint256
Amount of tokens returned to the timelock Emits a ERC20Released event. Refund the remainder to the timelock
Events
Cancelled
Cancelled Event
event Cancelled(uint256 amount);
Parameters
amount
uint256
that was refunded to the treasury
ERC20Released
ERC20Released Event
event ERC20Released(address indexed token, uint256 amount);
Parameters
token
address
address
amount
uint256
released
VestingInitialized
Contract initialization event
event VestingInitialized(
address indexed token, address indexed beneficiary, address indexed timelock, uint64 startTimestamp, uint64 duration
);
Parameters
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
error Unauthorized();
ZeroAddress
Error thrown when a zero address is provided where a valid address is required
Used in validation of constructor parameters
error ZeroAddress();
Last updated