BaseERC20
The BaseERC20 contract extends the basic ERC20 contract with ownership, pausability, and authorized minting capabilities.
Implementation¶
The BaseERC20 contract requires the following variables to be passed into the constructor:
| Name | Type | Description |
|---|---|---|
_name | string memory | Name of the token. |
_symbol | string memory | Symbol for the token. |
Usage¶
setAuthorizedMinter
- Add or remove an authorized minter.
_minter: The address of the authorized minter._authorized: Whether to add or remove as authorized.
authorizedMint
- An authorized only mint to the provided account for the given amount.
_account: Account to mint to._amount: Amount to mint.