Last updated
Last updated
Inherits: , ,
Author: Inverter Network
This contract creates an token with a supply cap and a whitelist-gated functionality to mint and burn tokens.
The contract implements functionalities for:
Managing a whitelist of allowed minters.
Minting and burning tokens by members of said whitelist.
Enforcing a supply cap on minted tokens.
The mapping of allowed minters.
The number of decimals of the token.
Modifier to guarantee the caller is a minter.
Sets the minting rights of an address.
Parameters
Mints new tokens.
Parameters
Burns tokens.
Parameters
Sets the minting rights of an address.
Parameters
_minter
address
The address of the minter.
_allowed
bool
If the address is allowed to mint or not.
_to
address
The address of the recipient.
_amount
uint256
The amount of tokens to mint.
_from
address
The address of the owner or approved address.
_amount
uint256
The amount of tokens to burn.
_minter
address
The address of the minter.
_allowed
bool
If the address is allowed to mint or not.