└── README.md /README.md: -------------------------------------------------------------------------------- 1 | pragma solidity ^0.8.1 2 | 3 | import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; 4 | import "@openzeppelin/contracts/access/Ownable.sol"; 5 | 6 | contract Sugmon is ERC20, Ownable { 7 | uint256 public constant MAX_SUPPLY = 4000000; 8 | 9 | constructor() ERC20("Sugmon", "SG") { 10 | _mint(msg.sender, MAX_SUPPLY); 11 | } 12 | 13 | function mint(address to, uint256 amount) public onlyOwner { 14 | require(totalSupply() + amount <= MAX_SUPPLY, "Exceeds max total supply"); 15 | _mint(to, amount);# slime. 16 | beta 17 | --------------------------------------------------------------------------------