Interface describing functionality of blocking accounts from transferring tokens. This limitation is going to be applied only to hackers and malicious users, who was confirmed to had stolen funds from any exchanges.
In order to ensure that no individual can manipulate user funds, it is necessary to assign specific roles to different accounts. One account with a particular role should be authorized to blacklist other accounts, while another account with a different role should be authorized to burn funds. This separation of responsibilities between two different accounts mitigate the risk of misuse of this functionality.
function blacklist(address account) external
Mark account
as 'blacklisted' and disallow transfer
and transferFrom
operations.
Require COMPLIANCE_ROLE
to invoke. Emit Blacklisted
event`.
Name | Type | Description |
---|---|---|
account | address | Address of account to mark 'blacklisted'. |
function removeBlacklisted(address account) external
Remove mark 'blacklisted' from account
, reinstating abilities to invoke transfer
and transferFrom
.
Require COMPLIANCE_ROLE
to invoke. Emit BlacklistedRemoved
event`.
Name | Type | Description |
---|---|---|
account | address | Address of account to remove 'blacklisted' mark from. |
function burnBlacklisted(address account) external
Burn all tokens from blacklisted account
specified.
Require COMPLIANCE_ROLE
to invoke. Emit BlacklistedBurnt
event`. Account specified must be blacklisted.
Name | Type | Description |
---|---|---|
account | address | Address of 'blacklisted' account to burn funds from. |
event Blacklisted(address account)
Account
was marked 'blacklisted'.
Name | Type | Description |
---|---|---|
account | address | Address of account to have been marked 'blacklisted'. |
event BlacklistedRemoved(address account)
Mark 'blacklisted' from account
was removed.
Name | Type | Description |
---|---|---|
account | address | Address of account 'blacklisted' mark was removed from. |
event BlacklistedBurnt(address account, uint256 amount)
All tokens from blacklisted account
specified were burnt.
Name | Type | Description |
---|---|---|
account | address | Address of 'blacklisted' account funds were burnt from. |
amount | uint256 |