Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 1.58 KB

ERC20Mintable.md

File metadata and controls

58 lines (45 loc) · 1.58 KB

ERC20Mintable.sol

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.

Functions

mint

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

Contracts