ITEAMMANAGER
Interface for the Lendefi DAO Team Manager
Notes:
security-contact: security@nebula-labs.xyz
copyright: Copyright (c) 2025 Nebula Holding Inc. All rights reserved.
Functions
pause
Pause contract.
function pause() external;unpause
Unpause contract.
function unpause() external;addTeamMember
Create and fund a vesting contract for a new team member
function addTeamMember(address beneficiary, uint256 amount, uint256 cliff, uint256 duration) external;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)
scheduleUpgrade
Schedules an upgrade to a new implementation
Parameters
newImplementation
address
Address of the new implementation
upgradeTimelockRemaining
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
version
Getter for the UUPS version, incremented each time an upgrade occurs.
Returns
<none>
uint32
version number (1,2,3)
allocations
Getter for the amount of tokens allocated to team member.
Parameters
account
address
address
Returns
<none>
uint256
amount of tokens allocated to member
vestingContracts
Getter for the address of vesting contract created for team member.
Parameters
account
address
address
Returns
<none>
address
vesting contract address
supply
Starting supply allocated to team.
Returns
<none>
uint256
amount
totalAllocation
Total amount of token allocated so far.
Returns
<none>
uint256
amount
pendingUpgrade
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
timelock
Get the timelock address.
Returns
<none>
address
Address of the timelock controller
cancelUpgrade
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
Events
Initialized
Initialized Event.
Parameters
src
address
sender address
Upgrade
Upgrade Event.
Parameters
src
address
sender address
implementation
address
address
AddTeamMember
AddTeamMember Event.
Parameters
account
address
member address
vesting
address
contract address
amount
uint256
of tokens allocated to vesting
UpgradeScheduled
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
UpgradeCancelled
Emitted when a scheduled upgrade is cancelled
Parameters
canceller
address
The address that cancelled the upgrade
implementation
address
The implementation address that was cancelled
Errors
ZeroAddress
Error thrown when an address parameter is zero
ZeroAmount
Error thrown when an amount parameter is zero
BeneficiaryAlreadyExists
Error thrown when a beneficiary already has an allocation
Parameters
beneficiary
address
The address that already has an allocation
InvalidCliff
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
InvalidDuration
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
SupplyExceeded
Error thrown when allocation exceeds remaining supply
Parameters
requested
uint256
The requested allocation amount
available
uint256
The available supply
UpgradeTimelockActive
Error thrown when trying to execute an upgrade too soon
Parameters
remainingTime
uint256
The time remaining until upgrade can be executed
UpgradeNotScheduled
Error thrown when trying to execute an upgrade that wasn't scheduled
ImplementationMismatch
Error thrown when trying to execute an upgrade with wrong implementation
Parameters
expected
address
The expected implementation address
provided
address
The provided implementation address
ValidationFailed
Error thrown for general validation failures
Parameters
reason
string
Description of the validation failure
Structs
UpgradeRequest
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
Last updated