Skip to content

Latest commit

 

History

History
125 lines (88 loc) · 2.96 KB

File metadata and controls

125 lines (88 loc) · 2.96 KB

This contract enables to maintain a list of whitelisted wallets. (CustomWhitelist.sol)

↗ Extends: CustomPausable ↘ Derived Contracts: PreSale.

CustomWhitelist

Contract Members

Constants & Variables

mapping(address => bool) public whitelist;

Events

event WhitelistAdded(address indexed _account);
event WhitelistRemoved(address indexed _account);

Modifiers

ifWhitelisted

Verifies if the account is whitelisted.

modifier ifWhitelisted(address _account) internal

Arguments

Name Type Description
_account address

Functions

addWhitelist

Adds an account to the whitelist.

function addWhitelist(address _account) external whenNotPaused onlyAdmin

Arguments

Name Type Description
_account address The wallet address to add to the whitelist.

addManyWhitelist

Adds multiple accounts to the whitelist.

function addManyWhitelist(address[] _accounts) external whenNotPaused onlyAdmin

Arguments

Name Type Description
_accounts address[] The wallet addresses to add to the whitelist.

removeWhitelist

Removes an account from the whitelist.

function removeWhitelist(address _account) external whenNotPaused onlyAdmin

Arguments

Name Type Description
_account address The wallet address to remove from the whitelist.

removeManyWhitelist

Removes multiple accounts from the whitelist.

function removeManyWhitelist(address[] _accounts) external whenNotPaused onlyAdmin

Arguments

Name Type Description
_accounts address[] The wallet addresses to remove from the whitelist.

Contracts