Skip to main content

Access manager

Majora uses the OpenZeppelin AccessManager to manage the access control of protected functions of the protocol.


The following roles are defined:

Role nameRoleIDDescription
ADMIN_ROLE0The Access Manager super admin. Can grant and revoke any role. Set by default in the Access Manager constructor.
UPGRADER_ROLE1The users who can upgrade the protocol implementations.
MOPT_TAKER_ROLE2The users / smart contracts allowed to execute a payment on MajoraOperationsPaymentToken.
OPERATOR_ROLE3The users who can operate vault with MajoraOperatorProxy and operate Oracle on the MajoraPortal
OPERATION_GUARDIAN_ROLE4The addresses that can lock a vault to avoid operator to rebalance it
ERC2771_RELAYER_ROLE5the smart contracts which are considered as trusted forwarder for ERC2771 calls
CROSSCHAIN_RELAYER_ROLE6The addresses who can call crosschain message handler functions (not used yet)
FEE_MANAGER_ROLE7The addresses who can manage fee collectors