View Source: openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol
↗ Extends: ERC20, MinterRole ↘ Derived Contracts: DAITokenMock, DownDai, UpDai
ERC20Mintable
Extension of {ERC20} that adds a set of accounts with the {MinterRole}, which have permission to mint (create) new tokens as they see fit.
- At construction, the deployer of the contract is the only minter.
See {ERC20-_mint}. * Requirements: * - the caller must have the {MinterRole}.
function mint(address account, uint256 amount) public nonpayable onlyMinter
returns(bool)
Arguments
Name | Type | Description |
---|---|---|
account | address | |
amount | uint256 |