TokenTimelock
Functions
constructor
function constructor(
address _beneficiary,
uint256 _duration,
uint256 _cliffSeconds,
address _lockedToken,
address _clawbackAdmin
) internalParameters
Name
Type
Description
_beneficiary
address
_duration
uint256
_cliffSeconds
uint256
_lockedToken
address
_clawbackAdmin
address
release
function release(
address to,
uint256 amount
) externalreleases amount unlocked tokens to address to
Parameters
Name
Type
Description
to
address
amount
uint256
releaseMax
function releaseMax(
address to
) externalreleases maximum unlocked tokens to address to
Parameters
Name
Type
Description
to
address
totalToken
function totalToken() public returns (uint256)the total amount of tokens held by timelock
alreadyReleasedAmount
function alreadyReleasedAmount() public returns (uint256)amount of tokens released to beneficiary
availableForRelease
function availableForRelease() public returns (uint256)amount of held tokens unlocked and available for release
setPendingBeneficiary
function setPendingBeneficiary(
address _pendingBeneficiary
) publiccurrent beneficiary can appoint new beneficiary, which must be accepted
Parameters
Name
Type
Description
_pendingBeneficiary
address
acceptBeneficiary
function acceptBeneficiary() publicpending beneficiary accepts new beneficiary
clawback
function clawback() publicpassedCliff
function passedCliff() public returns (bool)_proportionAvailable
function _proportionAvailable(
uint256 initialBalance,
uint256 elapsed,
uint256 duration
) internal returns (uint256)Parameters
Name
Type
Description
initialBalance
uint256
elapsed
uint256
duration
uint256
_setBeneficiary
function _setBeneficiary(
address newBeneficiary
) internalParameters
Name
Type
Description
newBeneficiary
address
_setLockedToken
function _setLockedToken(
address tokenAddress
) internalParameters
Name
Type
Description
tokenAddress
address
_release
function _release(
address to,
uint256 amount
) internalParameters
Name
Type
Description
to
address
amount
uint256
Last updated