DEV Community

Discussion on: How to create a smart contract to whitelist users

Collapse
 
haaariss profile image
haaariss

• A constructor that stores the address and name of the owner
• A function that allows the owner to create a whitelist of addresses.
• A function that allows only the user from the whitelist to deposit tokens into the smartcontract
• A function that allows only the users from the whitelist to withdraw any amount from their own deposited tokens