Unlocker
ITokenTableUnlockerV2
The lightweight interface for TokenTableUnlockerV2(.5.x), which handles token unlocking and distribution for TokenTable.
PresetCreated
ActualCreated
ActualCancelled
TokensClaimed
TokensWithdrawn
ClaimingDelegateSet
CreateDisabled
CancelDisabled
HookDisabled
WithdrawDisabled
InvalidPresetFormat
0x0ef8e8dc
PresetExists
0x7cbb15b4
PresetDoesNotExist
0xbd88ff7b
ActualDoesNotExist
0x06aed316
InvalidSkipAmount
0x78c0fc43
NotPermissioned
0x7f63bd0f
initialize
This contract should be deployed with TTUDeployerLite
, which calls this function with the correct parameters.
Parameters
createPresets
Creates an unlocking schedule preset template.
Emits PresetCreated
. Only callable by the owner.
Parameters
createActuals
Creates an actual unlocking schedule based on a preset.
Emits ActualCreated
. A FutureToken is minted in the process with tokenId == actualId
.
Parameters
withdrawDeposit
Withdraws existing deposit from the contract.
Emits TokensWithdrawn
. Only callable by the owner.
Parameters
claim
Claims claimable tokens for the specified schedules to the specified addresses respectively.
Emits TokensClaimed
. Only callable by the FutureToken owner.
Parameters
delegateClaim
Claims claimable tokens for the specified schedules on behalf of recipients. Claimed tokens are sent to the schedule recipients.
Emits TokensClaimed
. Only callable by the claiming delegate.
Parameters
cancel
Cancels an array of unlocking schedules effective immediately. Tokens not yet claimed but are already unlocked will be tallied.
Emits ActualCancelled
. Only callable by the owner.
Parameters
Return Values
setHook
Sets the hook contract.
Only callable by the owner.
Parameters
setClaimingDelegate
Sets the claiming delegate who can trigger claims on behalf of recipients.
Only callable by the owner.
Parameters
disableCreate
Permanently disables the createActuals()
function.
Only callable by the owner.
disableCancel
Permanently disables the cancel()
function.
Only callable by the owner.
disableHook
Permanently disables the hook.
Only callable by the owner.
disableWithdraw
Permanently prevents the founder from withdrawing deposits.
Only callable by the owner.
deployer
Return Values
futureToken
Return Values
hook
Return Values
claimingDelegates
Return Values
isCreateable
Return Values
isCancelable
Return Values
isHookable
Return Values
isWithdrawable
Return Values
pendingAmountClaimableForCancelledActuals
Parameters
Return Values
getEncodedPreset
To decode in JS, use:
Parameters
Return Values
actuals
Returns the Actual struct based on the input ID.
BIPS_PRECISION
Return Values
calculateAmountClaimable
Calculates the amount of unlocked tokens that have yet to be claimed in an actual unlocking schedule.
This is the most complex part of the smart contract. Quite a bit of calculations are performed here.
Parameters
Return Values
simulateAmountClaimable
Simulates the amount of unlocked tokens that have yet to be claimed at a specific time in an actual unlocking schedule.
This is the most complex part of the smart contract. Quite a bit of calculations are performed here.
Parameters
Return Values
Last updated