PermissionControl
Extends
Initialization
constructor
Description
Initializes a new PermissionControl instance.
Parameters
Name | Type | Description |
---|---|---|
to |
| 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
Name | Type | Description |
---|---|---|
liquidator |
| The liquidator's address. |
approved |
| The status to set to |
Emits
whitelistUsers
Description
Calls whitelistUser for each entry of users
and approved
.
Parameters
Name | Type | Description |
---|---|---|
users |
| The user addresses. |
approved |
| Maps each user's address to the status it should be set to (see whitelistUser). |
Emits
whitelistUser
Description
Allows operators to:
add a user to the whitelist.
remove a user from the whitelist.
Parameters
Name | Type | Description |
---|---|---|
user |
| The user's address. |
approved |
| The status to set to |
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
Name | Type | Index? |
---|---|---|
user |
| Yes |
operator |
| Yes |
approved |
| No |
LogWhiteListLiquidator
Parameters
Name | Type | Index? |
---|---|---|
user |
| Yes |
operator |
| Yes |
approved |
| No |
Last updated