files
dict
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\ncontract Ownable is Context {\n address private _Owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface ICoFiStakingRewards {\n function setGovernance(address _new) external;\n function withdrawSavingByGov(address _to, uint256 _amount) external;\n function pendingSavingAmount() external view returns (uint256);\n}", "file...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Token is ERC20 {\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING O...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary SafeMathUniswap {\n function add(uint256 x, uint256 y) internal pure returns (uint256 z) {\n require((z = x + y) >= x, \"ds-math-add-overflow\");\n }\n\n function sub(uint256 x, uint256 y) internal pure returns (uint256 z...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary SafeMath {\n function add(uint256 x, uint256 y) internal pure returns (uint256) {\n uint256 z = x + y;\n require(z >= x, \"uint overflow\");\n return z;\n }\n}", "file_name": "solidity_code_2983.sol", ...
{ "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 KB9Token is ERC20, Ownable {\n constructor() ERC20(\"KB9\", \"KB9\") Ownable() {\n _mint(...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IOwnableDelegateProxy {}", "file_name": "solidity_code_2985.sol", "secure": 1, "size_bytes": 96 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IOwnableDelegateProxy.sol\" as IOwnableDelegateProxy;\n\nabstract contract IWyvernProxyRegistry {\n mapping(address => IOwnableDelegateProxy) public proxies;\n function registerProxy()\n public\n virtual\n r...
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\ncontract RandNumGen {\n function randInt(uint256 n) external view returns (uint256) {\n return (uint160(address(this)) + block.number / 100) % n;\n }\n}", "file_name": "solidity_code_2987.sol", "secure": 1, "size_bytes"...
{ "code": "// SPDX-License-Identifier: UNLICENSED\n\npragma solidity ^0.8.0;\n\nimport \"./RandNumGen.sol\" as RandNumGen;\n\ncontract PwnMe {\n mapping(address => uint256) public balanceOf;\n RandNumGen private immutable rng;\n address private immutable dev;\n address private immutable recipiant;\n ui...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary Math {\n function sqrt(uint256 y) internal pure returns (uint256 z) {\n if (y > 3) {\n z = y;\n uint256 x = y / 2 + 1;\n while (x < z) {\n z = x;\n x = (y / x...
{ "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 AKITA is Context, IERC20, Ownabl...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract NIL is ERC20 {\n\t// WARNING Optimization Issue (immutable-states | ID: 642f876): NIL._owner should be immutable \n\t// Recommendation for 642f876: Add the 'immutable...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20PresetFixedSupply.sol\" as ERC20PresetFixedSupply;\n\ncontract ThousandMillionToken is ERC20PresetFixedSupply {\n constructor()\n ERC20PresetFixedSupply(\n \"ThousandMillion\",\n \"TM\",\n ...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"@openzeppelin/contracts/utils/math/Math.sol\" as Math;\n\ncontract TestSafeMath {\n using SafeMath for uint;\n\n uint256 public constant MAX_UINT = 2 *...
{ "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\ninterface ERC721Enumerable {\n function totalSupply() external view returns (uint256);\n\n function tokenByIndex(uint256 _index) external view returns (uint256);\n\n function tokenOfOwnerByIndex(\n address _owner,\n uint25...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ERC721Metadata {\n function name() external view returns (string memory _name);\n\n function contractURI() external view returns (string memory _nftURI);\n\n function symbol() external view returns (string memory _symbol);\n\n...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary Array {\n function remove(uint256[] storage arr, uint256 index) public {\n require(arr.length > 0, \"Can't remove from empty array\");\n arr[index] = arr[arr.length - 1];\n arr.pop();\n }\n}", "file_nam...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./NFToken.sol\" as NFToken;\nimport \"./ERC721Metadata.sol\" as ERC721Metadata;\n\ncontract NFTokenMetadata is NFToken, ERC721Metadata {\n string internal nftName;\n\n string internal nftSymbol;\n\n string internal nftURI;\n\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./NFToken.sol\" as NFToken;\nimport \"./ERC721Enumerable.sol\" as ERC721Enumerable;\n\ncontract NFTokenEnumerable is NFToken, ERC721Enumerable {\n string constant INVALID_INDEX = \"005007\";\n\n uint256[] internal tokens;\n\n m...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./NFTokenMetadata.sol\" as NFTokenMetadata;\nimport \"./NFTokenEnumerable.sol\" as NFTokenEnumerable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract NFTRedeemableOption is NFTokenMetadata, NFTokenEnumerab...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC20 {\n function totalSupply() external view returns (uint256);\n\n function balanceOf(address account) external view returns (uint256);\n\n function transfer(\n address recipient,\n uint256 amount\n ) exte...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract Platforme {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n}", "file_name": "solidity_code_30.sol", "secure": 1, "size_bytes": 198 }
{ "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 TUX is ERC20, Ownable {\n constructor() ERC20(\"TUX\", \"TUX\") {\n _mint(msg.sender, 100...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract LifeToken is IERC20 {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (i...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./Array.sol\" as Array;\n\ncontract TestArray {\n using Array for uint[];\n\n uint256[] public arr;\n\n function testArrayRemove() public {\n for (uint256 i = 0; i < 3; i++) {\n arr.push(i);\n }\n...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ILevel {\n function createInstance(address) external returns (address);\n function validateInstance(address payable, address) external returns (bool);\n}", "file_name": "solidity_code_3002.sol", "secure": 1, "size_bytes": 2...
{ "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/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\" as SafeERC20;\n\ncontract C...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ILevel.sol\" as ILevel;\n\ninterface IEthernaut {\n function createLevelInstance(ILevel) external;\n function submitLevelInstance(address payable) external;\n}", "file_name": "solidity_code_3005.sol", "secure": 1, "size_by...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Crowdsale.sol\" as Crowdsale;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract CappedCrowdsale is Crowdsale {\n uint256 private _total_cap;\n uint256 private _address_cap;\n uint256 private _tx...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./CappedCrowdsale.sol\" as CappedCrowdsale;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract JPEGCrowdsale is CappedCrowdsale {\n uint256 constant INIT_PRICE_PER_FULL_TOKEN = 7 * 10 ** 16;\n address...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Token.sol\" as ERC20Token;\nimport \"./Owned.sol\" as Owned;\n\ncontract Token is ERC20Token, Owned {\n string public _symbol;\n string public _name;\n\t// WARNING Optimization Issue (immutable-states | ID: 909d255): ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ILevel.sol\" as ILevel;\nimport \"./IEthernaut.sol\" as IEthernaut;\n\ncontract Utils {\n address internal constant ETHERNAUT_ADDRESS =\n 0xD991431D8b033ddCb84dAD257f4821E9d5b38C33;\n\n function createLevelInstance(\n ...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract BABYSHRUB is Context, Owna...
{ "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 PWOW is ERC20(\"PWOW\", \"PWOW\"), Ownable {\n mapping(address => bool) public managers;\n\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nabstract contract WnsOwnable {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n _transferOwnership(msg.sender);\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./WnsOwnable.sol\" as WnsOwnable;\n\nabstract contract WnsAddresses is WnsOwnable {\n mapping(string => address) private _wnsAddresses;\n\n function setWnsAddresses(\n string[] memory _labels,\n address[] memory _add...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./WnsOwnable.sol\" as WnsOwnable;\nimport \"./WnsAddresses.sol\" as WnsAddresses;\n\ncontract WnsRegistry is WnsOwnable, WnsAddresses {\n mapping(bytes32 => uint256) private _hashToTokenId;\n mapping(uint256 => string) private _to...
{ "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: UNLICENSED\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 mapping(...
{ "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\ninterface ICrocZ {\n function balanceGenesis(address owner) external view returns (uint256);\n}", "file_name": "solidity_code_3017.sol", "secure": 1, "size_bytes": 160 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IBaby {\n function balanceBaby(address owner) external view returns (uint256);\n}", "file_name": "solidity_code_3018.sol", "secure": 1, "size_bytes": 156 }
{ "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 \"./iCrocZ.sol\" as iCrocZ;\nimport \"./iBaby.sol\" as iBaby;\n\ncontract Swamp is ERC20, Ownable {\n ...
{ "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 PepeUnchained is Ownable {\n using ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IBlubSource {\n function getAccumulatedAmount(\n address staker\n ) external view returns (uint256);\n}", "file_name": "solidity_code_3020.sol", "secure": 1, "size_bytes": 188 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ninterface ITradableBlub is IERC20 {\n function _authorisedMint(address sender, uint256 amount) external;\n function _authorisedBurn(address sender, uint256 amount) exte...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./IBlubSource.sol\" as IBlubSource;\nimport \"./ITradableBlub.sol\" as ITradableBlub;\n...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IdexFacotry {\n function createPair(\n address tokenA,\n address tokenB\n ) external returns (address pair);\n}", "file_name": "solidity_code_3023.sol", "secure": 1, "size_bytes": 209 }
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./IdexFacotry.sol\" as IdexF...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/util...
{ "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 Meta...
{ "code": "// SPDX-License-Identifier: No License\n\npragma solidity ^0.8.0;\n\nimport \"./StandardToken.sol\" as StandardToken;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract MintableToken is StandardToken, Ownable {\n function _mint(address account, uint256 amount) internal virtua...
{ "code": "// SPDX-License-Identifier: No License\n\npragma solidity ^0.8.0;\n\nimport \"./MintableToken.sol\" as MintableToken;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract ValueCoin is MintableToken {\n using SafeMath for uint256;\n\n\t// WARNING Optimization Issue (consta...
{ "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 ANRK...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Ownable {\n address private _owner;\n\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor() {\n _owner = msg.sender;\n\n emit OwnershipTr...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary UniswapV2Library {\n function sortTokens(\n address tokenA,\n address tokenB\n ) internal pure returns (address token0, address token1) {\n require(tokenA != tokenB, \"UniswapV2Library: IDENTICAL_ADDRESSES\");\...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary UniswapV3Library {\n bytes32 internal constant POOL_INIT_CODE_HASH =\n 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;\n\n struct PoolKey {\n address token0;\n address token1;\n uint2...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPLPS {\n function LiquidityProtection_beforeTokenTransfer(\n address _pool,\n address _from,\n address _to,\n uint256 _amount\n ) external;\n function isBlocked(\n address _pool,\n ad...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./UniswapV2Library.sol\" as UniswapV2Library;\nimport \"./UniswapV3Library.sol\" as UniswapV3Library;\nimport \"./IPLPS.sol\" as IPLPS;\n\nabstract contract UsingLiquidityProtectionService {\n bool private protected = true;\n uint...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./UsingLiquidityProtectionService.sol\" as UsingLiquidityProtectionService...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract SimpleContract {\n uint256 public savedNumber;\n\n function updateNumber(uint256 _newNumber) public {\n savedNumber = _newNumber;\n }\n\n function deleteNumber() public {\n savedNumber = 0;\n }\n}", "file_...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary Address {\n function isContract(address account) internal view returns (bool) {\n uint256 size;\n assembly {\n size := extcodesize(account)\n }\n return size > 0;\n }\n\n function functionC...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC721/ERC721.sol\" as ERC721;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/Counters.sol\" as Counters;\nimport \"@openzeppelin/contracts/utils/...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IAOToken.sol\" as IAOToken;\n\ncontract AOClaim {\n enum STATUS {\n UNAVAILABLE,\n MINTABLE,\n MINTED\n }\n\n mapping(uint16 => STATUS) public tokens;\n\n constructor() {\n tokens[4859] = STATUS...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IAOToken {\n function ownerOf(uint256 tokenId) external view returns (address owner);\n}", "file_name": "solidity_code_3039.sol", "secure": 1, "size_bytes": 163 }
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Router02 {\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\n uint256 amountIn,\n uint256 amountOutMin,\n address[] calldata path,\n address to,\n uint256 deadline\n ) ex...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract Ownable {\n address public owner;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(\n address indexed previousOwner,\n address indexed newOwner\n );\n\n constructor()...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./SimpleContract.sol\" as SimpleContract;\n\ncontract DetermineAddress {\n address public predictedAddress;\n\n function predictAddress(bytes32 salt) public {\n predictedAddress = address(\n uint160(\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract IRC20 is Ownable {\n event Approval(address indexed owner, address indexed spender, uint256 value);\n event Transfer(address indexed from, address indexed to, ui...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract ERC20FixedSupply is ERC20(\"APO Coin\", \"APO\", 8) {\n constructor() {\n _mint(msg.sender, 40000000 * (uint256(10) ** 8));\n }\n}", "file_name": "soli...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Token is ERC20 {\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING O...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract ThousandX is ERC20(\"1000x\", \"1000x\") {\n using SafeMath for uint256;\n address[] in...
{ "code": "// SPDX-License-Identifier: BSD-3-Clause\n\npragma solidity ^0.8.0;\n\nabstract contract BackingStore {\n address public MAIN_CONTRACT;\n\t// WARNING Optimization Issue (constable-states | ID: 0e574ee): BackingStore.UNISWAP_FACTORY_ADDRESS should be constant \n\t// Recommendation for 0e574ee: Add the 'c...
{ "code": "// SPDX-License-Identifier: BSD-3-Clause\n\npragma solidity ^0.8.0;\n\nimport \"./BackingStore.sol\" as BackingStore;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract VeloxProxy is BackingStore, Ownable {\n function setAdminAddress(\n address _c\n ) public onlyOwn...
{ "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/interfaces/IERC721Receiver.sol\" as IERC721Receiver;\n\ncontract ERC721Holder is IERC721Receiver {\n function onERC721Received(\n address,\n address,\n uint256,\n bytes memory\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary SafeMath {\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n\n require(c >= a, \"SafeMath: addition overflow\");\n\n return c;\n }\n}\n", "file_name": "solidity_cod...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\ncontract NBUWETH {\n using SafeMath for uint;\n\t// WARNING Optimization Issue (constable-states | ID: 76e1782): NBU_WETH.name should be constant \n\t// Recommen...
{ "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/token/ERC721/utils/ERC721Holder.sol\" as ERC721Holder;\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\n\ncontract PublicLibrary is ERC721Holder, Context {\n address private _librarian;\n\n ...
{ "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 \"./IBEP20.sol\" as IBEP20;\nimport \"./IBEP20Metadata.sol\" as IBEP20Metadata;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/c...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/util...
{ "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\ninterface IQuoter {\n function quoteExactOutputSingle(\n address tokenIn,\n address tokenOut,\n uint24 fee,\n uint256 amountOut,\n uint160 sqrtPriceLimitX96\n ) external returns (uint256 amountIn);\n\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ISwapRouter {\n struct ExactOutputSingleParams {\n address tokenIn;\n address tokenOut;\n uint24 fee;\n address recipient;\n uint256 deadline;\n uint256 amountOut;\n uint256 amountInM...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Token is ERC20 {\n mapping(address => uint256) private _balances;\n mapping(address => mapping(address => uint256)) private _allowances;\n\n\t// WARNING O...
{ "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/interfa...
{ "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 _owner = msg.sender;\n emit Owne...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ISwapFactory {\n function swap(\n address tokenA,\n address tokenB,\n uint256 amount,\n address user,\n uint256 crossOrderType,\n uint256 dexId,\n uint256 deadline\n ) external pay...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUni {\n function swapExactETHForTokens(\n uint256 amountOutMin,\n address[] calldata path,\n address to,\n uint256 deadline\n ) external payable returns (uint256[] memory amounts);\n\n function swa...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IReimbursement {\n function getLicenseeFee(\n address licenseeVault,\n address projectContract\n ) external view returns (uint256);\n function getVaultOwner(address vault) external view returns (address);\n\n ...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./ISwapFactory.sol\" as ISwapFactory;\nimport \"./TransferHelper.sol\" as TransferHelper;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"...
{ "code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\n\ncontract PaymentSplitter is Context {\n event PayeeAdded(address account, uint256 shares);\n event Paymen...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nabstract contract IERC20 {\n function totalSupply() public view virtual returns (uint256);\n\n function balanceOf(\n address tokenOwner\n ) public view virtual returns (uint256 balance);\n\n function allowance(\n ...
{ "code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"./Owned.sol\" as Owned;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\n\n// WARNING Vulnerability (locked-ether | severity: Medium | I...
{ "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...