PermissionControl
Last updated
Last updated
Initializes a new PermissionControl instance.
to
address
The owner of the smart contract.
add a liquidator to the whitelist.
remove a liquidator from the whitelist.
liquidator
address
The liquidator's address.
approved
bool
The status to set to liquidator
.
users
address[]
The user addresses.
approved
bool[]
add a user to the whitelist.
remove a user from the whitelist.
user
address
The user's address.
approved
bool
The status to set to user
.
Maps each whitelisted user's address to true
.
Maps each whitelisted liquidator's address to true
.
user
address
Yes
operator
address
Yes
approved
bool
No
user
address
Yes
operator
address
Yes
approved
bool
No
Allows to:
Calls for each entry of users
and approved
.
Maps each user's address to the status it should be set to (see ).
Allows to: