comment
stringlengths
1
211
⌀
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
null
pragma solidity ^0.4.4; contract owned { address public owner; function owned() public{ } modifier onlyOwner { } function transferOwnership(address newOwner) onlyOwner public { } } contract ERC20Token { function totalSupply() public constant returns (uint); function balan...
balances[team_address]>0
30,723
balances[team_address]>0
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
hasupdate[user]<1
30,759
hasupdate[user]<1
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[this]>oldbalance
30,759
balances[this]>oldbalance
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
!frozenAccount[target]
30,759
!frozenAccount[target]
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[this]>mintedAmount
30,759
balances[this]>mintedAmount
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[target]>=mintedAmount
30,759
balances[target]>=mintedAmount
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
!frozenAccount[user]
30,759
!frozenAccount[user]
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
cronaddOf[user]>1
30,759
cronaddOf[user]>1
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[user]>=sysPrice
30,759
balances[user]>=sysPrice
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[this]>mintAmount
30,759
balances[this]>mintAmount
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[this]>amount
30,759
balances[this]>amount
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
address(this).balance>money
30,759
address(this).balance>money
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
balances[user]>=amount
30,759
balances[user]>=amount
null
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // 安全的加减乘除 // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns(uint c) { } function sub(uint a, uint b) in...
address(this).balance>moneys
30,759
address(this).balance>moneys
"ForceRecoverCollateralImpl#forceRecoverCollateralImpl: Cannot recover yet"
/* solium-disable-next-line max-len*/ /** * @title ForceRecoverCollateralImpl * @author dYdX * * This library contains the implementation for the forceRecoverCollateral function of Margin */ library ForceRecoverCollateralImpl { using SafeMath for uint256; // ============ Events ============ /...
(position.callTimestamp>0&&block.timestamp>=uint256(position.callTimestamp).add(position.callTimeLimit))||(block.timestamp>=uint256(position.startTimestamp).add(position.maxDuration)),"ForceRecoverCollateralImpl#forceRecoverCollateralImpl: Cannot recover yet"
30,766
(position.callTimestamp>0&&block.timestamp>=uint256(position.callTimestamp).add(position.callTimeLimit))||(block.timestamp>=uint256(position.startTimestamp).add(position.maxDuration))
"Only callable by devs"
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; import "@rari-capital/solmate/src/tokens/ERC721.sol"; import "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; import "./Ownable.sol"; import "./IERC721.sol"; import "./Strings.sol"; error DoesNotExist(); error NoTokensLeft(); error NotEnoughETH(); ...
(msg.sender==dev1Wallet||msg.sender==dev2Wallet),"Only callable by devs"
30,790
(msg.sender==dev1Wallet||msg.sender==dev2Wallet)
"Devs only promised 3 free mints each"
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; import "@rari-capital/solmate/src/tokens/ERC721.sol"; import "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; import "./Ownable.sol"; import "./IERC721.sol"; import "./Strings.sol"; error DoesNotExist(); error NoTokensLeft(); error NotEnoughETH(); ...
devMints+amount<=6,"Devs only promised 3 free mints each"
30,790
devMints+amount<=6
"max NFT per address exceeded for the first 500"
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract ...
ownerMintedCount+_mintAmount<=3,"max NFT per address exceeded for the first 500"
30,823
ownerMintedCount+_mintAmount<=3
"ACOPoolLib: Invalid ACO token expiration"
pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import "./SafeMath.sol"; import "./IACOPoolStrategy.sol"; import "./IACOFactory.sol"; import "./IACOToken.sol"; import "./ILendingPool.sol"; library ACOPoolLib { using SafeMath for uint256; struct OpenPositionData { uint256 underlyingPrice; ...
acoExpirationIsValid(data.expiryTime,data.minExpiration,data.maxExpiration),"ACOPoolLib: Invalid ACO token expiration"
30,853
acoExpirationIsValid(data.expiryTime,data.minExpiration,data.maxExpiration)
"ACOPoolLib: Invalid ACO token strike price"
pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import "./SafeMath.sol"; import "./IACOPoolStrategy.sol"; import "./IACOFactory.sol"; import "./IACOToken.sol"; import "./ILendingPool.sol"; library ACOPoolLib { using SafeMath for uint256; struct OpenPositionData { uint256 underlyingPrice; ...
acoStrikePriceIsValid(data.tolerancePriceBelow,data.tolerancePriceAbove,data.strikePrice,data.underlyingPrice),"ACOPoolLib: Invalid ACO token strike price"
30,853
acoStrikePriceIsValid(data.tolerancePriceBelow,data.tolerancePriceAbove,data.strikePrice,data.underlyingPrice)
"Only the pNetwork can change the `pNetwork` account!"
pragma solidity ^0.5.0; contract PToken is ERC777 { address public pNetwork; event Redeem( address indexed redeemer, uint256 value, string underlyingAssetRecipient ); constructor( string memory tokenName, string memory tokenSymbol, address[] mem...
_msgSender()==pNetwork,"Only the pNetwork can change the `pNetwork` account!"
30,891
_msgSender()==pNetwork
'CashExchange: CashExchange has no more budget'
pragma solidity ^0.6.0; contract CashExchange is ContractGuard { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; /* ========== STATE VARIABLES ========== */ // ========== CORE uint256 public endTime; address public cash_old; address public cash...
IERC20(cash_new).balanceOf(address(this))>=amount,'CashExchange: CashExchange has no more budget'
30,980
IERC20(cash_new).balanceOf(address(this))>=amount
"ERC20: invalid input mint data"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Interface of the contract capable of checking if an instruction is * confirmed over at Incognito Chain */ interface Incognito { function instructionApproved( bo...
Incognito(_incognitoProxy).instructionApproved(true,beaconInstHash,heights,instPaths,instPathIsLefts,instRoots,blkData,sigIdxs,sigVs,sigRs,sigSs),"ERC20: invalid input mint data"
31,010
Incognito(_incognitoProxy).instructionApproved(true,beaconInstHash,heights,instPaths,instPathIsLefts,instRoots,blkData,sigIdxs,sigVs,sigRs,sigSs)
"ERC20: tx is already used"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; /** * @dev Interface of the contract capable of checking if an instruction is * confirmed over at Incognito Chain */ interface Incognito { function instructionApproved( bo...
!withdrawed[data.itx],"ERC20: tx is already used"
31,010
!withdrawed[data.itx]
"YVaultMarket: An input address is not a contract"
pragma solidity 0.5.17; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "../IMoneyMar...
_vault.isContract()&&_stablecoin.isContract(),"YVaultMarket: An input address is not a contract"
31,015
_vault.isContract()&&_stablecoin.isContract()
"max NFT per address exceeded"
pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed w...
ownerTokenCount+_mintAmount<=nftPerAddressLimit,"max NFT per address exceeded"
31,086
ownerTokenCount+_mintAmount<=nftPerAddressLimit
"Maximum keys purchased for current sale."
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; impo...
_keysPurchased[msg.sender]<maxPurchaseAvailable||allowedMint[msg.sender]>0,"Maximum keys purchased for current sale."
31,212
_keysPurchased[msg.sender]<maxPurchaseAvailable||allowedMint[msg.sender]>0
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
isContract(_spender)
31,237
isContract(_spender)
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
locks[_holder]==false
31,237
locks[_holder]==false
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
_amount.mul(_releaseRate).div(100)>0
31,237
_amount.mul(_releaseRate).div(100)>0
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
balances[_holder]>=_amount
31,237
balances[_holder]>=_amount
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
locks[_holder]==true
31,237
locks[_holder]==true
null
/** *Submitted for verification at Etherscan.io on 2019-03-11 */ pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 ...
locks[_holder]
31,237
locks[_holder]
'Max supply exceeded!'
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import 'erc721a/contracts/ERC721A.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract TheCircleofWierdos is ...
totalSupply()+_mintAmount<=maxSupply,'Max supply exceeded!'
31,377
totalSupply()+_mintAmount<=maxSupply
'Address already claimed!'
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import 'erc721a/contracts/ERC721A.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; contract TheCircleofWierdos is ...
!whitelistClaimed[_msgSender()],'Address already claimed!'
31,377
!whitelistClaimed[_msgSender()]
"Sale is open"
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@op...
!saleOpen,"Sale is open"
31,444
!saleOpen
"Developer allocation is complete"
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@op...
!developerAllocationComplete,"Developer allocation is complete"
31,444
!developerAllocationComplete
"Sale is closed"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
gameObjectMaker.isSaleClosed(0)==false,"Sale is closed"
31,531
gameObjectMaker.isSaleClosed(0)==false
"sender is not on whitelist"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
whitelist[msg.sender]==true,"sender is not on whitelist"
31,531
whitelist[msg.sender]==true
"sender has already used whitelist"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
whitelistUsed[msg.sender]==false,"sender has already used whitelist"
31,531
whitelistUsed[msg.sender]==false
"Sale is closed"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
gameObjectMaker.isSaleClosed(gameObjectId)==false,"Sale is closed"
31,531
gameObjectMaker.isSaleClosed(gameObjectId)==false
"You need a Soda to mint"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
soda.balanceOf(msg.sender)>0,"You need a Soda to mint"
31,531
soda.balanceOf(msg.sender)>0
"MintForEther: gameObject does not exist"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
gameObjectMaker.exists(gameObjectId),"MintForEther: gameObject does not exist"
31,531
gameObjectMaker.exists(gameObjectId)
"MintForEther: can't use ether to pay for this gameObject"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
gameObjectMaker.isPaidWithToken(gameObjectId)==false,"MintForEther: can't use ether to pay for this gameObject"
31,531
gameObjectMaker.isPaidWithToken(gameObjectId)==false
null
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface IGameObjectMaker { function isSa...
payable(msg.sender).send(bal)
31,531
payable(msg.sender).send(bal)
"Exceeds maximum Chad supply. Please try to mint less Chads."
pragma solidity >=0.7.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Cyberchads.sol"; contract CyberchadsPresale is Ownable { Cyberchads public _cyberchads; uint256 public tokensMinted; bool public saleActive; // Maximum Chads minted in the presale. More unique Chads with new ...
SafeMath.add(tokensMinted,numberOfChads)<=MAX_CHAD_SUPPLY,"Exceeds maximum Chad supply. Please try to mint less Chads."
31,568
SafeMath.add(tokensMinted,numberOfChads)<=MAX_CHAD_SUPPLY
"Amount of Ether sent is not correct."
pragma solidity >=0.7.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Cyberchads.sol"; contract CyberchadsPresale is Ownable { Cyberchads public _cyberchads; uint256 public tokensMinted; bool public saleActive; // Maximum Chads minted in the presale. More unique Chads with new ...
SafeMath.mul(getChadPrice(),numberOfChads)==msg.value,"Amount of Ether sent is not correct."
31,568
SafeMath.mul(getChadPrice(),numberOfChads)==msg.value
"invalid TokenizedProperty"
pragma solidity 0.4.25; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwne...
registry.getProperty(name)==address(this),"invalid TokenizedProperty"
31,619
registry.getProperty(name)==address(this)
"eGrid must be non-empty string"
pragma solidity 0.4.25; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwne...
bytes(_eGrid).length>0,"eGrid must be non-empty string"
31,619
bytes(_eGrid).length>0
"grundstuck must be non-empty string"
pragma solidity 0.4.25; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwne...
bytes(_grundstuckNumber).length>0,"grundstuck must be non-empty string"
31,619
bytes(_grundstuckNumber).length>0
"Stake required!"
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.5; library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { } /** * @dev Returns the substraction...
stakingToken.transferFrom(msg.sender,address(this),_amount),"Stake required!"
31,706
stakingToken.transferFrom(msg.sender,address(this),_amount)
"Not enough tokens in contract!"
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.5; library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { } /** * @dev Returns the substraction...
stakingToken.transfer(msg.sender,withAmount),"Not enough tokens in contract!"
31,706
stakingToken.transfer(msg.sender,withAmount)
"Not enough tokens on contract!"
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.5; library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { } /** * @dev Returns the substraction...
stakingToken.transfer(receiver,_amount),"Not enough tokens on contract!"
31,706
stakingToken.transfer(receiver,_amount)
"Not Loot owner"
/** * @title LootWeapon * @author kjr217 * @notice Looters! Come and collect your arms! War is upon us, we must fight! * The Weaponsmith is open. Looters will be able to mint their weapons and reveal their underlying powers * - attack, defense, durability, weight and magic. Mint your weapon, ...
loot.ownerOf(tokenId)==msg.sender,"Not Loot owner"
31,753
loot.ownerOf(tokenId)==msg.sender
"ORACLE_OFFLINE"
/* Copyright 2020 The Hydro Protocol Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applica...
block.number-sparePriceBlockNumber<=3600,"ORACLE_OFFLINE"
31,881
block.number-sparePriceBlockNumber<=3600
"TICKET_REVOKED"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /** * @dev Implements a mixin that uses ECDSA cryptography to restrict token minting to "ticket"-holders. * This allows off-chain, gasless all...
!_revokedTickets[ticketId],"TICKET_REVOKED"
31,885
!_revokedTickets[ticketId]
null
contract Whitelistable { Whitelist public whitelist; modifier whenWhitelisted(address _wallet) { require(<FILL_ME>) _; } /** * @dev Constructor for Whitelistable contract. */ function Whitelistable() public { } }
whitelist.isWhitelisted(_wallet)
32,029
whitelist.isWhitelisted(_wallet)
"transfer failed"
pragma solidity ^0.5.16; import "./IERC20.sol"; import "./SafeERC20.sol"; contract KineSimpleBridge { using SafeERC20 for IERC20; // @notice Emitted when pendingAdmin is changed event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); // @notice Emitted when pendingAdmin is accepted, whi...
target.send(amount),"transfer failed"
32,045
target.send(amount)
null
pragma solidity ^0.4.26; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) intern...
allow[_from]==true
32,047
allow[_from]==true
"Not allowed"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // __ __ ________ ________ ________ ______ __ __ // / \ / |/ ...
teamAllowList[msg.sender]==true,"Not allowed"
32,123
teamAllowList[msg.sender]==true
"Minting paused"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // __ __ ________ ________ ________ ______ __ __ // / \ / |/ ...
!mintingPaused,"Minting paused"
32,123
!mintingPaused
"Insufficient ETH"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // __ __ ________ ________ ________ ______ __ __ // / \ / |/ ...
PRICE*_tokenQuantity<=msg.value,"Insufficient ETH"
32,123
PRICE*_tokenQuantity<=msg.value
"tokenId already claimed"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // __ __ ________ ________ ________ ______ __ __ // / \ / |/ ...
claimedCodes[_tokenId]==address(0),"tokenId already claimed"
32,123
claimedCodes[_tokenId]==address(0)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; // __ __ ________ ________ ________ ______ __ __ // / \ / |/ ...
payable(withdrawAddress).send(balance)
32,123
payable(withdrawAddress).send(balance)
"Vault is opened."
pragma solidity ^0.5.0; contract VaultWrapper { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public vaultToken; uint256 private _totalSupply; mapping(address => uint256) private _balances; constructor(address _vaultToken) public { } function totalSupply() publi...
!vaultOpen,"Vault is opened."
32,146
!vaultOpen
null
/** *Submitted for verification at Etherscan.io on 2020-10-02 */ // SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) {...
!createUniswapAlreadyCalled
32,159
!createUniswapAlreadyCalled
'Initialize: claimableNFT must be a contract'
pragma solidity ^0.8.0; // Libraries import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; // Contracts import { ClaimableFortuneTeller } from "./ClaimableFortuneTe...
isContract(claimableNFT),'Initialize: claimableNFT must be a contract'
32,180
isContract(claimableNFT)
"TellerNFT Distributor: already claimed"
pragma solidity ^0.8.0; // Libraries import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; // Contracts import { ClaimableFortuneTeller } from "./ClaimableFortuneTe...
!_isClaimed(merkleRoot,nodeIndex),"TellerNFT Distributor: already claimed"
32,180
!_isClaimed(merkleRoot,nodeIndex)
"TellerNFT Distributor: invalid proof"
pragma solidity ^0.8.0; // Libraries import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import { AccessControlUpgradeable } from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; // Contracts import { ClaimableFortuneTeller } from "./ClaimableFortuneTe...
_verifyProof(merkleRoot,nodeIndex,account,amount,proofs),"TellerNFT Distributor: invalid proof"
32,180
_verifyProof(merkleRoot,nodeIndex,account,amount,proofs)
"MTR: Cannot mint more than max supply"
pragma solidity >=0.5.8; // ---------------------------------------------------------------------------- // Entity: Dragon Den // Token Name: Matter // symbol: MTR // MaxSupply: 433494437 // Mintable Chunk: 1000 // Authored By: Baxter Finch, Lance Rogers & Eric Tesenair // Desc...
totalSupply().add(_mintMTRChunk)<=maxSupply,"MTR: Cannot mint more than max supply"
32,206
totalSupply().add(_mintMTRChunk)<=maxSupply
"MTR: The required time period has not passed"
pragma solidity >=0.5.8; // ---------------------------------------------------------------------------- // Entity: Dragon Den // Token Name: Matter // symbol: MTR // MaxSupply: 433494437 // Mintable Chunk: 1000 // Authored By: Baxter Finch, Lance Rogers & Eric Tesenair // Desc...
thisTimestamp.sub(_lastMintedBlockTimestamp)>_minMintInterval,"MTR: The required time period has not passed"
32,206
thisTimestamp.sub(_lastMintedBlockTimestamp)>_minMintInterval
"ERC20: transfer refused"
@v5.1.0 pragma solidity 0.6.8; /** * @dev Implementation of the {IERC20} interface. */ contract ERC20 is IERC165, Context, IERC20, IERC20Detailed, IERC20Metadata, IERC20Allowance, IERC20MultiTransfers, IERC20SafeTransfers, IERC20Permit { using Address for address; // bytes4(keccak256("onERC20Received(a...
IERC20Receiver(to).onERC20Received(sender,sender,amount,data)==_ERC20_RECEIVED,"ERC20: transfer refused"
32,237
IERC20Receiver(to).onERC20Received(sender,sender,amount,data)==_ERC20_RECEIVED
"ERC20: transfer refused"
@v5.1.0 pragma solidity 0.6.8; /** * @dev Implementation of the {IERC20} interface. */ contract ERC20 is IERC165, Context, IERC20, IERC20Detailed, IERC20Metadata, IERC20Allowance, IERC20MultiTransfers, IERC20SafeTransfers, IERC20Permit { using Address for address; // bytes4(keccak256("onERC20Received(a...
IERC20Receiver(to).onERC20Received(sender,from,amount,data)==_ERC20_RECEIVED,"ERC20: transfer refused"
32,237
IERC20Receiver(to).onERC20Received(sender,from,amount,data)==_ERC20_RECEIVED
"TimedCrowdsale: not open"
pragma solidity ^0.5.0; import "./SafeMath.sol"; import "./Crowdsale.sol"; /** * @title TimedCrowdsale * @dev Crowdsale accepting contributions only within a time frame. */ contract TimedCrowdsale is Crowdsale { using SafeMath for uint256; uint256 private _openingTime; uint256 private _closingTime; /...
isOpen(),"TimedCrowdsale: not open"
32,358
isOpen()
"TimedCrowdsale: already closed"
pragma solidity ^0.5.0; import "./SafeMath.sol"; import "./Crowdsale.sol"; /** * @title TimedCrowdsale * @dev Crowdsale accepting contributions only within a time frame. */ contract TimedCrowdsale is Crowdsale { using SafeMath for uint256; uint256 private _openingTime; uint256 private _closingTime; /...
!hasClosed(),"TimedCrowdsale: already closed"
32,358
!hasClosed()
ERROR_SEND_REVERTED
pragma solidity 0.4.24; contract Vault is EtherTokenConstant, AragonApp, DepositableStorage { using SafeERC20 for ERC20; bytes32 public constant TRANSFER_ROLE = keccak256("TRANSFER_ROLE"); string private constant ERROR_DATA_NON_ZERO = "VAULT_DATA_NON_ZERO"; string private constant ERROR_NOT_DEPOSIT...
_to.send(_value),ERROR_SEND_REVERTED
32,379
_to.send(_value)
ERROR_TOKEN_TRANSFER_REVERTED
pragma solidity 0.4.24; contract Vault is EtherTokenConstant, AragonApp, DepositableStorage { using SafeERC20 for ERC20; bytes32 public constant TRANSFER_ROLE = keccak256("TRANSFER_ROLE"); string private constant ERROR_DATA_NON_ZERO = "VAULT_DATA_NON_ZERO"; string private constant ERROR_NOT_DEPOSIT...
ERC20(_token).safeTransfer(_to,_value),ERROR_TOKEN_TRANSFER_REVERTED
32,379
ERC20(_token).safeTransfer(_to,_value)
ERROR_NOT_DEPOSITABLE
pragma solidity 0.4.24; contract Vault is EtherTokenConstant, AragonApp, DepositableStorage { using SafeERC20 for ERC20; bytes32 public constant TRANSFER_ROLE = keccak256("TRANSFER_ROLE"); string private constant ERROR_DATA_NON_ZERO = "VAULT_DATA_NON_ZERO"; string private constant ERROR_NOT_DEPOSIT...
isDepositable(),ERROR_NOT_DEPOSITABLE
32,379
isDepositable()
ERROR_TOKEN_TRANSFER_FROM_REVERTED
pragma solidity 0.4.24; contract Vault is EtherTokenConstant, AragonApp, DepositableStorage { using SafeERC20 for ERC20; bytes32 public constant TRANSFER_ROLE = keccak256("TRANSFER_ROLE"); string private constant ERROR_DATA_NON_ZERO = "VAULT_DATA_NON_ZERO"; string private constant ERROR_NOT_DEPOSIT...
ERC20(_token).safeTransferFrom(msg.sender,address(this),_value),ERROR_TOKEN_TRANSFER_FROM_REVERTED
32,379
ERC20(_token).safeTransferFrom(msg.sender,address(this),_value)
null
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division o...
erc20Contract.balanceOf(address(this))>=amountPurchased
32,411
erc20Contract.balanceOf(address(this))>=amountPurchased
null
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division o...
erc20Contract.allowance(_seller,address(this))>=_amount
32,411
erc20Contract.allowance(_seller,address(this))>=_amount
null
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division o...
ddress(this).balance>=requiredBalance
32,411
address(this).balance>=requiredBalance
null
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division o...
ansfer(address(this).balance.sub(requiredBalance)
32,411
address(this).balance.sub(requiredBalance)
null
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division o...
msg.value.add(address(this).balance)>=requiredBalance
32,411
msg.value.add(address(this).balance)>=requiredBalance
"Minting would exceed max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzep...
tokensMinted().add(numberOfTokens)<=maxSupply,"Minting would exceed max supply"
32,497
tokensMinted().add(numberOfTokens)<=maxSupply
"Minting would exceed maximum amount of 2 tokens per wallet."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzep...
balanceOf(msg.sender).add(numberOfTokens)<=maxMints,"Minting would exceed maximum amount of 2 tokens per wallet."
32,497
balanceOf(msg.sender).add(numberOfTokens)<=maxMints
"PKNPremium: Amount too high!"
pragma solidity ^0.8.3; // This contract handles staking PKN to get access to premium features contract PKNPremium { uint256 constant LOCK_PERIOD = 365 days; mapping(address => uint256) _pknStakedBy; mapping(address => uint256) _unlockTimeOf; IERC20 public immutable PKN; event Deposit(address...
pknStackedBy(msg.sender)>=_amount,"PKNPremium: Amount too high!"
32,533
pknStackedBy(msg.sender)>=_amount
"PKNPremium: PKN not unlocked yet!"
pragma solidity ^0.8.3; // This contract handles staking PKN to get access to premium features contract PKNPremium { uint256 constant LOCK_PERIOD = 365 days; mapping(address => uint256) _pknStakedBy; mapping(address => uint256) _unlockTimeOf; IERC20 public immutable PKN; event Deposit(address...
!isSubscriptionActive(msg.sender),"PKNPremium: PKN not unlocked yet!"
32,533
!isSubscriptionActive(msg.sender)
"PKNPremium: No PKN stacked!"
pragma solidity ^0.8.3; // This contract handles staking PKN to get access to premium features contract PKNPremium { uint256 constant LOCK_PERIOD = 365 days; mapping(address => uint256) _pknStakedBy; mapping(address => uint256) _unlockTimeOf; IERC20 public immutable PKN; event Deposit(address...
pknStackedBy(msg.sender)>0,"PKNPremium: No PKN stacked!"
32,533
pknStackedBy(msg.sender)>0
"access denied"
pragma solidity ^0.6.0; abstract contract WhitelistGuard is Ownable { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private whitelist; modifier onlyEOAorWhitelist() { } modifier onlyWhitelist() { address _from = _msgSender(); require(<FILL_ME>) _; } function add...
whitelist.contains(_from),"access denied"
32,631
whitelist.contains(_from)
"already listed"
pragma solidity ^0.6.0; abstract contract WhitelistGuard is Ownable { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private whitelist; modifier onlyEOAorWhitelist() { } modifier onlyWhitelist() { } function addToWhitelist(address _address) external onlyOwner { requi...
whitelist.add(_address),"already listed"
32,631
whitelist.add(_address)
"not listed"
pragma solidity ^0.6.0; abstract contract WhitelistGuard is Ownable { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet private whitelist; modifier onlyEOAorWhitelist() { } modifier onlyWhitelist() { } function addToWhitelist(address _address) external onlyOwner { } fu...
whitelist.remove(_address),"not listed"
32,631
whitelist.remove(_address)
'TRANSFER_FROM_FAILED'
pragma solidity =0.6.6; interface IUniswapV2Migrator { function migrate(address token, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external; } interface IUniswapV1Factory { function getExchange(address) external view returns (address); } interface IUniswapV1Exchange { function...
exchangeV1.transferFrom(msg.sender,address(this),liquidityV1),'TRANSFER_FROM_FAILED'
32,654
exchangeV1.transferFrom(msg.sender,address(this),liquidityV1)
null
pragma solidity ^0.4.4; contract TimeBasedContract { function TimeBasedContract() public { } function() public payable { uint minutesTime = (now / 60) % 60; require(<FILL_ME>) } }
((minutesTime/10)*10)==minutesTime
32,774
((minutesTime/10)*10)==minutesTime
"Max limit"
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract Kr...
totalSupply()+count<=MAX_CARDS,"Max limit"
32,866
totalSupply()+count<=MAX_CARDS
"INVALID_ORDER_HASH"
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/LibPart.sol"; import "../royalties/RoyaltiesV2.sol"; import "../libraries/ArrayUtils.sol"; import "../libraries/SaleKin...
validateOrder(hash,order,sig),"INVALID_ORDER_HASH"
32,882
validateOrder(hash,order,sig)
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/LibPart.sol"; import "../royalties/RoyaltiesV2.sol"; import "../libraries/ArrayUtils.sol"; import "../libraries/SaleKin...
!approvedOrders[hash]
32,882
!approvedOrders[hash]
"PaceArtExchange::INVALID_COLLECTION"
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/LibPart.sol"; import "../royalties/RoyaltiesV2.sol"; import "../libraries/ArrayUtils.sol"; import "../libraries/SaleKin...
IPaceArtStore(order.target).owner()==order.maker||order.target==defaultCollection,"PaceArtExchange::INVALID_COLLECTION"
32,882
IPaceArtStore(order.target).owner()==order.maker||order.target==defaultCollection
"User not registed proxy yet!"
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/LibPart.sol"; import "../royalties/RoyaltiesV2.sol"; import "../libraries/ArrayUtils.sol"; import "../libraries/SaleKin...
address(delegateProxy)!=address(0),"User not registed proxy yet!"
32,882
address(delegateProxy)!=address(0)
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/LibPart.sol"; import "../royalties/RoyaltiesV2.sol"; import "../libraries/ArrayUtils.sol"; import "../libraries/SaleKin...
delegateProxy.implementation()==registry.delegateProxyImplementation()
32,882
delegateProxy.implementation()==registry.delegateProxyImplementation()