PermissionControl
Extends
Initialization
constructor
Description
Initializes a new PermissionControl instance.
Parameters
to
address
The owner of the smart contract.
Emits
Write Methods
whitelistLiquidator
Description
Allows operators to:
add a liquidator to the whitelist.
remove a liquidator from the whitelist.
Parameters
liquidator
address
The liquidator's address.
approved
bool
The status to set to liquidator
.
Emits
whitelistUsers
Description
Calls whitelistUser for each entry of users
and approved
.
Parameters
users
address[]
The user addresses.
approved
bool[]
Emits
whitelistUser
Description
Allows operators to:
add a user to the whitelist.
remove a user from the whitelist.
Parameters
user
address
The user's address.
approved
bool
The status to set to user
.
Emits
View Methods
whitelistedUsers
Description
Maps each whitelisted user's address to true
.
liquidators
Description
Maps each whitelisted liquidator's address to true
.
Events
LogWhiteListUser
Parameters
user
address
Yes
operator
address
Yes
approved
bool
No
LogWhiteListLiquidator
Parameters
user
address
Yes
operator
address
Yes
approved
bool
No
Last updated