PolicyAdmin.sol
Base contract for role-based access control in the Olympus system. Provides function modifiers and role checking based on ROLES module.
Functions
onlyAdminRole()
Requires caller to have admin role
Used for configuration functions
onlyEmergencyRole()
Requires caller to have emergency role
Used for critical safety functions
onlyEmergencyOrAdminRole()
Accepts either role
Used when both roles should have access
_isAdmin(address account)
Internal check for admin role
Returns boolean
_isEmergency(address account)
Internal check for emergency role
Returns boolean
Last updated