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.24;
/**
* @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... | !lockupIsSet | 358,761 | !lockupIsSet |
null | pragma solidity ^0.4.24;
/**
* @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... | !tranche | 358,761 | !tranche |
null | pragma solidity ^0.4.24;
/**
* @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... | safeKeys[_oldKey] | 358,761 | safeKeys[_oldKey] |
null | pragma solidity ^0.4.24;
/**
* @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... | userCells[msg.sender].balance>=_balance | 358,761 | userCells[msg.sender].balance>=_balance |
null | pragma solidity ^0.4.24;
/**
* @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... | userCells[_to].lockup>=userCells[msg.sender].lockup | 358,761 | userCells[_to].lockup>=userCells[msg.sender].lockup |
null | pragma solidity ^0.4.24;
/**
* @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... | userCells[_to].exist | 358,761 | userCells[_to].exist |
"Transaction will exceed maximum supply of HappySharks" | pragma solidity ^0.8.0;
/// @author Hammad Ghazi
contract HappySharks is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public constant MAX_HS = 10000;
uint256 public price = 35000000000000000; //0.035 Ether
string baseTokenURI;
... | totalSupply()+_count<=MAX_HS,"Transaction will exceed maximum supply of HappySharks" | 358,809 | totalSupply()+_count<=MAX_HS |
"Moloch::onlyMember - not a member" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | members[msg.sender].shares>0,"Moloch::onlyMember - not a member" | 358,813 | members[msg.sender].shares>0 |
"Moloch::onlyDelegate - not a delegate" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | members[memberAddressByDelegateKey[msg.sender]].shares>0,"Moloch::onlyDelegate - not a delegate" | 358,813 | members[memberAddressByDelegateKey[msg.sender]].shares>0 |
"Moloch::submitProposal - too many shares requested" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | totalShares.add(totalSharesRequested).add(sharesRequested)<=MAX_NUMBER_OF_SHARES,"Moloch::submitProposal - too many shares requested" | 358,813 | totalShares.add(totalSharesRequested).add(sharesRequested)<=MAX_NUMBER_OF_SHARES |
"Moloch::submitProposal - proposal deposit token transfer failed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transferFrom(msg.sender,address(this),proposalDeposit),"Moloch::submitProposal - proposal deposit token transfer failed" | 358,813 | approvedToken.transferFrom(msg.sender,address(this),proposalDeposit) |
"Moloch::submitProposal - tribute token transfer failed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transferFrom(applicant,address(this),tokenTribute),"Moloch::submitProposal - tribute token transfer failed" | 358,813 | approvedToken.transferFrom(applicant,address(this),tokenTribute) |
"Moloch::submitVote - voting period has not started" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | getCurrentPeriod()>=proposal.startingPeriod,"Moloch::submitVote - voting period has not started" | 358,813 | getCurrentPeriod()>=proposal.startingPeriod |
"Moloch::submitVote - proposal voting period has expired" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | !hasVotingPeriodExpired(proposal.startingPeriod),"Moloch::submitVote - proposal voting period has expired" | 358,813 | !hasVotingPeriodExpired(proposal.startingPeriod) |
"Moloch::submitVote - member has already voted on this proposal" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | proposal.votesByMember[memberAddress]==Vote.Null,"Moloch::submitVote - member has already voted on this proposal" | 358,813 | proposal.votesByMember[memberAddress]==Vote.Null |
"Moloch::submitVote - proposal has been aborted" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | !proposal.aborted,"Moloch::submitVote - proposal has been aborted" | 358,813 | !proposal.aborted |
"Moloch::processProposal - proposal is not ready to be processed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | getCurrentPeriod()>=proposal.startingPeriod.add(votingPeriodLength).add(gracePeriodLength),"Moloch::processProposal - proposal is not ready to be processed" | 358,813 | getCurrentPeriod()>=proposal.startingPeriod.add(votingPeriodLength).add(gracePeriodLength) |
"Moloch::processProposal - token transfer to guild bank failed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transfer(address(guildBank),proposal.tokenTribute),"Moloch::processProposal - token transfer to guild bank failed" | 358,813 | approvedToken.transfer(address(guildBank),proposal.tokenTribute) |
"Moloch::processProposal - failing vote token transfer failed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transfer(proposal.applicant,proposal.tokenTribute),"Moloch::processProposal - failing vote token transfer failed" | 358,813 | approvedToken.transfer(proposal.applicant,proposal.tokenTribute) |
"Moloch::processProposal - failed to send processing reward to msg.sender" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transfer(msg.sender,processingReward),"Moloch::processProposal - failed to send processing reward to msg.sender" | 358,813 | approvedToken.transfer(msg.sender,processingReward) |
"Moloch::processProposal - failed to return proposal deposit to proposer" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transfer(proposal.proposer,proposalDeposit.sub(processingReward)),"Moloch::processProposal - failed to return proposal deposit to proposer" | 358,813 | approvedToken.transfer(proposal.proposer,proposalDeposit.sub(processingReward)) |
"Moloch::ragequit - cant ragequit until highest index proposal member voted YES on is processed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | canRagequit(member.highestIndexYesVote),"Moloch::ragequit - cant ragequit until highest index proposal member voted YES on is processed" | 358,813 | canRagequit(member.highestIndexYesVote) |
"Moloch::ragequit - withdrawal of tokens from guildBank failed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | guildBank.withdraw(msg.sender,sharesToBurn,initialTotalShares),"Moloch::ragequit - withdrawal of tokens from guildBank failed" | 358,813 | guildBank.withdraw(msg.sender,sharesToBurn,initialTotalShares) |
"Moloch::abort - abort window must not have passed" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | getCurrentPeriod()<proposal.startingPeriod.add(abortWindow),"Moloch::abort - abort window must not have passed" | 358,813 | getCurrentPeriod()<proposal.startingPeriod.add(abortWindow) |
"Moloch::processProposal - failed to return tribute to applicant" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | approvedToken.transfer(proposal.applicant,tokensToAbort),"Moloch::processProposal - failed to return tribute to applicant" | 358,813 | approvedToken.transfer(proposal.applicant,tokensToAbort) |
"Moloch::updateDelegateKey - cant overwrite existing members" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | !members[newDelegateKey].exists,"Moloch::updateDelegateKey - cant overwrite existing members" | 358,813 | !members[newDelegateKey].exists |
"Moloch::updateDelegateKey - cant overwrite existing delegate keys" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | !members[memberAddressByDelegateKey[newDelegateKey]].exists,"Moloch::updateDelegateKey - cant overwrite existing delegate keys" | 358,813 | !members[memberAddressByDelegateKey[newDelegateKey]].exists |
"Moloch::getMemberProposalVote - member doesn't exist" | pragma solidity ^0.5.3;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
ui... | members[memberAddress].exists,"Moloch::getMemberProposalVote - member doesn't exist" | 358,813 | members[memberAddress].exists |
"Max supply reached" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | totalTokenSupply+_metaCitznTokenIds.length<TOTAL_MAX_SUPPLY+1,"Max supply reached" | 358,957 | totalTokenSupply+_metaCitznTokenIds.length<TOTAL_MAX_SUPPLY+1 |
"metaCITZN token provided has already been utilized to mint" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | metaCITZNTokenIdsMinted[_metaCitznTokenId]==false,"metaCITZN token provided has already been utilized to mint" | 358,957 | metaCITZNTokenIdsMinted[_metaCitznTokenId]==false |
"You are not the owner of this token" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | metacitznContract.ownerOf(_metaCitznTokenId)==msg.sender,"You are not the owner of this token" | 358,957 | metacitznContract.ownerOf(_metaCitznTokenId)==msg.sender |
"1 WL mint per wallet allocation exceeded" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | addressToAmountWLMintedSoFar[msg.sender]+1<2,"1 WL mint per wallet allocation exceeded" | 358,957 | addressToAmountWLMintedSoFar[msg.sender]+1<2 |
"Purchase would exceed max supply" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | totalTokenSupply+1<TOTAL_MAX_SUPPLY+1,"Purchase would exceed max supply" | 358,957 | totalTokenSupply+1<TOTAL_MAX_SUPPLY+1 |
"Unrecognizable Hash" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | messageHash.recover(_signature)==signatureVerifier,"Unrecognizable Hash" | 358,957 | messageHash.recover(_signature)==signatureVerifier |
"invalid id" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | isValidTokenId(_tokenId),"invalid id" | 358,957 | isValidTokenId(_tokenId) |
"invalid id" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | isValidTokenId(_id),"invalid id" | 358,957 | isValidTokenId(_id) |
"Purchase would exceed max supply" | pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzep... | totalTokenSupply+_numberToMint<TOTAL_MAX_SUPPLY+1,"Purchase would exceed max supply" | 358,957 | totalTokenSupply+_numberToMint<TOTAL_MAX_SUPPLY+1 |
"Not enough tokens in contract balance to cover withdrawl" | // SPDX-License-Identifier: GPL-3.0
// Author: Matt Hooft
// https://github.com/Civitas-Fundamenta
// mhooft@fundamenta.network
// This is a token vesting contract that can add multiple beneficiaries. It uses
// Unix timestamps to keep track of release times and only the beneficiary is
// allowed to remove the ... | contractBalance()>=b.LockedAmount,"Not enough tokens in contract balance to cover withdrawl" | 358,962 | contractBalance()>=b.LockedAmount |
null | // SPDX-License-Identifier: GPL-3.0
// Author: Matt Hooft
// https://github.com/Civitas-Fundamenta
// mhooft@fundamenta.network
// This is a token vesting contract that can add multiple beneficiaries. It uses
// Unix timestamps to keep track of release times and only the beneficiary is
// allowed to remove the ... | hasRole(_MOVE,msg.sender) | 358,962 | hasRole(_MOVE,msg.sender) |
null | // SPDX-License-Identifier: GPL-3.0
// Author: Matt Hooft
// https://github.com/Civitas-Fundamenta
// mhooft@fundamenta.network
// This is a token vesting contract that can add multiple beneficiaries. It uses
// Unix timestamps to keep track of release times and only the beneficiary is
// allowed to remove the ... | hasRole(_RESCUE,msg.sender) | 358,962 | hasRole(_RESCUE,msg.sender) |
"the conversion did not happen as planned" | // Copyright (C) 2019, 2020 dipeshsukhani, nodarjonashi, toshsharma, suhailg
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 2 of the License, or
// (at your option) any... | ERC20TokenAddress.balanceOf(address(this))>0,"the conversion did not happen as planned" | 358,979 | ERC20TokenAddress.balanceOf(address(this))>0 |
"201" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | _tulipToken[i][garden].planted[msg.sender]==0&&now>_tulipToken[i][garden].periodFinish[msg.sender],"201" | 358,986 | _tulipToken[i][garden].planted[msg.sender]==0&&now>_tulipToken[i][garden].periodFinish[msg.sender] |
"203" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | (amount%100)==0,"203" | 358,986 | (amount%100)==0 |
"226" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | !_tulipToken[i][garden].isDecomposing[msg.sender],"226" | 358,986 | !_tulipToken[i][garden].isDecomposing[msg.sender] |
"245" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | !_tulipToken[tulipType(name)][garden].isDecomposing[msg.sender],"245" | 358,986 | !_tulipToken[tulipType(name)][garden].isDecomposing[msg.sender] |
"293" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | _tulipToken[i][garden].planted[msg.sender]==0&&(_tulipToken[i][garden].periodFinish[msg.sender]==0||now>_tulipToken[i][garden].periodFinish[msg.sender]),"293" | 358,986 | _tulipToken[i][garden].planted[msg.sender]==0&&(_tulipToken[i][garden].periodFinish[msg.sender]==0||now>_tulipToken[i][garden].periodFinish[msg.sender]) |
"308" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | _tulipToken[i][garden].isDecomposing[msg.sender],"308" | 358,986 | _tulipToken[i][garden].isDecomposing[msg.sender] |
"464" | pragma solidity ^0.5.16;
contract GardenContractV2 is Ownable {
using SafeMath for uint256;
using SafeERC20 for TulipToken;
using SafeERC20 for IERC20;
/* ========== STATE VARIABLES ========== */
address internal _benefitiaryAddress = 0x68c1A22aD90f168aa19F800bFB115fB4D52F4AD9; //Founder Address
uint... | _tulipToken[i][garden].planted[msg.sender]>0,"464" | 358,986 | _tulipToken[i][garden].planted[msg.sender]>0 |
"Must not be paused" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | !globalPaused,"Must not be paused" | 359,004 | !globalPaused |
"Doesn't support NFT interface" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | IERC165(_nftAddress).supportsInterface(interfaceId),"Doesn't support NFT interface" | 359,004 | IERC165(_nftAddress).supportsInterface(interfaceId) |
"Auction doesn't exist" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | auctions[tokenId].exists,"Auction doesn't exist" | 359,004 | auctions[tokenId].exists |
"Auction already exists" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | !auctions[tokenId].exists,"Auction already exists" | 359,004 | !auctions[tokenId].exists |
"Auction paused" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | !auctions[tokenId].paused,"Auction paused" | 359,004 | !auctions[tokenId].paused |
"Auction expired" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | auctions[tokenId].firstBidTime==0||block.timestamp<auctions[tokenId].firstBidTime+auctions[tokenId].duration,"Auction expired" | 359,004 | auctions[tokenId].firstBidTime==0||block.timestamp<auctions[tokenId].firstBidTime+auctions[tokenId].duration |
"Must send more than last bid by minBid Amount" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | msg.value.sub(lastValue)>=minBid,"Must send more than last bid by minBid Amount" | 359,004 | msg.value.sub(lastValue)>=minBid |
"Auction hasn't begun" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | uint256(auctions[tokenId].firstBidTime)!=0,"Auction hasn't begun" | 359,004 | uint256(auctions[tokenId].firstBidTime)!=0 |
"Can only be called by auction creator or owner" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | auctions[tokenId].creator==msg.sender||msg.sender==owner(),"Can only be called by auction creator or owner" | 359,004 | auctions[tokenId].creator==msg.sender||msg.sender==owner() |
"Can't cancel an auction once it's begun" | pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
██▀███ ▓█████ ██████ ▓█████ ██▀███ ██▒ █▓▓█████ ▄▄▄ █ ██ ▄████▄ ▄▄▄█████▓ ██▓ ▒█████ ███▄ █
▓██ ▒ ██▒▓█ ▀ ▒██ ▒ ▓█ ▀ ▓██ ▒ ██▒▓██░ █▒▓█ ▀ ▒████▄ ██ ▓██▒▒██▀ ▀█ ▓ ██▒ ▓▒▓██▒▒██▒ ██▒ ██ ▀... | uint256(auctions[tokenId].firstBidTime)==0,"Can't cancel an auction once it's begun" | 359,004 | uint256(auctions[tokenId].firstBidTime)==0 |
"!signature" | pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NerdBaseToken is Context, INerdBaseTokenLGE, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public constant DEV_FUND_LOCKED_MONTHS = 6;
uint256 public constant ONE_MONTH = 30 days;... | isApprovedBySignature(msg.sender,r,s,v),"!signature" | 359,049 | isApprovedBySignature(msg.sender,r,s,v) |
"Liquidity generation grace period still ongoing" | pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NerdBaseToken is Context, INerdBaseTokenLGE, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public constant DEV_FUND_LOCKED_MONTHS = 6;
uint256 public constant ONE_MONTH = 30 days;... | contractStartTimestamp.add(8days)<block.timestamp,"Liquidity generation grace period still ongoing" | 359,049 | contractStartTimestamp.add(8days)<block.timestamp |
"You havent played the game" | pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NerdBaseToken is Context, INerdBaseTokenLGE, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public constant DEV_FUND_LOCKED_MONTHS = 6;
uint256 public constant ONE_MONTH = 30 days;... | isJoinedLGE(msg.sender)||(isApprovedBySignature(msg.sender,r,s,v)),"You havent played the game" | 359,049 | isJoinedLGE(msg.sender)||(isApprovedBySignature(msg.sender,r,s,v)) |
"You havent played the game" | pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NerdBaseToken is Context, INerdBaseTokenLGE, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public constant DEV_FUND_LOCKED_MONTHS = 6;
uint256 public constant ONE_MONTH = 30 days;... | isJoinedLGE(msg.sender),"You havent played the game" | 359,049 | isJoinedLGE(msg.sender) |
"Math broke, does gravity still work?" | pragma solidity 0.6.12;
// import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract NerdBaseToken is Context, INerdBaseTokenLGE, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public constant DEV_FUND_LOCKED_MONTHS = 6;
uint256 public constant ONE_MONTH = 30 days;... | transferToAmount.add(transferToFeeDistributorAmount)==amount,"Math broke, does gravity still work?" | 359,049 | transferToAmount.add(transferToFeeDistributorAmount)==amount |
'Buy the previous stage' | /**
* RedLine project
*
* Website: https://redline.fund
* Email: admin@redline.fund
*/
pragma solidity ^0.5.10;
contract Redline {
mapping (uint => uint) public stagePrice;
address public owner;
uint public currentUserID;
mapping (address => User) public users;
mapping (uint => address) publi... | getUserStageEndTime(msg.sender,s)>=now,'Buy the previous stage' | 359,067 | getUserStageEndTime(msg.sender,s)>=now |
"Could not transfer tokens." | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) ... | Token(VAPEAddress).transfer(account,unclaimedDivs),"Could not transfer tokens." | 359,085 | Token(VAPEAddress).transfer(account,unclaimedDivs) |
"Insufficient Token Allowance" | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) ... | Token(LPTokenAddress).transferFrom(msg.sender,address(this),amountToFarm),"Insufficient Token Allowance" | 359,085 | Token(LPTokenAddress).transferFrom(msg.sender,address(this),amountToFarm) |
"Could not transfer deposit fee." | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) ... | Token(LPTokenAddress).transfer(admin,fee),"Could not transfer deposit fee." | 359,085 | Token(LPTokenAddress).transfer(admin,fee) |
"You have not staked for a while yet, kindly wait a bit more" | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) ... | now.sub(farmingTime[msg.sender])>PossibleUnfarmTime,"You have not staked for a while yet, kindly wait a bit more" | 359,085 | now.sub(farmingTime[msg.sender])>PossibleUnfarmTime |
"Could not transfer tokens." | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) ... | Token(LPTokenAddress).transfer(msg.sender,amountAfterFee),"Could not transfer tokens." | 359,085 | Token(LPTokenAddress).transfer(msg.sender,amountAfterFee) |
"Beneficiary not assigned" | pragma solidity 0.5.17;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "./Escrow.sol";
interface IBeneficiaryContract {
function __escrowSentTokens(uint256 amo... | address(beneficiary)!=address(0),"Beneficiary not assigned" | 359,087 | address(beneficiary)!=address(0) |
"Unsupported token" | pragma solidity 0.5.17;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "./Escrow.sol";
interface IBeneficiaryContract {
function __escrowSentTokens(uint256 amo... | IERC20(_token)==token,"Unsupported token" | 359,087 | IERC20(_token)==token |
"Beneficiary was not approved" | pragma solidity 0.5.17;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "./Escrow.sol";
interface IBeneficiaryContract {
function __escrowSentTokens(uint256 amo... | isBeneficiaryApproved(beneficiary),"Beneficiary was not approved" | 359,087 | isBeneficiaryApproved(beneficiary) |
'you cant withdraw that amount at this moment' | pragma solidity >=0.5.16 <0.7.0;
contract Latency {
struct LatencyPoint
{
uint256 time;
uint256 value;
}
LatencyPoint[] public _latencyArray;
address owner;
constructor ( ) public
{
}
modifier onlyOwner()
{
}
// the value which is incremeted... | withdrawableAmount()>=_value,'you cant withdraw that amount at this moment' | 359,117 | withdrawableAmount()>=_value |
"Invalid Signature" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | verifyOwnerSignature(keccak256(abi.encode(_mintData)),_signature),"Invalid Signature" | 359,218 | verifyOwnerSignature(keccak256(abi.encode(_mintData)),_signature) |
"No ipfs" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | bytes(_mintData._tokenMetadataIPFSHash).length>0,"No ipfs" | 359,218 | bytes(_mintData._tokenMetadataIPFSHash).length>0 |
"You cannot mint more." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | addressMintCount[_msgSender()]<maxMintPerAddress,"You cannot mint more." | 359,218 | addressMintCount[_msgSender()]<maxMintPerAddress |
"Available tokens minted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | totalMinted+(ownerMintReserveCount-ownerMintCount)<mintSupplyCount,"Available tokens minted" | 359,218 | totalMinted+(ownerMintReserveCount-ownerMintCount)<mintSupplyCount |
"Only whitelist tokens available" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | (block.timestamp>whitelistExpirationTimestamp||whitelist[_msgSender()]||(totalMinted+(ownerMintReserveCount-ownerMintCount)+((whitelistAddressCount-whitelistMintCount)*2)<mintSupplyCount)),"Only whitelist tokens available" | 359,218 | (block.timestamp>whitelistExpirationTimestamp||whitelist[_msgSender()]||(totalMinted+(ownerMintReserveCount-ownerMintCount)+((whitelistAddressCount-whitelistMintCount)*2)<mintSupplyCount)) |
"Invalid Signature" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | verifyOwnerSignature(keccak256(abi.encode(_msgSender())),_signature),"Invalid Signature" | 359,218 | verifyOwnerSignature(keccak256(abi.encode(_msgSender())),_signature) |
"Whitelist is not available" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | !mintEnabled,"Whitelist is not available" | 359,218 | !mintEnabled |
"Your address is already whitelisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Compile with optimizer on, otherwise exceeds size limit.
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openz... | !whitelist[_msgSender()],"Your address is already whitelisted" | 359,218 | !whitelist[_msgSender()] |
null | pragma solidity ^0.4.10;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
function sub(uint256 a, uint256 b) internal constant returns (uint256) {
}
function add(ui... | !refundsEnabled | 359,241 | !refundsEnabled |
"Source tokens are stuck in 0xv4 exchange" | pragma solidity 0.7.5;
contract ZeroxV4 is IExchange, TokenFetcher {
using Address for address;
using LibBytes for bytes;
address public weth;
struct ZeroxData {
LibOrderV4.Order order;
LibOrderV4.Signature signature;
}
constructor(address _weth) public {
}
/**... | Utils.tokenBalance(address(_fromToken),address(this))<=initialExchangeFromBalance,"Source tokens are stuck in 0xv4 exchange" | 359,317 | Utils.tokenBalance(address(_fromToken),address(this))<=initialExchangeFromBalance |
"Invalid from token!!" | pragma solidity 0.7.5;
contract ZeroxV4 is IExchange, TokenFetcher {
using Address for address;
using LibBytes for bytes;
address public weth;
struct ZeroxData {
LibOrderV4.Order order;
LibOrderV4.Signature signature;
}
constructor(address _weth) public {
}
/**... | address(data.order.takerToken)==address(_fromToken),"Invalid from token!!" | 359,317 | address(data.order.takerToken)==address(_fromToken) |
"Invalid to token!!" | pragma solidity 0.7.5;
contract ZeroxV4 is IExchange, TokenFetcher {
using Address for address;
using LibBytes for bytes;
address public weth;
struct ZeroxData {
LibOrderV4.Order order;
LibOrderV4.Signature signature;
}
constructor(address _weth) public {
}
/**... | address(data.order.makerToken)==address(_toToken),"Invalid to token!!" | 359,317 | address(data.order.makerToken)==address(_toToken) |
'Caller is not owner of the token ID' | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Owna... | _impermanentContractInstance.ownerOf(tokenId)==msg.sender,'Caller is not owner of the token ID' | 359,318 | _impermanentContractInstance.ownerOf(tokenId)==msg.sender |
'Caller is not owner of the token ID' | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Owna... | _impermanentContractInstance.ownerOf(tokenIds[i])==msg.sender,'Caller is not owner of the token ID' | 359,318 | _impermanentContractInstance.ownerOf(tokenIds[i])==msg.sender |
null | pragma solidity 0.4.18;
interface UniswapExchange {
function ethToTokenSwapInput(
uint256 min_tokens,
uint256 deadline
)
external
payable
returns (uint256 tokens_bought);
function tokenToEthSwapInput(
uint256 tokens_sold,
uint256 min_eth,
... | destToken.transfer(destAddress,expectedDestAmount) | 359,358 | destToken.transfer(destAddress,expectedDestAmount) |
null | pragma solidity 0.4.18;
interface UniswapExchange {
function ethToTokenSwapInput(
uint256 min_tokens,
uint256 deadline
)
external
payable
returns (uint256 tokens_bought);
function tokenToEthSwapInput(
uint256 tokens_sold,
uint256 min_eth,
... | tokenExchange[address(token)]!=address(0) | 359,358 | tokenExchange[address(token)]!=address(0) |
"user cannot mint" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token... | recoverAddress(msg.sender,maxFreeMints,signature)==_signerAddress,"user cannot mint" | 359,406 | recoverAddress(msg.sender,maxFreeMints,signature)==_signerAddress |
"quantity exceeds allowance" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token... | quantity+accountToMintedFreeTokens[msg.sender]<=maxFreeMints,"quantity exceeds allowance" | 359,406 | quantity+accountToMintedFreeTokens[msg.sender]<=maxFreeMints |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 <0.9.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/... | payable(DAO).send(artists*2) | 359,544 | payable(DAO).send(artists*2) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 <0.9.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/... | payable(owner()).send(artists*3) | 359,544 | payable(owner()).send(artists*3) |
"Reserve would exceed max supply of Dorkis" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 <0.9.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/... | totalSupply().add(MAX_RESERVE)<=MAX_SLOTHS,"Reserve would exceed max supply of Dorkis" | 359,544 | totalSupply().add(MAX_RESERVE)<=MAX_SLOTHS |
"Purchase would exceed max supply of tokens" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0 <0.9.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.2.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/... | totalSupply().add(numberOfTokens)<=MAX_SLOTHS,"Purchase would exceed max supply of tokens" | 359,544 | totalSupply().add(numberOfTokens)<=MAX_SLOTHS |
null | pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
function sub(uin... | validBeneficiary(beneficiary) | 359,584 | validBeneficiary(beneficiary) |
null | pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
function sub(uin... | validPurchaseSize() | 359,584 | validPurchaseSize() |
"Purchase would exceed max supply of tokens" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "manifoldxyz-creator-core-solidity/contracts/core/IERC721CreatorCore.sol";
import "mani... | _numMinted+numberOfTokens<=MAX_SUPPLY,"Purchase would exceed max supply of tokens" | 359,663 | _numMinted+numberOfTokens<=MAX_SUPPLY |
"Fees too high" | pragma solidity ^0.8.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) ext... | totalFees()<20,"Fees too high" | 359,678 | totalFees()<20 |
"buy cooldown!" | pragma solidity ^0.8.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) ext... | block.timestamp-lastBuy[tx.origin]>=_buyCooldown,"buy cooldown!" | 359,678 | block.timestamp-lastBuy[tx.origin]>=_buyCooldown |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.