Documentation Index
Fetch the complete documentation index at: https://docs-preview.infinifi.xyz/llms.txt
Use this file to discover all available pages before exploring further.
CoreControlled.sol
Purpose: Base contract that enables role-based access control by referencing the InfiniFiCore registry.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