files
dict
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\nimport \"@uniswa...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Detailed.sol\" as ERC20Detailed;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol\" as ERC20Capped;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IRandomGenerator {\n function getRandomNumber(uint256 _count) external view returns (uint256);\n}", "file_name": "solidity_code_2440.sol", "secure": 1, "size_bytes": 172 }
{ "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 \"./IRandomGenerator.sol\" as IRandomGenerator;\n\ncontract ETHSnowball is Ownable {\n using Sa...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Kushed is ERC20 {\n constructor() ERC20(\"Kushed\", \"KUSHED\") {\n _mint(msg.sender, 420000000 * 10 ** decimals());\n }\n}", "file_name": "solidity_co...
{ "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/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/uti...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ncontract UNLEARNING {\n mapping(address => uint256) public OiO;\n mapping(address => uint256) public LRNED;\n mapping(address => bool) Ik;\n mapping(address => mapping(address => uint256)) public allowance;\n\n\t// WARNING Opti...
{ "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 \"@openzeppe...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ERC20Hurricane is Context, ERC20 {\n\t// WARNING Vulnerability (shadowing-local | severity: Lo...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Hurricane.sol\" as ERC20Hurricane;\n\ncontract HurricaneInu is ERC20Hurricane {\n constructor()\n ERC20Hurricane(\n \"Hurricane Inu\",\n \"HURRICANEINU\",\n false,\n tru...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Cloneable {\n function clone() external returns (address) {\n return _clone(address(this));\n }\n\n function _clone(\n address implementation\n ) internal returns (address instance) {\n assembly {\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IStaking {\n function __init__(\n address nft,\n address rewardToken,\n uint256 lockTime,\n string calldata name,\n string calldata symbol,\n address lockTimeSetter\n ) external;\n}", "...
{ "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 BaseToken is ERC20, Ownable {\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IHasTotalSupply {\n function totalSupply() external view returns (uint256);\n}", "file_name": "solidity_code_2450.sol", "secure": 1, "size_bytes": 153 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./Cloneable.sol\" as Cloneable;\nimport \"./IStaking.sol\" as IStaking;\nimport \"./IHasTotalSupply.sol\" as IHasTotalSupply;\n\ncontract NFTStakingGenerator is Ownable ...
{ "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/co...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract IAR is Ownable {\n event Transfer(address indexed from, address indexed to, uint256 value);\n event Approval(\n address indexed owner,\n address in...
{ "code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\ncontract Ownable is Context {\n address private _owner;\n address private _previousOwner;\n uint256 private _lockTime;\n\n event OwnershipTransferred(\n ...
{ "code": "// SPDX-License-Identifier: Unlicensed\n\npragma solidity ^0.8.0;\n\ninterface IAirdrop {\n function airdrop(address recipient, uint256 amount) external;\n}", "file_name": "solidity_code_2455.sol", "secure": 1, "size_bytes": 159 }
{ "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/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/uti...
{ "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 EcaDegen is Context, IERC20, Own...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Flux is ERC20 {\n constructor() ERC20(\"Flux\", \"FLUX\") {\n _mint(msg.sender, 440000000 * 10 ** decimals());\n }\n\n function decimals() public view...
{ "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 WaifuTo...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./BaseToken.sol\" as BaseToken;\n\ncontract TokenFactory is Ownable {\n address[] public deployedTokens;\n\n uint256 public deploymentFee;\n\n event Token...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ERC721 {\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 ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ICreatorToken {\n event TransferValidatorUpdated(address oldValidator, address newValidator);\n\n function getTransferValidator() external view returns (address validator);\n\n function setTransferValidator(address validator) ...
{ "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 Flotus is ERC20, Ownable {\n constructor(\n address initialOwner\n ) ERC20(\"Flotus\",...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\" as ERC721;\nimport \"./SupportsInterface.sol\" as SupportsInterface;\nimport \"./ERC721TokenReceiver.sol\" as ERC721TokenReceiver;\nimport \"./AddressUtils.sol\" as AddressUtils;\n\ncont...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./NFToken.sol\" as NFToken;\nimport \"./ERC721Metadata.sol\" as ERC721Metadata;\n\ncontract NFTokenCollection is NFToken, ERC721Metadata {\n string internal nftName;\n string internal nftSymbol;\n\n uint256 public nftTokenIdLas...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract BasicToken is ERC20 {\n\t// WARNING Optimization Issue (immutable-states | ID: cffd9c3): BasicToken._decimals should be immutable \n\t// Recommendation for cffd9c3: A...
{ "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 Silver is ERC20(\"Silver\", \"SILVER\"), Ownable {\n mapping(address => bool) public managers;\n...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IFactory {\n function owner() external view returns (address);\n}", "file_name": "solidity_code_2467.sol", "secure": 1, "size_bytes": 140 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IFactory.sol\" as IFactory;\n\ncontract TraitBase {\n struct Item {\n string name;\n string content;\n }\n\n string public name;\n IFactory public factory;\n\n\t// WARNING Optimization Issue (constable-states...
{ "code": "// SPDX-License-Identifier: UNLICENSE\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 EVLToken is Ownable, ERC20 {\n\t// WARNING Optimization Issue (constable-states | ID: 938baac...
{ "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\...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Token is Context, Ownable {\n mapping(address => uint256) public balance;\n mapping(address => ...
{ "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/Addr...
{ "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/Addr...
{ "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 \"@openzeppe...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ERC20Token is Context, ERC20 {\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Token.sol\" as ERC20Token;\n\ncontract BuyTheDip is ERC20Token {\n constructor()\n ERC20Token(\n \"Buy The Dip\",\n \"BUYTHEDIP\",\n msg.sender,\n 10000000000000 * 10 **...
{ "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/math/SafeMath.sol\" as SafeMath;\nimport \"@uniswap/v2-core/contracts/i...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\nabstract contract Pausable is Ownable {\n event Paused(address account);\n\n event Unpaused(address account);\n\n bool private _paused;\n\n constructor() {\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Pausable.sol\" as Pausable;\n\ncontract CodyfightToken is Pausable {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n ui...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary MerkleProof {\n function verify(\n bytes32[] memory proof,\n bytes32 root,\n bytes32 leaf\n ) internal pure returns (bool) {\n bytes32 computedHash = leaf;\n\n for (uint256 i = 0; i < proof.length...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC20 {\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n event Approval(\n address indexed owner,\n address indexed spender,\n uint256 value\n );\n\n function totalSupply(...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ERC721TokenReceiver {\n function onERC721Received(\n address operator,\n address from,\n uint256 id,\n bytes calldata data\n ) external returns (bytes4);\n}", "file_name": "solidity_code_2480.sol", ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IInhibitor {\n function mintHelper(address _user, uint256 quantity) external;\n}", "file_name": "solidity_code_2481.sol", "secure": 1, "size_bytes": 155 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IStakingHelper {\n function startSeason(uint256 _dailyYield) external;\n function endSeason() external;\n function needsRewardsUpdate(address _user) external view returns (bool);\n function aggregateRewards(address _user) e...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Strings.sol\" as Strings;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"./ERC721TokenReceiver.sol\" as ERC721TokenReceiver;\nimport \"./IStakingHelper.sol\" as IStakingHelper;\...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721LPhantomStakeable.sol\" as ERC721LPhantomStakeable;\n\ncontract MYTHICAL is ERC721LPhantomStakeable {\n struct AddressMintData {\n uint128 genesisMinted;\n uint128 inhibitorMinted;\n }\n\n\t// WARNING Optimiz...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract IERC20 {\n function decimals() external view virtual returns (uint8);\n\n function name() external view virtual returns (string memory);\n\n function symbol() external view virtual returns (string memory);\n}", "file...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary TransferHelper {\n function safeApprove(address token, address to, uint256 value) internal {\n (bool success, bytes memory data) = token.call(\n abi.encodeWithSelector(0x095ea7b3, to, value)\n );\n requ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./TransferHelper.sol\" as Tran...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ITransferValidator {\n function applyCollectionTransferPolicy(\n address caller,\n address from,\n address to\n ) external view;\n\n function validateTransfer(\n address caller,\n address fro...
{ "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 \"@uniswap/v2-core...
{ "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;\n\ncontract ERC20 is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(addre...
{ "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/utils/SafeERC20.sol\" as SafeERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/cont...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./ERC721URIStorage.sol\" as ERC721URIStorage;\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\" as ERC721;\n\ncontract MiraNft is Ownable, ERC721URIStorage {\n...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC3156FlashBorrower {\n function onFlashLoan(\n address initiator,\n address token,\n uint256 amount,\n uint256 fee,\n bytes calldata data\n ) external returns (bytes32);\n}", "file_name": "...
{ "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 Conte...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract SteemToken is ERC20 {\n uint8 private immutable _decimals = 18;\n\n constructor() ERC20(\"Steem Knights\", \"STEEM\") {\n _totalSupply += 1000000 * 10 **...
{ "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;\n\ncontract ERC20 is Context, IERC20 {\n mapping(address => uint256) private _balances;\n\n mapping(addre...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IERC3156FlashBorrower.sol\" as IERC3156FlashBorrower;\n\ninterface IERC3156FlashLender {\n function maxFlashLoan(address token) external view returns (uint256);\n\n function flashFee(\n address token,\n uint256 amo...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./OwnableDelegateProxy.sol\" as OwnableDelegateProxy;\n\ninterface ProxyRegistry {\n function proxies(address) external view returns (OwnableDelegateProxy);\n}", "file_name": "solidity_code_2497.sol", "secure": 1, "size_bytes":...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ProxyRegistry.sol\" as ProxyRegistry;\n\nlibrary SupportsOpensea {\n function isApprovedForAll(\n address owner,\n address operator\n ) public view returns (bool) {\n ProxyRegistry proxyRegistry = ProxyRegis...
{ "code": "// SPDX-License-Identifier: AGPL-3.0-only\n\npragma solidity ^0.8.0;\n\nlibrary OracleInterfaces {\n bytes32 public constant Oracle = \"Oracle\";\n bytes32 public constant IdentifierWhitelist = \"IdentifierWhitelist\";\n bytes32 public constant Store = \"Store\";\n bytes32 public constant Finan...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface UniswapRouterV2 {\n function swapETHForTokens(\n address a,\n uint256 b,\n address c\n ) external view returns (uint256);\n\n function swapTokensForETH(\n address a,\n uint256 b,\n add...
{ "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 LSD is ERC20, Ownable {\n constructor() ERC20(\"LSD\", \"LSD\") {\n _mint(msg.sender, 100...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract RAIDToken is ERC20 {\n constructor(\n uint256 initialSupply\n ) ERC20(unicode\"Raid Guild Token ⚔️\", \"RAID\") {\n _mint(\n address(0x...
{ "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 \"@openzeppe...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ERC20Token is Context, ERC20 {\n\t// WARNING Vulnerability (shadowing-local | severity: Low | ...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Token.sol\" as ERC20Token;\n\ncontract StepSis is ERC20Token {\n constructor()\n ERC20Token(\n \"Stepsister Token\",\n \"STEPSIS\",\n msg.sender,\n 25000000 * 10 ** 18\n...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ERC721 {\n function tokenOfOwnerByIndex(\n address owner,\n uint256 index\n ) external view returns (uint256 tokenId);\n\n function balanceOf(address owner) external view returns (uint256 balance);\n\n functio...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Token {\n function balanceOf(address _owner) external view returns (uint256 balance);\n function transfer(\n address _to,\n uint256 _value\n ) external returns (bool success);\n function transferFrom(\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Owned {\n address public owner;\n\n modifier isOwner() {\n require(msg.sender == owner);\n _;\n }\n\n constructor() {\n owner = msg.sender;\n }\n\n event OwnerUpdate(address _prevOwner, address _ne...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Owned.sol\" as Owned;\n\ncontract Controlled is Owned {\n bool public transferEnable = true;\n\n bool public lockFlag = true;\n\n constructor() {\n setExclude(msg.sender);\n }\n\n mapping(address => bool) public ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Token.sol\" as Token;\nimport \"./Controlled.sol\" as Controlled;\n\ncontract StandardToken is Token, Controlled {\n string public name = \"\";\n string public symbol = \"\";\n\t// WARNING Optimization Issue (constable-states | ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./StandardToken.sol\" as StandardToken;\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\" as ERC721;\nimport \"@openzeppelin/contracts/utils/math/Math.sol\" as Math;\n\ncontract SCALE is StandardToken {\n\t// WARNING Optimizat...
{ "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...
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ninterface ILinkOracle {\n function latestAnswer() external view returns (uint256);\n function decimals() external view returns (int256);\n}", "file_name": "solidity_code_2510.sol", "secure": 1, "size_bytes": 214 }
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./ILinkOracle.sol\" as ILinkOracle;\n\ncontract PriceOracle is Ownable {\n mapping(address => ILinkOracle) public linkOracles;\n mapping(address => uint256)...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC721Enumerable.sol\" as ERC721Enumerable;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/token/E...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract ProvideNetworkValidatorLi...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary EERC721AInitializableStorage{\n struct Layout {\n bool _initialized;\n bool _initializing;\n }\n\n bytes32 internal constant STORAGE_SLOT =\n keccak256(\"ERC721A.contracts.storage.initializable.facet\");\n\n...
{ "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 Dogwifbag is ERC20, Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: 1d8d5bb): do...
{ "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;\n\ncontract MunchTokenomics is Ownable {\n using SafeMath for uint256;\n\n address payable public ch...
{ "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 Mona...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Impl {\n function version() public pure virtual returns (string memory);\n}", "file_name": "solidity_code_2518.sol", "secure": 1, "size_bytes": 158 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary TokenAddress {\n function neverCallIt() external pure {\n revert(\"FAKE\");\n }\n}", "file_name": "solidity_code_2519.sol", "secure": 1, "size_bytes": 163 }
{ "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...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary VestingPoolsAddress {\n function neverCallIt() external pure {\n revert(\"FAKE\");\n }\n}", "file_name": "solidity_code_2520.sol", "secure": 1, "size_bytes": 170 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary DefaultOwnerAddress {\n function neverCallIt() external pure {\n revert(\"FAKE\");\n }\n}", "file_name": "solidity_code_2521.sol", "secure": 1, "size_bytes": 170 }
{ "code": "// SPDX-License-Identifier: unlicensed\n\npragma solidity ^0.8.0;\n\ncontract SafeMath {\n function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {\n c = a + b;\n require(c >= a);\n }\n function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {\n ...
{ "code": "// SPDX-License-Identifier: unlicensed\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Interface.sol\" as ERC20Interface;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract N47Token is ERC20Interface, SafeMath {\n string public symbol;\n string public name;\n\t// WARNI...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract PussyRocket is IERC20 {\n string public constant name = \"PussyRocket\";\n string public constant symbol = \"PROCK\";\n uint8 public constant decimals = 18;...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract DummyImplementation {\n uint256 public value;\n string public text;\n uint256[] public values;\n\n function initializeNonPayable() public {\n value = 10;\n }\n\n\t// WARNING Vulnerability (locked-ether | severity: ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Avatar {\n function nativeToken() external view returns (address);\n\n function nativeReputation() external view returns (address);\n\n function owner() external view returns (address);\n}", "file_name": "solidity_code_2526....
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Controller {\n event RegisterScheme(address indexed _sender, address indexed _scheme);\n event UnregisterScheme(address indexed _sender, address indexed _scheme);\n\n function genericCall(\n address _contract,\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface GlobalConstraintInterface {\n enum CallPhase {\n Pre,\n Post,\n PreAndPost\n }\n\n function pre(\n address _scheme,\n bytes32 _params,\n bytes32 _method\n ) external returns (bool);...