ITEAMMANAGER
Last updated
Last updated
Interface for the Lendefi DAO Team Manager
Notes:
security-contact: security@nebula-labs.xyz
copyright: Copyright (c) 2025 Nebula Holding Inc. All rights reserved.
Pause contract.
Unpause contract.
Create and fund a vesting contract for a new team member
Parameters
beneficiary
address
beneficiary address
amount
uint256
token amount
cliff
uint256
cliff period in seconds
duration
uint256
vesting duration in seconds after cliff (e.g. 24 months)
Schedules an upgrade to a new implementation
Parameters
newImplementation
address
Address of the new implementation
Returns the remaining time before a scheduled upgrade can be executed
Returns
<none>
uint256
The time remaining in seconds, or 0 if no upgrade is scheduled or timelock has passed
Getter for the UUPS version, incremented each time an upgrade occurs.
Returns
<none>
uint32
version number (1,2,3)
Getter for the amount of tokens allocated to team member.
Parameters
account
address
address
Returns
<none>
uint256
amount of tokens allocated to member
Getter for the address of vesting contract created for team member.
Parameters
account
address
address
Returns
<none>
address
vesting contract address
Starting supply allocated to team.
Returns
<none>
uint256
amount
Total amount of token allocated so far.
Returns
<none>
uint256
amount
Access the pending upgrade information
Returns
implementation
address
The address of the pending implementation
scheduledTime
uint64
The timestamp when the upgrade was scheduled
exists
bool
Whether a pending upgrade exists
Get the timelock address.
Returns
<none>
address
Address of the timelock controller
Cancels a previously scheduled upgrade
Removes a pending upgrade from the schedule
Notes:
access: Restricted to UPGRADER_ROLE
state-changes:
Clears the pendingUpgrade data
Emits an UpgradeCancelled event
Initialized Event.
Parameters
src
address
sender address
Upgrade Event.
Parameters
src
address
sender address
implementation
address
address
AddTeamMember Event.
Parameters
account
address
member address
vesting
address
contract address
amount
uint256
of tokens allocated to vesting
Emitted when an upgrade is scheduled
Parameters
sender
address
The address that scheduled the upgrade
implementation
address
The new implementation address
scheduledTime
uint64
The time when the upgrade was scheduled
effectiveTime
uint64
The time when the upgrade can be executed
Emitted when a scheduled upgrade is cancelled
Parameters
canceller
address
The address that cancelled the upgrade
implementation
address
The implementation address that was cancelled
Error thrown when an address parameter is zero
Error thrown when an amount parameter is zero
Error thrown when a beneficiary already has an allocation
Parameters
beneficiary
address
The address that already has an allocation
Error thrown when cliff is outside allowed range
Parameters
provided
uint256
The provided cliff duration
minAllowed
uint256
The minimum allowed cliff duration
maxAllowed
uint256
The maximum allowed cliff duration
Error thrown when duration is outside allowed range
Parameters
provided
uint256
The provided vesting duration
minAllowed
uint256
The minimum allowed vesting duration
maxAllowed
uint256
The maximum allowed vesting duration
Error thrown when allocation exceeds remaining supply
Parameters
requested
uint256
The requested allocation amount
available
uint256
The available supply
Error thrown when trying to execute an upgrade too soon
Parameters
remainingTime
uint256
The time remaining until upgrade can be executed
Error thrown when trying to execute an upgrade that wasn't scheduled
Error thrown when trying to execute an upgrade with wrong implementation
Parameters
expected
address
The expected implementation address
provided
address
The provided implementation address
Error thrown for general validation failures
Parameters
reason
string
Description of the validation failure
Upgrade request details
Tracks pending contract upgrades with timelock
Properties
implementation
address
New implementation contract address
scheduledTime
uint64
When the upgrade was requested
exists
bool
Whether this upgrade request is active