Lendefi DAO
  • Home
  • ❱ audit
    • Ecosystem
    • GovernanceToken
    • InvestmentManager
    • InvestorVesting
    • LendefiGovernor
    • PartnerVesting
    • TeamManager
    • TeamVesting
    • Treasury
    • Deploy
  • ❱ ecosystem
    • Ecosystem
    • GovernanceToken
    • InvestmentManager
    • InvestorVesting
    • LendefiGovernor
    • PartnerVesting
    • TeamManager
    • TeamVesting
    • Treasury
  • ❱ interfaces
    • IECOSYSTEM
    • IINVMANAGER
    • ILENDEFI
    • IPARTNERVESTING
    • ITEAMMANAGER
    • ITEAMVESTING
    • ITREASURY
    • IVESTING
  • ❱ deploys
  • ❱ tokenomics
Powered by GitBook
On this page
  • Functions
  • start
  • duration
  • end
  • released
  • releasable
  • release
  • cancelContract
  • Events
  • Cancelled
  • ERC20Released
  • VestingInitialized
  • Errors
  • Unauthorized
  • ZeroAddress
  1. ❱ interfaces

ITEAMVESTING

PreviousITEAMMANAGERNextITREASURY

Last updated 2 months ago

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.

function end() external returns (uint256);

Returns

Name
Type
Description

<none>

uint256

end timestamp

released

Getter for the amount of token already released

function released() external returns (uint256);

Returns

Name
Type
Description

<none>

uint256

amount of tokens released so far

releasable

Getter for the amount of releasable token ERC20 tokens.

function releasable() external returns (uint256);

Returns

Name
Type
Description

<none>

uint256

amount of vested tokens

release

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

Name
Type
Description

remainder

uint256

Events

Cancelled

Cancelled Event

event Cancelled(uint256 amount);

Parameters

Name
Type
Description

amount

uint256

that was refunded to the treasury

ERC20Released

ERC20Released Event

event ERC20Released(address indexed token, uint256 amount);

Parameters

Name
Type
Description

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

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

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();

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

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

Git Source
ERC20Released
ERC20Released