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