TokenTimelock

Functions

constructor

function constructor(
    address _beneficiary,
    uint256 _duration,
    uint256 _cliffSeconds,
    address _lockedToken,
    address _clawbackAdmin
) internal

Parameters

Name
Type
Description

_beneficiary

address

_duration

uint256

_cliffSeconds

uint256

_lockedToken

address

_clawbackAdmin

address

release

function release(
    address to,
    uint256 amount
) external

releases amount unlocked tokens to address to

Parameters

Name
Type
Description

to

address

amount

uint256

releaseMax

releases maximum unlocked tokens to address to

Parameters

Name
Type
Description

to

address

totalToken

the total amount of tokens held by timelock

alreadyReleasedAmount

amount of tokens released to beneficiary

availableForRelease

amount of held tokens unlocked and available for release

setPendingBeneficiary

current beneficiary can appoint new beneficiary, which must be accepted

Parameters

Name
Type
Description

_pendingBeneficiary

address

acceptBeneficiary

pending beneficiary accepts new beneficiary

clawback

passedCliff

_proportionAvailable

Parameters

Name
Type
Description

initialBalance

uint256

elapsed

uint256

duration

uint256

_setBeneficiary

Parameters

Name
Type
Description

newBeneficiary

address

_setLockedToken

Parameters

Name
Type
Description

tokenAddress

address

_release

Parameters

Name
Type
Description

to

address

amount

uint256

Last updated