Description
CoreControlled is an abstract contract that other protocol contracts inherit from to gain access to the role-based permission system. It maintains a reference to the InfiniFiCore contract and provides modifiers for role checks.
Usage
Contracts inheriting fromCoreControlled can use the onlyCoreRole modifier to restrict function access:
Modifiers
onlyCoreRole
Integration
All protocol contracts that require access control should:- Inherit from
CoreControlled - Accept the
InfiniFiCoreaddress in their constructor - Use
onlyCoreRolemodifiers on sensitive functions