Skip to main content

IVotingToken

Functions

delegate

function delegate(
address delegatee
) external

Parameters

NameTypeDescription
delegateeaddress

LinearTimelockedDelegator

allows the timelocked tokens to be delegated by the beneficiary while locked

Functions

constructor

function constructor(
address _beneficiary,
uint256 _duration,
address _token,
uint256 _cliff,
address _clawbackAdmin,
uint256 _startTime
) public

LinearTimelockedDelegator constructor

Parameters

NameTypeDescription
_beneficiaryaddressadmin, and timelock beneficiary
_durationuint256duration of the token timelock window
_tokenaddressthe token address
_cliffuint256the seconds before first claim is allowed
_clawbackAdminaddressthe address which can trigger a clawback
_startTimeuint256the unix epoch for starting timelock. Use 0 to start at deployment

acceptBeneficiary

function acceptBeneficiary() public

accept beneficiary role over timelocked TRIBE

_setBeneficiary internal call checks msg.sender == pendingBeneficiary

delegate

function delegate(
address to
) public

delegate all held TRIBE to the to address

Parameters

NameTypeDescription
toaddress