IPARTNERVESTING
Last updated
Last updated
Author: alexei@nebula-labs(dot)xyz
Interface for PartnerVesting.sol
Note: security-contact: security@nebula-labs.xyz
Cancels the vesting contract and returns unvested funds to the creator
Only callable by the contract creator (typically the Ecosystem contract)
Returns
<none>
uint256
The amount of tokens returned to the creator
Releases vested tokens to the beneficiary (partner)
Can be called by anyone, but tokens are always sent to the contract owner (beneficiary)
Calculates the amount of tokens that can be released at the current time
Subtracts already released tokens from the total vested amount
Returns
<none>
uint256
The amount of tokens currently available for release
Returns the timestamp when vesting begins
This value is immutable and set during contract creation
Returns
<none>
uint256
The start timestamp of the vesting period
Returns the length of the vesting period
This value is immutable and set during contract creation
Returns
<none>
uint256
The duration in seconds of the vesting period
Returns the timestamp when vesting ends
Calculated as start() + duration()
Returns
<none>
uint256
The end timestamp of the vesting period
Returns the total amount of tokens that have been released so far
Used in vesting calculations to determine how many more tokens can be released
Returns
<none>
uint256
The cumulative amount of tokens released to the beneficiary
Emitted when a new vesting contract is initialized
Triggered during contract creation with the vesting parameters
Parameters
token
address
Address of the ERC20 token being vested
beneficiary
address
Address of the partner receiving the vested tokens
startTimestamp
uint64
UNIX timestamp when vesting begins
duration
uint64
Length of the vesting period in seconds
Emitted when a vesting contract is cancelled
Triggered when the contract creator cancels the vesting and reclaims unvested tokens
Parameters
amount
uint256
The amount of unvested tokens returned to the creator
Emitted when vested tokens are released to the beneficiary
Triggered each time tokens are claimed or automatically released during cancellation
Parameters
token
address
Address of the token that was released
amount
uint256
The amount of tokens released
Error thrown when an unauthorized address attempts a restricted action
Used to restrict functions that should only be callable by the contract creator
Error thrown when a zero address is provided where a valid address is required
Used in validation of constructor parameters