Skip to main content

VaultBlocklist

Git Source ↗

Inherits: Initializable ↗, VaultAdmin →, IVaultBlocklist

Defines the functionality for blocking addresses for the Vault.

Events​

BlocklistUpdated​

Event emitted on blocklist update

event BlocklistUpdated(address indexed caller, address indexed account, bool isBlocked);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
accountaddressThe address of the account updated
isBlockedboolWhether account is blocked or not

BlocklistManagerUpdated​

Event emitted when blocklist manager address is updated

event BlocklistManagerUpdated(address indexed caller, address indexed blocklistManager);

Parameters

NameTypeDescription
calleraddressThe address of the function caller
blocklistManageraddressThe address of the new blocklist manager

Functions​

blocklistManager​

Blocklist manager address

function blocklistManager() external view returns (address);

Returns

NameTypeDescription
<none>addressThe address of the blocklist manager

blockedAccounts​

Checks whether account is blocked or not

function blockedAccounts(address account) external view returns (bool);

Parameters

NameTypeDescription
accountaddressThe account to check

Returns

NameTypeDescription
<none>booltrue for the blocked account, false otherwise

updateBlocklist​

Add or remove account from the blocklist. Can only be called by the blocklist manager.

function updateBlocklist(address account, bool isBlocked) public virtual override;

Parameters

NameTypeDescription
accountaddressThe account to add or remove to the blocklist
isBlockedboolWhether account should be blocked or not

setBlocklistManager​

Used to update the blocklist manager. Can only be called by the Vault admin.

function setBlocklistManager(address _blocklistManager) external override;

Parameters

NameTypeDescription
_blocklistManageraddressThe address of the new blocklist manager