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

NameTypeDescription

provider

contract IPoolAddressesProvider

The address of the PoolAddressesProvider

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

NameTypeDescription

role

bytes32

The role to be managed by the admin role

adminRole

bytes32

The admin role

addPoolAdmin

function addPoolAdmin(address admin) external

Adds a new admin as PoolAdmin

Parameters

NameTypeDescription

admin

address

The address of the new admin

removePoolAdmin

function removePoolAdmin(address admin) external

Removes an admin as PoolAdmin

Parameters

NameTypeDescription

admin

address

The address of the admin to remove

isPoolAdmin

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

Returns true if the address is PoolAdmin, false otherwise

Parameters

NameTypeDescription

admin

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is PoolAdmin, false otherwise

addEmergencyAdmin

function addEmergencyAdmin(address admin) external

Adds a new admin as EmergencyAdmin

Parameters

NameTypeDescription

admin

address

The address of the new admin

removeEmergencyAdmin

function removeEmergencyAdmin(address admin) external

Removes an admin as EmergencyAdmin

Parameters

NameTypeDescription

admin

address

The address of the admin to remove

isEmergencyAdmin

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

Returns true if the address is EmergencyAdmin, false otherwise

Parameters

NameTypeDescription

admin

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is EmergencyAdmin, false otherwise

addRiskAdmin

function addRiskAdmin(address admin) external

Adds a new admin as RiskAdmin

Parameters

NameTypeDescription

admin

address

The address of the new admin

removeRiskAdmin

function removeRiskAdmin(address admin) external

Removes an admin as RiskAdmin

Parameters

NameTypeDescription

admin

address

The address of the admin to remove

isRiskAdmin

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

Returns true if the address is RiskAdmin, false otherwise

Parameters

NameTypeDescription

admin

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is RiskAdmin, false otherwise

addFlashBorrower

function addFlashBorrower(address borrower) external

Adds a new address as FlashBorrower

Parameters

NameTypeDescription

borrower

address

The address of the new FlashBorrower

removeFlashBorrower

function removeFlashBorrower(address borrower) external

Removes an admin as FlashBorrower

Parameters

NameTypeDescription

borrower

address

The address of the FlashBorrower to remove

isFlashBorrower

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

Returns true if the address is FlashBorrower, false otherwise

Parameters

NameTypeDescription

borrower

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is FlashBorrower, false otherwise

addBridge

function addBridge(address bridge) external

Adds a new address as Bridge

Parameters

NameTypeDescription

bridge

address

The address of the new Bridge

removeBridge

function removeBridge(address bridge) external

Removes an address as Bridge

Parameters

NameTypeDescription

bridge

address

The address of the bridge to remove

isBridge

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

Returns true if the address is Bridge, false otherwise

Parameters

NameTypeDescription

bridge

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is Bridge, false otherwise

addAssetListingAdmin

function addAssetListingAdmin(address admin) external

Adds a new admin as AssetListingAdmin

Parameters

NameTypeDescription

admin

address

The address of the new admin

removeAssetListingAdmin

function removeAssetListingAdmin(address admin) external

Removes an admin as AssetListingAdmin

Parameters

NameTypeDescription

admin

address

The address of the admin to remove

isAssetListingAdmin

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

Returns true if the address is AssetListingAdmin, false otherwise

Parameters

NameTypeDescription

admin

address

The address to check

Return Values

NameTypeDescription

[0]

bool

True if the given address is AssetListingAdmin, false otherwise