1234567891011121314151617181920212223242526272829303132 |
- // SPDX-License-Identifier: MIT
- pragma solidity ^0.6.2;
- import "../token/ERC20/ERC20Burnable.sol";
- /**
- * @dev {ERC20} token, including:
- *
- * - Preminted initial supply
- * - Ability for holders to burn (destroy) their tokens
- * - No access control mechanism (for minting/pausing) and hence no governance
- *
- * This contract uses {ERC20Burnable} to include burn capabilities - head to
- * its documentation for details.
- *
- * _Available since v3.4._
- */
- contract ERC20PresetFixedSupply is ERC20Burnable {
- /**
- * @dev Mints `initialSupply` amount of token and transfers them to `owner`.
- *
- * See {ERC20-constructor}.
- */
- constructor(
- string memory name,
- string memory symbol,
- uint256 initialSupply,
- address owner
- ) public ERC20(name, symbol) {
- _mint(owner, initialSupply);
- }
- }
|