// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts@4.5.0/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts@4.5.0/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts@4.5.0/token/ERC20/extensions/ERC20Snapshot.sol"; import "@openzeppelin/contracts@4.5.0/access/Ownable.sol"; /// @custom:security-contact johankobus96@gmail.com contract AgriCelo is ERC20, ERC20Burnable, ERC20Snapshot, Ownable { constructor() ERC20("AgriCelo", "AGRI") { _mint(msg.sender, 100000000 * 10 ** decimals()); } function snapshot() public onlyOwner { _snapshot(); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20Snapshot) { super._beforeTokenTransfer(from, to, amount); } }