Access manager
Majora uses the OpenZeppelin AccessManager to manage the access control of protected functions of the protocol.
The following roles are defined:
Role name | RoleID | Description |
---|---|---|
ADMIN_ROLE | 0 | The Access Manager super admin. Can grant and revoke any role. Set by default in the Access Manager constructor. |
UPGRADER_ROLE | 1 | The users who can upgrade the protocol implementations. |
MOPT_TAKER_ROLE | 2 | The users / smart contracts allowed to execute a payment on MajoraOperationsPaymentToken. |
OPERATOR_ROLE | 3 | The users who can operate vault with MajoraOperatorProxy and operate Oracle on the MajoraPortal |
OPERATION_GUARDIAN_ROLE | 4 | The addresses that can lock a vault to avoid operator to rebalance it |
ERC2771_RELAYER_ROLE | 5 | the smart contracts which are considered as trusted forwarder for ERC2771 calls |
CROSSCHAIN_RELAYER_ROLE | 6 | The addresses who can call crosschain message handler functions (not used yet) |
FEE_MANAGER_ROLE | 7 | The addresses who can manage fee collectors |