ACLManager

Access Control List Manager. Main registry of system roles and permissions.

POOL_ADMIN_ROLE

bytes32 POOL_ADMIN_ROLE

Returns the identifier of the PoolAdmin role

Return Values

EMERGENCY_ADMIN_ROLE

bytes32 EMERGENCY_ADMIN_ROLE

Returns the identifier of the EmergencyAdmin role

Return Values

RISK_ADMIN_ROLE

bytes32 RISK_ADMIN_ROLE

Returns the identifier of the RiskAdmin role

Return Values

FLASH_BORROWER_ROLE

bytes32 FLASH_BORROWER_ROLE

Returns the identifier of the FlashBorrower role

Return Values

BRIDGE_ROLE

bytes32 BRIDGE_ROLE

Returns the identifier of the Bridge role

Return Values

ASSET_LISTING_ADMIN_ROLE

bytes32 ASSET_LISTING_ADMIN_ROLE

Returns the identifier of the AssetListingAdmin role

Return Values

ADDRESSES_PROVIDER

contract IPoolAddressesProvider ADDRESSES_PROVIDER

Returns the contract address of the PoolAddressesProvider

Return Values

constructor

constructor(contract IPoolAddressesProvider provider) public

Constructor The ACL admin should be initialized at the addressesProvider beforehand

Parameters

setRoleAdmin

function setRoleAdmin(bytes32 role, bytes32 adminRole) external

Set the role as admin of a specific role.

By default the admin role for all roles is DEFAULT_ADMIN_ROLE.

Parameters

addPoolAdmin

function addPoolAdmin(address admin) external

Adds a new admin as PoolAdmin

Parameters

removePoolAdmin

function removePoolAdmin(address admin) external

Removes an admin as PoolAdmin

Parameters

isPoolAdmin

function isPoolAdmin(address admin) external view returns (bool)

Returns true if the address is PoolAdmin, false otherwise

Parameters

Return Values

addEmergencyAdmin

function addEmergencyAdmin(address admin) external

Adds a new admin as EmergencyAdmin

Parameters

removeEmergencyAdmin

function removeEmergencyAdmin(address admin) external

Removes an admin as EmergencyAdmin

Parameters

isEmergencyAdmin

function isEmergencyAdmin(address admin) external view returns (bool)

Returns true if the address is EmergencyAdmin, false otherwise

Parameters

Return Values

addRiskAdmin

function addRiskAdmin(address admin) external

Adds a new admin as RiskAdmin

Parameters

removeRiskAdmin

function removeRiskAdmin(address admin) external

Removes an admin as RiskAdmin

Parameters

isRiskAdmin

function isRiskAdmin(address admin) external view returns (bool)

Returns true if the address is RiskAdmin, false otherwise

Parameters

Return Values

addFlashBorrower

function addFlashBorrower(address borrower) external

Adds a new address as FlashBorrower

Parameters

removeFlashBorrower

function removeFlashBorrower(address borrower) external

Removes an admin as FlashBorrower

Parameters

isFlashBorrower

function isFlashBorrower(address borrower) external view returns (bool)

Returns true if the address is FlashBorrower, false otherwise

Parameters

Return Values

addBridge

function addBridge(address bridge) external

Adds a new address as Bridge

Parameters

removeBridge

function removeBridge(address bridge) external

Removes an address as Bridge

Parameters

isBridge

function isBridge(address bridge) external view returns (bool)

Returns true if the address is Bridge, false otherwise

Parameters

Return Values

addAssetListingAdmin

function addAssetListingAdmin(address admin) external

Adds a new admin as AssetListingAdmin

Parameters

removeAssetListingAdmin

function removeAssetListingAdmin(address admin) external

Removes an admin as AssetListingAdmin

Parameters

isAssetListingAdmin

function isAssetListingAdmin(address admin) external view returns (bool)

Returns true if the address is AssetListingAdmin, false otherwise

Parameters

Return Values