comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"!strategy" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;
pragma experimental ABIEncoderV2;
import "../lib/safe-math.sol";
import "../lib/erc20.sol";
import "../interfaces/univ3/IUniswapV3PositionsNFT.sol";
import "../interfaces/backscratcher/FraxGauge.sol";
interface IProxy {
function execute(
address to,
... | strategies[_gauge]==msg.sender,"!strategy" | 387,440 | strategies[_gauge]==msg.sender |
"hash already used" | pragma solidity 0.4.25;
/// @title The AirDropper contract to send ether to users
/// @author Switcheo Network
contract AirDropper {
using SafeMath for uint256;
// The Switcheo Broker contract
Broker public broker;
// A record of which hashes have been used before
mapping(bytes32 => bool) pu... | usedHashes[_hash]!=true,"hash already used" | 387,442 | usedHashes[_hash]!=true |
'Token Is Already Added' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | !hasToken(erc20TokenAddress),'Token Is Already Added' | 387,480 | !hasToken(erc20TokenAddress) |
'Token is Invalid' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokens[symbolNameIndex].tokenContract!=address(0),'Token is Invalid' | 387,480 | tokens[symbolNameIndex].tokenContract!=address(0) |
'Token Cannot be deposited' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokens[symbolNameIndex].state==State.Waiting,'Token Cannot be deposited' | 387,480 | tokens[symbolNameIndex].state==State.Waiting |
'You are not owner of this coin' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokens[symbolNameIndex].owner==msg.sender,'You are not owner of this coin' | 387,480 | tokens[symbolNameIndex].owner==msg.sender |
null | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | token.transferFrom(msg.sender,address(this),amountTokens)==true | 387,480 | token.transferFrom(msg.sender,address(this),amountTokens)==true |
null | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokenBalanceForAddress[symbolNameIndex]+amountTokens>=tokenBalanceForAddress[symbolNameIndex] | 387,480 | tokenBalanceForAddress[symbolNameIndex]+amountTokens>=tokenBalanceForAddress[symbolNameIndex] |
'Token Cannot be withdrawn' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | !checkDeadLine(tokens[symbolNameIndex])||tokens[symbolNameIndex].leftover==0,'Token Cannot be withdrawn' | 387,480 | !checkDeadLine(tokens[symbolNameIndex])||tokens[symbolNameIndex].leftover==0 |
"overflow error" | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokenBalanceForAddress[symbolNameIndex]-_amountTokens>=0,"overflow error" | 387,480 | tokenBalanceForAddress[symbolNameIndex]-_amountTokens>=0 |
"Insufficient amount of token" | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | tokenBalanceForAddress[symbolNameIndex]-_amountTokens<=tokenBalanceForAddress[symbolNameIndex],"Insufficient amount of token" | 387,480 | tokenBalanceForAddress[symbolNameIndex]-_amountTokens<=tokenBalanceForAddress[symbolNameIndex] |
"transfer failed" | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | token.transfer(msg.sender,_amountTokens)==true,"transfer failed" | 387,480 | token.transfer(msg.sender,_amountTokens)==true |
'Insufficient amount of ETH' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | refAccount[msg.sender]>=amount,'Insufficient amount of ETH' | 387,480 | refAccount[msg.sender]>=amount |
"Incorrect Eth Amount" | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | (_amount*token.priceInWie)/(10**token.decimals)==msg.value,"Incorrect Eth Amount" | 387,480 | (_amount*token.priceInWie)/(10**token.decimals)==msg.value |
'Deadline Passed' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | checkDeadLine(token),'Deadline Passed' | 387,480 | checkDeadLine(token) |
'Insufficient Token Amount' | pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// --------------------------------------------------------------------... | ERC20token.transferFrom(address(this),msg.sender,_amount)==true,'Insufficient Token Amount' | 387,480 | ERC20token.transferFrom(address(this),msg.sender,_amount)==true |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | isMaster()||isOwner() | 387,510 | isMaster()||isOwner() |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | bytes(channelId).length>0 | 387,510 | bytes(channelId).length>0 |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | bytes(ownerId).length>0 | 387,510 | bytes(ownerId).length>0 |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | bytes(from).length>0 | 387,510 | bytes(from).length>0 |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | bytes(to).length>0 | 387,510 | bytes(to).length>0 |
null | pragma solidity ^0.5.0;
contract Ownable
{
bool private stopped;
address private _owner;
address private _master;
event Stopped();
event Started();
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event MasterRoleTransferred(address indexed previo... | addressMap[to]==address(0) | 387,510 | addressMap[to]==address(0) |
'cannot burn' | pragma solidity ^0.5.0;
contract Burner is Withdrawable {
using SafeMath for uint256;
IEDOToken edo;
address public unburnedDestination;
uint256 public percentageToBurn;
bool public paused;
event Burn(uint burnedAmount, uint savedAmount);
constructor(address edoTokenAddress, address ... | edo.burn(toBurn),'cannot burn' | 387,516 | edo.burn(toBurn) |
'cannot transfer unburned tokens' | pragma solidity ^0.5.0;
contract Burner is Withdrawable {
using SafeMath for uint256;
IEDOToken edo;
address public unburnedDestination;
uint256 public percentageToBurn;
bool public paused;
event Burn(uint burnedAmount, uint savedAmount);
constructor(address edoTokenAddress, address ... | edo.transfer(unburnedDestination,notBurned),'cannot transfer unburned tokens' | 387,516 | edo.transfer(unburnedDestination,notBurned) |
"only externally accounts" | pragma solidity 0.4.25;
/**
*
* This is s hedge fund based on the cryptocurrencies that helps to all investors in our fund
* to Minimize the risks of investing in cryptocurrencies and
* Maximize your ETH profits from 9.99% per day, 299.7% per month, 3596.4% per year.
*
*
*/
library Math {
function min... | msg.sender.isNotContract(),"only externally accounts" | 387,517 | msg.sender.isNotContract() |
null | pragma solidity 0.4.25;
/**
*
* This is s hedge fund based on the cryptocurrencies that helps to all investors in our fund
* to Minimize the risks of investing in cryptocurrencies and
* Maximize your ETH profits from 9.99% per day, 299.7% per month, 3596.4% per year.
*
*
*/
library Math {
function min... | now.sub(getMemInvestor(msg.sender).paymentTime)>24hours | 387,517 | now.sub(getMemInvestor(msg.sender).paymentTime)>24hours |
"cannot to pay zero dividends" | pragma solidity 0.4.25;
/**
*
* This is s hedge fund based on the cryptocurrencies that helps to all investors in our fund
* to Minimize the risks of investing in cryptocurrencies and
* Maximize your ETH profits from 9.99% per day, 299.7% per month, 3596.4% per year.
*
*
*/
library Math {
function min... | dividends.notZero(),"cannot to pay zero dividends" | 387,517 | dividends.notZero() |
"ALREADY_OWNER" | // SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.4;
import "./IERC20NoTransfer.sol";
/**
* @dev BrinkVote is a simple balance ledger created for Brink proposal voting on snapshot.org
*
* This is not an ERC20 token! It does not fully implement the ERC20 standard. Balances cannot be transfered. Balanc... | !_isOwner(owner),"ALREADY_OWNER" | 387,684 | !_isOwner(owner) |
"CANNOT_REMOVE_NON_OWNER" | // SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.4;
import "./IERC20NoTransfer.sol";
/**
* @dev BrinkVote is a simple balance ledger created for Brink proposal voting on snapshot.org
*
* This is not an ERC20 token! It does not fully implement the ERC20 standard. Balances cannot be transfered. Balanc... | _isOwner(owner),"CANNOT_REMOVE_NON_OWNER" | 387,684 | _isOwner(owner) |
"CAP_EXCEEDED" | // SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity =0.8.4;
import "./IERC20NoTransfer.sol";
/**
* @dev BrinkVote is a simple balance ledger created for Brink proposal voting on snapshot.org
*
* This is not an ERC20 token! It does not fully implement the ERC20 standard. Balances cannot be transfered. Balanc... | !_capExceeded(),"CAP_EXCEEDED" | 387,684 | !_capExceeded() |
null | contract ReservationFund is ICrowdsaleReservationFund, Ownable, SafeMath {
bool public crowdsaleFinished = false;
mapping(address => uint256) contributions;
mapping(address => uint256) tokensToIssue;
mapping(address => uint256) bonusTokensToIssue;
ISimpleCrowdsale public crowdsale;
event R... | crowdsale.isContributorInLists(contributor) | 387,785 | crowdsale.isContributorInLists(contributor) |
null | contract ReservationFund is ICrowdsaleReservationFund, Ownable, SafeMath {
bool public crowdsaleFinished = false;
mapping(address => uint256) contributions;
mapping(address => uint256) tokensToIssue;
mapping(address => uint256) bonusTokensToIssue;
ISimpleCrowdsale public crowdsale;
event R... | contributions[contributor]>0 | 387,785 | contributions[contributor]>0 |
null | contract ReservationFund is ICrowdsaleReservationFund, Ownable, SafeMath {
bool public crowdsaleFinished = false;
mapping(address => uint256) contributions;
mapping(address => uint256) tokensToIssue;
mapping(address => uint256) bonusTokensToIssue;
ISimpleCrowdsale public crowdsale;
event R... | contributions[contributor]>0||tokensToIssue[contributor]>0 | 387,785 | contributions[contributor]>0||tokensToIssue[contributor]>0 |
"Not enough Glass remaining to mint" | contract Glass is ERC721, IERC2981, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private tokenCounter;
string private baseURI = 'https://www.pfp.glass/api/metadata';
uint256 public maxGlass = 500;
bool public isPublicSaleActiv... | tokenCounter.current()+numberOfTokens<=maxGlass,"Not enough Glass remaining to mint" | 387,810 | tokenCounter.current()+numberOfTokens<=maxGlass |
"Owner already minted theirs" | contract Glass is ERC721, IERC2981, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private tokenCounter;
string private baseURI = 'https://www.pfp.glass/api/metadata';
uint256 public maxGlass = 500;
bool public isPublicSaleActiv... | !ownerMinted,"Owner already minted theirs" | 387,810 | !ownerMinted |
"Only artist or whitelisted" | // SPDX-License-Identifier: LGPL-3.0-only
// Creatd By: Art Blocks Inc.
import "../../libs/0.5.x/CustomERC721Metadata.sol";
import "../../libs/0.5.x/SafeMath.sol";
import "../../libs/0.5.x/Strings.sol";
import "../../interfaces/0.5.x/IRandomizer.sol";
import "../../interfaces/0.5.x/IGenArt721CoreV2_PBAB.sol";
pragma so... | isWhitelisted[msg.sender]||msg.sender==projectIdToArtistAddress[_projectId],"Only artist or whitelisted" | 387,859 | isWhitelisted[msg.sender]||msg.sender==projectIdToArtistAddress[_projectId] |
"Must mint from whitelisted minter contract." | // SPDX-License-Identifier: LGPL-3.0-only
// Creatd By: Art Blocks Inc.
import "../../libs/0.5.x/CustomERC721Metadata.sol";
import "../../libs/0.5.x/SafeMath.sol";
import "../../libs/0.5.x/Strings.sol";
import "../../interfaces/0.5.x/IRandomizer.sol";
import "../../interfaces/0.5.x/IGenArt721CoreV2_PBAB.sol";
pragma so... | isMintWhitelisted[msg.sender],"Must mint from whitelisted minter contract." | 387,859 | isMintWhitelisted[msg.sender] |
"Call from non-mega contract" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | _msgSender()==MEGA,"Call from non-mega contract" | 387,895 | _msgSender()==MEGA |
"Mint more tokens than allowed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | currentIndex.add(tokensToMint)<=MAX_SUPPLY,"Mint more tokens than allowed" | 387,895 | currentIndex.add(tokensToMint)<=MAX_SUPPLY |
"!Creepz owner" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | _validateCreepzOwner(tokenId,_msgSender()),"!Creepz owner" | 387,895 | _validateCreepzOwner(tokenId,_msgSender()) |
"Time limit restriction" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | block.timestamp.sub(_lastPurchased[_msgSender()])>=_purchaseTimeout,"Time limit restriction" | 387,895 | block.timestamp.sub(_lastPurchased[_msgSender()])>=_purchaseTimeout |
"Not the owner" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | ownerOf(tokenIds[i])==owner,"Not the owner" | 387,895 | ownerOf(tokenIds[i])==owner |
"Provenance hash has already been set" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | bytes(PROVENANCE_HASH).length==0,"Provenance hash has already been set" | 387,895 | bytes(PROVENANCE_HASH).length==0 |
"Metadata already finalised" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | !metadataFinalised,"Metadata already finalised" | 387,895 | !metadataFinalised |
'startingIndex already set' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "../utils/ERC721EnumerableBurnable.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath... | !startingIndexSet,'startingIndex already set' | 387,895 | !startingIndexSet |
null | /**
*Submitted for verification at Etherscan.io on 2020-03-30
*/
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ui... | addresses[j]!=0x0&&frozenAccount[addresses[j]]==false&&block.timestamp>unlockUnixTime[addresses[j]] | 387,976 | addresses[j]!=0x0&&frozenAccount[addresses[j]]==false&&block.timestamp>unlockUnixTime[addresses[j]] |
null | /**
*Submitted for verification at Etherscan.io on 2020-03-30
*/
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ui... | amounts[j]>0&&addresses[j]!=0x0&&frozenAccount[addresses[j]]==false&&block.timestamp>unlockUnixTime[addresses[j]] | 387,976 | amounts[j]>0&&addresses[j]!=0x0&&frozenAccount[addresses[j]]==false&&block.timestamp>unlockUnixTime[addresses[j]] |
"Fusing: invalid minter" | pragma solidity 0.5.11;
contract Context {
constructor () internal { }
function _msgSender() internal view returns (address payable) {
}
function _msgData() internal view returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address ind... | approvedMinters[_minter]==true,"Fusing: invalid minter" | 388,022 | approvedMinters[_minter]==true |
"Could not transfer deposit fee." | pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (ui... | Token(liquiditytoken1).transfer(feeDirection,fee),"Could not transfer deposit fee." | 388,066 | Token(liquiditytoken1).transfer(feeDirection,fee) |
null | pragma solidity ^0.4.25;
/**
_ _ _ _____ _____ _____ __ ___ _____ _____ _____ _____ _____
| | | || | || __|| __|| | ___ | _| | __||_ _|| | || __|| __ |
| | | || || __|| __|| |__ | . || _| | __| | | | || __|| -|
|_____||__|__||_____||_____||___... | msg.value>=(minBet*2) | 388,131 | msg.value>=(minBet*2) |
null | pragma solidity ^0.4.25;
/**
_ _ _ _____ _____ _____ __ ___ _____ _____ _____ _____ _____
| | | || | || __|| __|| | ___ | _| | __||_ _|| | || __|| __ |
| | | || || __|| __|| |__ | . || _| | __| | | | || __|| -|
|_____||__|__||_____||_____||___... | getBalanceOf(customer)>=betAmount | 388,131 | getBalanceOf(customer)>=betAmount |
null | pragma solidity ^0.4.25;
/**
_ _ _ _____ _____ _____ __ ___ _____ _____ _____ _____ _____
| | | || | || __|| __|| | ___ | _| | __||_ _|| | || __|| __ |
| | | || || __|| __|| |__ | . || _| | __| | | | || __|| -|
|_____||__|__||_____||_____||___... | betAmount>=(minBet*2) | 388,131 | betAmount>=(minBet*2) |
null | pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) ... | !isTerminated | 388,192 | !isTerminated |
null | pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) ... | balances[owner]>=eachIssuedAmount | 388,192 | balances[owner]>=eachIssuedAmount |
null | pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) ... | !issued[msg.sender] | 388,192 | !issued[msg.sender] |
"Presale Token Claimed" | // SPDX-License-Identifier: MIT
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";
import "@openzep... | !claimedToken[msg.sender],"Presale Token Claimed" | 388,230 | !claimedToken[msg.sender] |
"Minting is currently paused!" | // SPDX-License-Identifier: MIT
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";
import "@openzep... | !premint_paused,"Minting is currently paused!" | 388,230 | !premint_paused |
"Exceeds Minting Supply" | // SPDX-License-Identifier: MIT
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";
import "@openzep... | mintedFromSupply+1<=mintingSupply-_reserved,"Exceeds Minting Supply" | 388,230 | mintedFromSupply+1<=mintingSupply-_reserved |
"MUST_MINT_FROM_RESERVE" | // SPDX-License-Identifier: MIT
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";
import "@openzep... | mintedFromSupply+amount<=mintingSupply-_reserved,"MUST_MINT_FROM_RESERVE" | 388,230 | mintedFromSupply+amount<=mintingSupply-_reserved |
"EXCEEDS_SUPPLY" | // SPDX-License-Identifier: MIT
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";
import "@openzep... | mintedFromReserve+_amount<=_reserved,"EXCEEDS_SUPPLY" | 388,230 | mintedFromReserve+_amount<=_reserved |
'unauthorized' | /// @title Provably Rare Gems
/// @author Sorawit Suriyakarn (swit.eth / https://twitter.com/nomorebear)
contract ProvablyRareGemV2 is Initializable, ERC1155Supply {
event Create(uint indexed kind);
event Mine(address indexed miner, uint indexed kind);
event OwnershipTransferred(address indexed previousOwner... | gems[kind].manager==msg.sender||gems[kind].crafter==msg.sender,'unauthorized' | 388,240 | gems[kind].manager==msg.sender||gems[kind].crafter==msg.sender |
'not gem manager' | /// @title Provably Rare Gems
/// @author Sorawit Suriyakarn (swit.eth / https://twitter.com/nomorebear)
contract ProvablyRareGemV2 is Initializable, ERC1155Supply {
event Create(uint indexed kind);
event Mine(address indexed miner, uint indexed kind);
event OwnershipTransferred(address indexed previousOwner... | gems[kind].manager==msg.sender,'not gem manager' | 388,240 | gems[kind].manager==msg.sender |
'not pending manager' | /// @title Provably Rare Gems
/// @author Sorawit Suriyakarn (swit.eth / https://twitter.com/nomorebear)
contract ProvablyRareGemV2 is Initializable, ERC1155Supply {
event Create(uint indexed kind);
event Mine(address indexed miner, uint indexed kind);
event OwnershipTransferred(address indexed previousOwner... | gems[kind].pendingManager==msg.sender,'not pending manager' | 388,240 | gems[kind].pendingManager==msg.sender |
'not gem crafter' | /// @title Provably Rare Gems
/// @author Sorawit Suriyakarn (swit.eth / https://twitter.com/nomorebear)
contract ProvablyRareGemV2 is Initializable, ERC1155Supply {
event Create(uint indexed kind);
event Mine(address indexed miner, uint indexed kind);
event OwnershipTransferred(address indexed previousOwner... | gems[kind].crafter==msg.sender,'not gem crafter' | 388,240 | gems[kind].crafter==msg.sender |
"All free tokens minted" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract FlowerFriend is ERC721, Ownable {
constructor() ERC721("FlowerFriend", "FLWRFRIEND") {}
uint256 public constant MINT_P... | free+amount<=MAX_FREE,"All free tokens minted" | 388,289 | free+amount<=MAX_FREE |
"Overflow error" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | balances[to].add(tokens)>=balances[to],"Overflow error" | 388,459 | balances[to].add(tokens)>=balances[to] |
"Transfer more than allowed" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | tokens<=((allowances[from][msg.sender]>transferred[from][msg.sender])?allowances[from][msg.sender].sub(transferred[from][msg.sender]):0),"Transfer more than allowed" | 388,459 | tokens<=((allowances[from][msg.sender]>transferred[from][msg.sender])?allowances[from][msg.sender].sub(transferred[from][msg.sender]):0) |
"Not enough token" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | balances[msg.sender]>=addedTokens,"Not enough token" | 388,459 | balances[msg.sender]>=addedTokens |
"Not enough token" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | allowances[msg.sender][spender]>=subtractedTokens,"Not enough token" | 388,459 | allowances[msg.sender][spender]>=subtractedTokens |
"Not enough wei" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | address(this).balance>=_wei,"Not enough wei" | 388,459 | address(this).balance>=_wei |
"Not enough tokens" | // SPDX-License-Identifier: ECLv2
/**
* @title TokenHook (THK).
* @author Currently ANONYMOUS.
* @notice You may use this code under ECLv2.
* @dev For new token deployment:
* 1- Install MetaMask (Chrome/Firefox extension).
* 2- Connect to Rinkeby (or other private/public chains).
* 3- Run RemixIDE and se... | balances[owner]>=_tokens,"Not enough tokens" | 388,459 | balances[owner]>=_tokens |
"WRONG_FROM" | pragma solidity ^0.8.0;
abstract contract ERC721M is ERC721 {
/* -------------------------------------------------------------------------- */
/* ERC721M STORAGE */
/* -------------------------------------------------------------------------- */
/// @d... | ownerOf(id)==from,"WRONG_FROM" | 388,497 | ownerOf(id)==from |
"Current allowance value does not match." | pragma solidity 0.4.24;
interface ERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function transfer(address _to, uint256 _value) external returns (bool);
function approve(address _spender... | allowed_[msg.sender][_spender]==_currentValue,"Current allowance value does not match." | 388,522 | allowed_[msg.sender][_spender]==_currentValue |
"All tokens have been minted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract WTFISTHIS is ERC721Enumerable, O... | totalSupply()<MAX_ARTS,"All tokens have been minted" | 388,550 | totalSupply()<MAX_ARTS |
"exceed supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract WTFISTHIS is ERC721Enumerable, O... | totalSupply()+amountOfArts<=MAX_ARTS,"exceed supply" | 388,550 | totalSupply()+amountOfArts<=MAX_ARTS |
"exceed per address" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract WTFISTHIS is ERC721Enumerable, O... | _totalClaimed[msg.sender]+amountOfArts<=MAX_PER_MINT,"exceed per address" | 388,550 | _totalClaimed[msg.sender]+amountOfArts<=MAX_PER_MINT |
"wrong ETH amount" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
// npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract WTFISTHIS is ERC721Enumerable, O... | price*amountOfArts==msg.value,"wrong ETH amount" | 388,550 | price*amountOfArts==msg.value |
"Exceeds maximum supply of Optical Illusion" | pragma solidity ^0.8.0;
/// @author
contract OpticalIllusion is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public maxOPI = 1111;
uint256 public price = 150000000000000000; //0.15 Ether
string baseTokenURI;
bool public isSa... | totalSupply()+_count<=maxOPI,"Exceeds maximum supply of Optical Illusion" | 388,561 | totalSupply()+_count<=maxOPI |
"sender not own deadhead token" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
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/utils/cryptography... | _deadHeads.ownerOf(dhTokenId)==msg.sender,"sender not own deadhead token" | 388,598 | _deadHeads.ownerOf(dhTokenId)==msg.sender |
"sender not own ticket token" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
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/utils/cryptography... | _deadTickets.ownerOf(ticketId)==msg.sender,"sender not own ticket token" | 388,598 | _deadTickets.ownerOf(ticketId)==msg.sender |
null | pragma solidity ^0.4.23;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(... | manager.isDailySettlementOnGoing()&&msg.sender==address(manager) | 388,692 | manager.isDailySettlementOnGoing()&&msg.sender==address(manager) |
"You can't stake this monster." | // contracts/MonsterDough.sol
// SPDX-License-Identifier: MIT
// Forked from Cheeth. <3
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openze... | IERC721(monstersAddress).ownerOf(tokenIds[i])==msg.sender&&tokenIdToStaker[tokenIds[i]]==nullAddress,"You can't stake this monster." | 388,695 | IERC721(monstersAddress).ownerOf(tokenIds[i])==msg.sender&&tokenIdToStaker[tokenIds[i]]==nullAddress |
"Not whitelisted." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract EIP712Whitelisting is Ownable {
using ECDSA for bytes32;
// The key used to sign whitelist signatures.
// We will check to ensu... | getEIP712RecoverAddress(signature)==whitelistSigningKey,"Not whitelisted." | 388,700 | getEIP712RecoverAddress(signature)==whitelistSigningKey |
"invalid message" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "./AuthorizedV2.sol";
import "./NFTCollectionV2.sol";
contract FanEpackCollection is AuthorizedV2, NFTCollectionV2 {
/** Fields */
bytes32 private immutable _claimSeparator;
mapping(address => uint256) private _claimed;
constructor(address authority_... | verify(keccak256(abi.encode(_claimSeparator,msg.sender,earned)),v,r,s),"invalid message" | 388,950 | verify(keccak256(abi.encode(_claimSeparator,msg.sender,earned)),v,r,s) |
"more than earned" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "./AuthorizedV2.sol";
import "./NFTCollectionV2.sol";
contract FanEpackCollection is AuthorizedV2, NFTCollectionV2 {
/** Fields */
bytes32 private immutable _claimSeparator;
mapping(address => uint256) private _claimed;
constructor(address authority_... | quantity+_claimed[msg.sender]<=earned,"more than earned" | 388,950 | quantity+_claimed[msg.sender]<=earned |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | usernames[username]==address(0) | 388,957 | usernames[username]==address(0) |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[user].canWithdrawPeriod==0 | 388,957 | hodlers[user].canWithdrawPeriod==0 |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[user].canWithdrawPeriod!=0 | 388,957 | hodlers[user].canWithdrawPeriod!=0 |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[user].balance+amount>hodlers[user].balance | 388,957 | hodlers[user].balance+amount>hodlers[user].balance |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | recover(keccak256(endowment,msg.sender),sig)==owner | 388,957 | recover(keccak256(endowment,msg.sender),sig)==owner |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[msg.sender].canWithdrawPeriod!=0 | 388,957 | hodlers[msg.sender].canWithdrawPeriod!=0 |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[msg.sender].canWithdrawPeriod<currentPeriod | 388,957 | hodlers[msg.sender].canWithdrawPeriod<currentPeriod |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[_to].canWithdrawPeriod!=0 | 388,957 | hodlers[_to].canWithdrawPeriod!=0 |
null | pragma solidity ^0.4.18;
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// https://github.com/O... | hodlers[_to].balance+uint64(_value)>hodlers[_to].balance | 388,957 | hodlers[_to].balance+uint64(_value)>hodlers[_to].balance |
"ERROR deposit Compound" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
// Euler
import {IEulerMarkets} from "./int... | cToken.mint(amount)==0,"ERROR deposit Compound" | 389,026 | cToken.mint(amount)==0 |
"Error withdraw Compound" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Math} from "@openzeppelin/contracts/utils/math/Math.sol";
// Euler
import {IEulerMarkets} from "./int... | cToken.redeem(amount)==0,"Error withdraw Compound" | 389,026 | cToken.redeem(amount)==0 |
null | pragma solidity ^0.4.21;
/**
* @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 OwnershipTransferred(address indexed previousO... | token.transferFrom(msg.sender,owner,tokenFee) | 389,074 | token.transferFrom(msg.sender,owner,tokenFee) |
null | pragma solidity ^0.4.21;
/**
* @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 OwnershipTransferred(address indexed previousO... | token.transferFrom(msg.sender,owner,crowdsaleFee) | 389,074 | token.transferFrom(msg.sender,owner,crowdsaleFee) |
null | pragma solidity ^0.4.21;
/**
* @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 OwnershipTransferred(address indexed previousO... | token.transferFrom(msg.sender,owner,multisendFee) | 389,074 | token.transferFrom(msg.sender,owner,multisendFee) |
null | pragma solidity ^0.4.21;
/**
* @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 OwnershipTransferred(address indexed previousO... | er2.transferFrom(msg.sender,this,_total) | 389,074 | er2.transferFrom(msg.sender,this,_total) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.