IRolesManager

IRolesManager

Atlendis Labs

IRolesManagerRoles Manager interface The Roles Manager is in charge of managing the various roles in the set of smart contracts of a product. The identified roles are - GOVERNANCE: allowed to manage the parameters of the contracts and various governance only actions, - BORROWER: allowed to perform borrow and repay actions, - OPERATOR: allowed to perform Position NFT or staked Position NFT transfers, - LENDER: allowed to deposit, update rate, withdraw etc...

Methods

isBorrower

function isBorrower(address account) external view returns (bool)

Check if an address has a borrower role

Parameters

NameTypeDescription

account

address

Address to check

Returns

NameTypeDescription

_0

bool

_ True if the address has a borrower role, false otherwise

isGovernance

function isGovernance(address account) external view returns (bool)

Check if an address has a governance role

Parameters

NameTypeDescription

account

address

Address to check

Returns

NameTypeDescription

_0

bool

_ True if the address has a governance role, false otherwise

isLender

function isLender(address account) external view returns (bool)

Check if an address has a lender role

Parameters

NameTypeDescription

account

address

Address to check

Returns

NameTypeDescription

_0

bool

_ True if the address has a lender role, false otherwise

isOperator

function isOperator(address account) external view returns (bool)

Check if an address has an operator role

Parameters

NameTypeDescription

account

address

Address to check

Returns

NameTypeDescription

_0

bool

_ True if the address has a operator role, false otherwise

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.

Parameters

NameTypeDescription

interfaceId

bytes4

undefined

Returns

NameTypeDescription

_0

bool

undefined

Last updated