Skip to main content

OwnedERC20

Git Source

Inherits: ERC20Burnable, Ownable

ERC20 token with owner-only mint, and a burn function

Functions

constructor

constructor(string memory name_, string memory symbol_, address initialOwner_)
ERC20(name_, symbol_)
Ownable(initialOwner_);

mint

Mint tokens to the specified address

Only the owner can mint tokens

function mint(address to, uint256 amount) public virtual onlyOwner;