// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract Erc20Token is ERC20("fire on", "F10") {

    address owner;

    constructor () {
        owner = msg.sender;
        _mint(address(this), 10000e18);
    } 

    modifier onlyOwner () {
        require (owner == msg.sender, "not owner");
        _;
    }
    
    function transferOut (address addr, uint  _amount)external onlyOwner  {

        uint bal = balanceOf(address(this));
        require (bal >= _amount , "You cant send more than balance");
        _transfer(address(this), addr , _amount );
    }

}

By admin

Leave a Reply

Your email address will not be published.