QuadraticTimelockedSubdelegator
Last updated
Last updated
Delegatee constructor
Parameters
Name | Type | Description |
---|---|---|
send ZEN back to timelock and selfdestruct
allows the timelocked ZEN to be delegated by the beneficiary while locked
Delegatee constructor
clawback admin needs to be 0 because clawbacks can be bricked by beneficiary
Parameters
delegate locked ZEN to a delegatee
Parameters
return delegated ZEN to the timelock
Parameters
Return Values
calculate total ZEN held plus delegated
used by LinearTokenTimelock to determine the released amount
accept beneficiary role over timelocked ZEN. Delegates all held (non-subdelegated) zen to beneficiary
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_delegatee
address
the address to delegate ZEN to
_zen
address
the ZEN token address
_beneficiary
address
default delegate, admin, and timelock beneficiary
_duration
uint256
duration of the token timelock window
_zen
address
the ZEN token address
_cliff
uint256
the seconds before first claim is allowed
_startTime
uint256
the initial time to use for timelock
delegatee
address
the target address to delegate to
amount
uint256
the amount of ZEN to delegate. Will increment existing delegated ZEN
delegatee
address
the target address to undelegate from
[0]
uint256
the amount of ZEN returned