LinearTokenTimelock
Events
BeneficiaryUpdate
event BeneficiaryUpdate(address)
Params
Param |
Type |
Notes |
_beneficiary indexed |
address |
|
DurationUpdate
event DurationUpdate(uint256,uint256)
Params
Param |
Type |
Notes |
oldDuration |
uint256 |
|
newDuration |
uint256 |
|
PendingBeneficiaryUpdate
event PendingBeneficiaryUpdate(address)
Params
Param |
Type |
Notes |
_pendingBeneficiary indexed |
address |
|
Release
event Release(address,address,uint256)
Params
Param |
Type |
Notes |
_beneficiary indexed |
address |
|
_recipient indexed |
address |
|
_amount |
uint256 |
|
TimerReset
event TimerReset(uint256)
Params
Param |
Type |
Notes |
startTime |
uint256 |
|
Methods
acceptBeneficiary
function acceptBeneficiary() nonpayable
pending beneficiary accepts new beneficiary
alreadyReleasedAmount
function alreadyReleasedAmount() view returns(uint256)
amount of tokens released to beneficiary
Returns
availableForRelease
function availableForRelease() view returns(uint256)
amount of held tokens unlocked and available for release
Returns
beneficiary
function beneficiary() view returns(address)
beneficiary of tokens after they are released
Returns
clawback
function clawback() nonpayable
clawbackAdmin
function clawbackAdmin() view returns(address)
Returns
cliffSeconds
function cliffSeconds() view returns(uint256)
number of seconds before releasing is allowed
Returns
duration
function duration() view returns(uint256)
the duration of the timed period
Returns
initialBalance
function initialBalance() view returns(uint256)
initial balance of lockedToken
Returns
isTimeEnded
function isTimeEnded() view returns(bool)
return true if time period has ended
Returns
isTimeStarted
function isTimeStarted() view returns(bool)
Returns
lockedToken
function lockedToken() view returns(address)
ERC20 basic token contract being held in timelock
Returns
passedCliff
function passedCliff() view returns(bool)
Returns
pendingBeneficiary
function pendingBeneficiary() view returns(address)
pending beneficiary appointed by current beneficiary
Returns
release
function release(address,uint256) nonpayable
releases amount
unlocked tokens to address to
Params
Param |
Type |
Notes |
to |
address |
|
amount |
uint256 |
|
releaseMax
function releaseMax(address) nonpayable
releases maximum unlocked tokens to address to
Params
Param |
Type |
Notes |
to |
address |
|
remainingTime
function remainingTime() view returns(uint256)
number of seconds remaining until time is up
Returns
setPendingBeneficiary
function setPendingBeneficiary(address) nonpayable
current beneficiary can appoint new beneficiary, which must be accepted
Params
Param |
Type |
Notes |
_pendingBeneficiary |
address |
|
startTime
function startTime() view returns(uint256)
the start timestamp of the timed period
Returns
timeSinceStart
function timeSinceStart() view returns(uint256)
number of seconds since contract was initialized
will be less than or equal to duration
Returns
totalToken
function totalToken() view returns(uint256)
the total amount of tokens held by timelock
Returns