Skip to main content

CuratorsRegistry

Git Source ↗

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

NameTypeDescription
senderaddressThe address of the sender
curatoraddressThe address of the curator

CuratorRemoved

Emitted when a curator is removed

event CuratorRemoved(address indexed sender, address indexed curator);

Parameters

NameTypeDescription
senderaddressThe address of the sender
curatoraddressThe address of the curator

Functions

isCurator

Checks if an address is a curator

function isCurator(address curator) external view returns (bool);

Parameters

NameTypeDescription
curatoraddressThe address of the curator

Returns

NameTypeDescription
<none>boolTrue if the address is a curator, false otherwise

addCurator

Adds a new curator

function addCurator(address curator) external override onlyOwner;

Parameters

NameTypeDescription
curatoraddressThe address of the curator to add

removeCurator

Removes a curator

function removeCurator(address curator) external override onlyOwner;

Parameters

NameTypeDescription
curatoraddressThe address of the curator to remove