Skip to main content

Endemic Vesting

Vesting contract used by strategic investors, advisors and team members. Owner is able to create token allocations and setup different vesting schedules based on END tokenomics.

Methods

allocateTokens

function allocateTokens(AllocationRequest[] calldata allocRequests)
external
onlyOwner

Creates END vesting schedule for an address. Transfers allocated END amount from owner to the contract.

AllocationRequest param

AllocationType allocType; address claimer; uint32 initialAllocation; uint32 totalAllocated; uint256 endCliff; uint256 endVesting;

NameTypeDescription
allocTypeAllocationTypeOne of the types (SEED_SALE, PRIVATE_SALE, STRATEGIC_SALE, PUBLIC_SALE, TEAM, ADVISORS)
claimeraddressaddress of the user who will receive the tokens
initialAllocationuint32amount available for claim any time
totalAllocateduint32total amount alocated for the user
endCliffuint256timestamp when cliff ends
endVestinguint256timestamp when vesting ends

claim

function claim(AllocationType allocType) external

Claims available tokens for allocation type to the calling address.

Parameters

NameTypeDescription
AllocationTypeallocTypeOne of the types (SEED_SALE, PRIVATE_SALE, STRATEGIC_SALE, PUBLIC_SALE, TEAM, ADVISORS)

claimFor

 function claimFor(address claimer, AllocationType allocType)
external
onlyOwner

Claims available tokens for allocation type to the claimer address. Callable by the owner.

Parameters

NameTypeDescription
claimeraddressaddress of the user who will receive the tokens
AllocationTypeallocTypeOne of the types (SEED_SALE, PRIVATE_SALE, STRATEGIC_SALE, PUBLIC_SALE, TEAM, ADVISORS)

getAllocationsForClaimer

function getAllocationsForClaimer(address claimer)
external
view
returns (AllocationData[] memory, uint256[] memory)

Reads allocations for claimer address

Parameters

NameTypeDescription
claimeraddressaddress of the user who will receive the tokens

Returns

TypeDescription
AllocationData[]info about allocations
uint256[]amount available for claim by each allocation

AllocationData params

NameTypeDescription
initialAllocationuint32amount available for claim any time
totalAllocateduint32total amount alocated for the user
totalClaimeduint32total amount claimed by the user
endCliffuint256timestamp when cliff ends
endVestinguint256timestamp when vesting ends