IStandardRolesManager
IStandardRolesManager
Atlendis Labs
IStandardRolesManagerStandard Roles Manager interface Extension of the RolesManager interface. The restrictions on lenders can be toggled
Methods
isBorrower
Check if an address has a borrower role
Parameters
account
address
Address to check
Returns
_0
bool
_ True if the address has a borrower role, false otherwise
isGovernance
Check if an address has a governance role
Parameters
account
address
Address to check
Returns
_0
bool
_ True if the address has a governance role, false otherwise
isLender
Check if an address has a lender role
Parameters
account
address
Address to check
Returns
_0
bool
_ True if the address has a lender role, false otherwise
isOperator
Check if an address has an operator role
Parameters
account
address
Address to check
Returns
_0
bool
_ True if the address has a operator role, false otherwise
lenderRestrictionsEnabled
Returns a boolean stating whether restrictions are enabled or not
Returns
_0
bool
undefined
supportsInterface
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
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
toggleRestrictions
Toggle the restrictions on lenders Emits a {RestrictionsToggled} event
Events
RestrictionsToggled
Emitted when the restrictions on lenders is toggled
Parameters
restrictionsEnabled
bool
True if restrictions are enabled, false otherwise
Last updated