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
provider
contract IPoolAddressesProvider
The address of the PoolAddressesProvider
setRoleAdmin
Set the role as admin of a specific role.
By default the admin role for all roles is DEFAULT_ADMIN_ROLE
.
Parameters
role
bytes32
The role to be managed by the admin role
adminRole
bytes32
The admin role
addPoolAdmin
Adds a new admin as PoolAdmin
Parameters
admin
address
The address of the new admin
removePoolAdmin
Removes an admin as PoolAdmin
Parameters
admin
address
The address of the admin to remove
isPoolAdmin
Returns true if the address is PoolAdmin, false otherwise
Parameters
admin
address
The address to check
Return Values
[0]
bool
True if the given address is PoolAdmin, false otherwise
addEmergencyAdmin
Adds a new admin as EmergencyAdmin
Parameters
admin
address
The address of the new admin
removeEmergencyAdmin
Removes an admin as EmergencyAdmin
Parameters
admin
address
The address of the admin to remove
isEmergencyAdmin
Returns true if the address is EmergencyAdmin, false otherwise
Parameters
admin
address
The address to check
Return Values
[0]
bool
True if the given address is EmergencyAdmin, false otherwise
addRiskAdmin
Adds a new admin as RiskAdmin
Parameters
admin
address
The address of the new admin
removeRiskAdmin
Removes an admin as RiskAdmin
Parameters
admin
address
The address of the admin to remove
isRiskAdmin
Returns true if the address is RiskAdmin, false otherwise
Parameters
admin
address
The address to check
Return Values
[0]
bool
True if the given address is RiskAdmin, false otherwise
addFlashBorrower
Adds a new address as FlashBorrower
Parameters
borrower
address
The address of the new FlashBorrower
removeFlashBorrower
Removes an admin as FlashBorrower
Parameters
borrower
address
The address of the FlashBorrower to remove
isFlashBorrower
Returns true if the address is FlashBorrower, false otherwise
Parameters
borrower
address
The address to check
Return Values
[0]
bool
True if the given address is FlashBorrower, false otherwise
addBridge
Adds a new address as Bridge
Parameters
bridge
address
The address of the new Bridge
removeBridge
Removes an address as Bridge
Parameters
bridge
address
The address of the bridge to remove
isBridge
Returns true if the address is Bridge, false otherwise
Parameters
bridge
address
The address to check
Return Values
[0]
bool
True if the given address is Bridge, false otherwise
addAssetListingAdmin
Adds a new admin as AssetListingAdmin
Parameters
admin
address
The address of the new admin
removeAssetListingAdmin
Removes an admin as AssetListingAdmin
Parameters
admin
address
The address of the admin to remove
isAssetListingAdmin
Returns true if the address is AssetListingAdmin, false otherwise
Parameters
admin
address
The address to check
Return Values
[0]
bool
True if the given address is AssetListingAdmin, false otherwise