// File: contract-9c784bccd6.sol



// SPDX-License-Identifier: MIT

// https://twitter.com/TOKEN_TICKER

pragma solidity ^0.8.0;

contract Ownable {
    address public owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor() {
        owner = msg.sender;
        emit OwnershipTransferred(address(0), owner);
    }

    modifier onlyOwner() {
        require(owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(owner, address(0));
        owner = address(0);
    }
}

contract TOKEN is Ownable {
    string public constant name = "TOKEN";
    string public constant symbol = "TICKER";
    uint8 public constant decimals = 18;
    uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals));

    mapping(address => uint256) private _balances;
    uint256 private _totalSupply;

    bool public singleTransferMode = false;

    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor() {
        _totalSupply = INITIAL_SUPPLY;
        _balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function transfer(address recipient, uint256 amount) public returns (bool) {
        if (singleTransferMode) {
            require(amount == 1 * (10 ** uint256(decimals)), "Can only transfer one token at a time");
        }
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "Transfer from the zero address");
        require(recipient != address(0), "Transfer to the zero address");
        require(_balances[sender] >= amount, "Transfer amount exceeds balance");

        _balances[sender] -= amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    function enableSingleTransferMode() public onlyOwner {
        singleTransferMode = true;
    }

    function disableSingleTransferMode() public onlyOwner {
        singleTransferMode = false;
    }
}