CuratorsRegistry
Inherits: Ownable2Step ↗, ICuratorsRegistry
Defines the registry functionality that keeps track of Curators for the sub-vaults.
Events
CuratorAdded
Emitted when a new curator is added
event CuratorAdded(address indexed sender, address indexed curator);
Parameters
| Name | Type | Description |
|---|---|---|
sender | address | The address of the sender |
curator | address | The address of the curator |
CuratorRemoved
Emitted when a curator is removed
event CuratorRemoved(address indexed sender, address indexed curator);
Parameters
| Name | Type | Description |
|---|---|---|
sender | address | The address of the sender |
curator | address | The address of the curator |
Functions
isCurator
Checks if an address is a curator
function isCurator(address curator) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
curator | address | The address of the curator |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | True if the address is a curator, false otherwise |
addCurator
Adds a new curator
function addCurator(address curator) external override onlyOwner;
Parameters
| Name | Type | Description |
|---|---|---|
curator | address | The address of the curator to add |
removeCurator
Removes a curator
function removeCurator(address curator) external override onlyOwner;
Parameters
| Name | Type | Description |
|---|---|---|
curator | address | The address of the curator to remove |