ACLManager
Access Control List Manager. Main registry of system roles and permissions.
POOL_ADMIN_ROLE
Returns the identifier of the PoolAdmin role
Return Values
EMERGENCY_ADMIN_ROLE
Returns the identifier of the EmergencyAdmin role
Return Values
RISK_ADMIN_ROLE
Returns the identifier of the RiskAdmin role
Return Values
FLASH_BORROWER_ROLE
Returns the identifier of the FlashBorrower role
Return Values
BRIDGE_ROLE
Returns the identifier of the Bridge role
Return Values
ASSET_LISTING_ADMIN_ROLE
Returns the identifier of the AssetListingAdmin role
Return Values
ADDRESSES_PROVIDER
Returns the contract address of the PoolAddressesProvider
Return Values
constructor
Constructor The ACL admin should be initialized at the addressesProvider beforehand
Parameters
setRoleAdmin
Set the role as admin of a specific role.
By default the admin role for all roles is DEFAULT_ADMIN_ROLE
.
Parameters
addPoolAdmin
Adds a new admin as PoolAdmin
Parameters
removePoolAdmin
Removes an admin as PoolAdmin
Parameters
isPoolAdmin
Returns true if the address is PoolAdmin, false otherwise
Parameters
Return Values
addEmergencyAdmin
Adds a new admin as EmergencyAdmin
Parameters
removeEmergencyAdmin
Removes an admin as EmergencyAdmin
Parameters
isEmergencyAdmin
Returns true if the address is EmergencyAdmin, false otherwise
Parameters
Return Values
addRiskAdmin
Adds a new admin as RiskAdmin
Parameters
removeRiskAdmin
Removes an admin as RiskAdmin
Parameters
isRiskAdmin
Returns true if the address is RiskAdmin, false otherwise
Parameters
Return Values
addFlashBorrower
Adds a new address as FlashBorrower
Parameters
removeFlashBorrower
Removes an admin as FlashBorrower
Parameters
isFlashBorrower
Returns true if the address is FlashBorrower, false otherwise
Parameters
Return Values
addBridge
Adds a new address as Bridge
Parameters
removeBridge
Removes an address as Bridge
Parameters
isBridge
Returns true if the address is Bridge, false otherwise
Parameters
Return Values
addAssetListingAdmin
Adds a new admin as AssetListingAdmin
Parameters
removeAssetListingAdmin
Removes an admin as AssetListingAdmin
Parameters
isAssetListingAdmin
Returns true if the address is AssetListingAdmin, false otherwise