// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts@4.8.0/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts@4.8.0/security/Pausable.sol"; import "@openzeppelin/contracts@4.8.0/access/Ownable.sol"; contract Pause is ERC20, Pausable, Ownable { constructor() ERC20("pause", "MTK") { _mint(msg.sender, 1000 * 10 ** decimals()); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal whenNotPaused override { super._beforeTokenTransfer(from, to, amount); } }