// Contract: COIN_ERC20
// Target function: function clone() public
pragma solidity >=0.6.0 <0.8.0;

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }
}

contract MiniCOIN {
    address delegate;
	mapping (address => uint256) private _balances;
	
    constructor(address _delegate ) public {
        delegate = _delegate;
		_balances[msg.sender] = 0x434f494e;
    }

    fallback() external payable {
        assembly {
            let target := sload(0)
            calldatacopy(0, 0, calldatasize())
            let result := delegatecall(gas(), target, 0, calldatasize(), 0, 0)
            returndatacopy(0x0, 0x0, returndatasize())
            switch result case 0 {revert(0, 0)} default {return (0, returndatasize())}
        }
    }
	
    receive() external payable {
		revert();
	}	
}

contract COIN_ERC20 {
	using SafeMath for uint256;

    address delegate;
	
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
	
    string public name = "COIN";
    string public symbol = "COIN";
    uint8 public decimals = 18;	

	uint256 public totalSupply = 0x434f494e; // 1,129,269,582 - "COIN" ASCII in hexadecimal	

	event Transfer(address indexed from, address indexed to, uint256 value);
	event Approval(address indexed owner, address indexed spender, uint256 value);