Skip to content

Latest commit

 

History

History
101 lines (64 loc) · 2.52 KB

IBlacklist.md

File metadata and controls

101 lines (64 loc) · 2.52 KB

Solidity API

IBlacklist

This feature is blocking transfers of reported stolen funds from exchanges or engaged in malicious activities.

To safeguard user funds against any potential manipulation, specific roles are assigned to different accounts. One account is authorized to blacklist other accounts while another account is authorized to burn funds. By dividing these responsibilities between two different accounts, the risk of misuse of this functionality is reduced.

blacklist

function blacklist(address account) external

Mark account as 'blacklisted' and disallow transfer and transferFrom operations.

Require COMPLIANCE_ROLE to invoke. Emit Blacklisted event`.

Parameters

Name Type Description
account address Address of account to mark 'blacklisted'.

removeBlacklisted

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`.

Parameters

Name Type Description
account address Address of account to remove 'blacklisted' mark from.

burnBlacklisted

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.

Parameters

Name Type Description
account address Address of 'blacklisted' account to burn funds from.

Blacklisted

event Blacklisted(address account)

Account was marked 'blacklisted'.

Parameters

Name Type Description
account address Address of account to have been marked 'blacklisted'.

BlacklistedRemoved

event BlacklistedRemoved(address account)

Mark 'blacklisted' from account was removed.

Parameters

Name Type Description
account address Address of account 'blacklisted' mark was removed from.

BlacklistedBurnt

event BlacklistedBurnt(address account, uint256 amount)

All tokens from blacklisted account specified were burnt.

Parameters

Name Type Description
account address Address of 'blacklisted' account funds were burnt from.
amount uint256