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.17;
/**
* @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;
/**
* @dev The Ownable constructor sets the orig... | authorised[msg.sender]||freeForAll | 43,038 | authorised[msg.sender]||freeForAll |
null | pragma solidity ^0.4.17;
/**
* @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;
/**
* @dev The Ownable constructor sets the orig... | !(hasEnded()) | 43,038 | !(hasEnded()) |
null | pragma solidity ^0.4.17;
/**
* @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;
/**
* @dev The Ownable constructor sets the orig... | !hasEnded() | 43,038 | !hasEnded() |
"QUANTITY NOT AVAILABLE" | pragma solidity ^0.8.7;
contract CryptoWarUkraineNFT is ERC721A, Ownable {
bool public allowMint;
uint256 public assetPrice;
uint256 public totalAssets;
string public baseURI;
event Minted(address _to, uint256 _quantity);
event PaymentReleased(address _to, uint256 _amount);
event Pay... | (totalAvailable()-_quantity)>=0,"QUANTITY NOT AVAILABLE" | 43,134 | (totalAvailable()-_quantity)>=0 |
"sold out" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BCPIE is ERC721A, Ownable {
uint256 public mintPrice = 0.04 ether;
uint256 public maxSupply = 2222;
uint256 public maxPerTxn;
string internal baseUri;
... | totalSupply()<maxSupply,"sold out" | 43,170 | totalSupply()<maxSupply |
"exceeds max supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BCPIE is ERC721A, Ownable {
uint256 public mintPrice = 0.04 ether;
uint256 public maxSupply = 2222;
uint256 public maxPerTxn;
string internal baseUri;
... | totalSupply()+quantity_<=maxSupply,"exceeds max supply" | 43,170 | totalSupply()+quantity_<=maxSupply |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | _pricingStrategy.isPricingStrategy() | 43,301 | _pricingStrategy.isPricingStrategy() |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | address(_token)!=0x0 | 43,301 | address(_token)!=0x0 |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | validPurchase(msg.value) | 43,301 | validPurchase(msg.value) |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | !isMinimumGoalReached() | 43,301 | !isMinimumGoalReached() |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | !isMinimumGoalReached()&&loadedRefund>0 | 43,301 | !isMinimumGoalReached()&&loadedRefund>0 |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | !isExternalBuyer[msg.sender] | 43,301 | !isExternalBuyer[msg.sender] |
null | contract SaleBase is Pausable, Contactable {
using SafeMath for uint;
// The token being sold
PlayHallToken public token;
// start and end timestamps where purchases are allowed (both inclusive)
uint public startTime;
uint public endTime;
// address where funds are collected
addr... | validPurchase(weiAmount) | 43,301 | validPurchase(weiAmount) |
'All tokens have been minted' | /**
*
*
███████╗████████╗ █████╗ ██╗ ██╗
██╔════╝╚══██╔══╝██╔══██╗╚██╗ ██╔╝
███████╗ ██║ ███████║ ╚████╔╝
╚════██║ ██║ ██╔══██║ ╚██╔╝
███████║ ██║ ██║ ██║ ██║
╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
██████╗ ██████╗ ██╗ ██╗███████╗██████╗ ███████╗██╗ ██╗██╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝... | totalSupply()<TOKEN_MAX,'All tokens have been minted' | 43,341 | totalSupply()<TOKEN_MAX |
"This leaf does not belong to the sender" | /***
By accepting the limited-edition Pepsi Mic Drop content ("Content") in the form of this non-fungible token ("NFT"), recipient acknowledges and agrees to the following terms and conditions (these "Terms"):
The Content is the property of or licensed to PepsiCo, Inc. ("Owner") and all right, title, and interest (in... | keccak256(abi.encodePacked(msg.sender))==leaf,"This leaf does not belong to the sender" | 43,403 | keccak256(abi.encodePacked(msg.sender))==leaf |
"You are not in the list" | /***
By accepting the limited-edition Pepsi Mic Drop content ("Content") in the form of this non-fungible token ("NFT"), recipient acknowledges and agrees to the following terms and conditions (these "Terms"):
The Content is the property of or licensed to PepsiCo, Inc. ("Owner") and all right, title, and interest (in... | proof.verify(merkleRoot,leaf),"You are not in the list" | 43,403 | proof.verify(merkleRoot,leaf) |
"Address already used" | /***
By accepting the limited-edition Pepsi Mic Drop content ("Content") in the form of this non-fungible token ("NFT"), recipient acknowledges and agrees to the following terms and conditions (these "Terms"):
The Content is the property of or licensed to PepsiCo, Inc. ("Owner") and all right, title, and interest (in... | alreadyMinted[msg.sender]==false,"Address already used" | 43,403 | alreadyMinted[msg.sender]==false |
"Out of stock" | /***
By accepting the limited-edition Pepsi Mic Drop content ("Content") in the form of this non-fungible token ("NFT"), recipient acknowledges and agrees to the following terms and conditions (these "Terms"):
The Content is the property of or licensed to PepsiCo, Inc. ("Owner") and all right, title, and interest (in... | reserveMicDropsId+amount<=51,"Out of stock" | 43,403 | reserveMicDropsId+amount<=51 |
null | //SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
library FixedPointMath {
uint256 public constant DECIMALS = 18;
uint256 public constant SCALAR = 10**DECIMALS;
struct uq192x64 {
uint256 x;
}
function fromU256(uint256 value) internal pure returns (uq192x64 memory) {
}
function maximumValue() internal... | (x=self.x+value.x)>=self.x | 43,425 | (x=self.x+value.x)>=self.x |
null | //SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
library FixedPointMath {
uint256 public constant DECIMALS = 18;
uint256 public constant SCALAR = 10**DECIMALS;
struct uq192x64 {
uint256 x;
}
function fromU256(uint256 value) internal pure returns (uq192x64 memory) {
}
function maximumValue() internal... | (x=self.x-value.x)<=self.x | 43,425 | (x=self.x-value.x)<=self.x |
"Purchase would exceed max supply of GlassesLoot" | // SPDX-License-Identifier: MIT
// Adapted from UNKNOWN
// Modified and updated to 0.8.0 by Ge$%#^@ Go#@%
// ART BY F#$%^# Go#@$
// @#$% @#$%
//
import "./ERC721_flat.sol";
pragma solidity ^0.8.0;
pragma abicoder v2;
contract GlassesLoot is ERC721, Ownable, nonReentrant {
string public GLASSES_PROVENANCE... | totalSupply()+numberOfTokens<MAX_GLASSES-GlassesReserve+1,"Purchase would exceed max supply of GlassesLoot" | 43,445 | totalSupply()+numberOfTokens<MAX_GLASSES-GlassesReserve+1 |
'already executed' | // SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;
import './MetaProxyFactory.sol';
import './IBridge.sol';
/// @notice This contract verifies execution permits and is meant to be used for L1 governance.
/// A new proxy can be created with `createProxy`, to be used for governance.
// Audit-1: ok
contract Ex... | executed[proposalId]==false,'already executed' | 43,462 | executed[proposalId]==false |
'wrong permit' | // SPDX-License-Identifier: Unlicense
pragma solidity >=0.7.6;
import './MetaProxyFactory.sol';
import './IBridge.sol';
/// @notice This contract verifies execution permits and is meant to be used for L1 governance.
/// A new proxy can be created with `createProxy`, to be used for governance.
// Audit-1: ok
contract Ex... | IBridge(bridge).executionPermit(vault,proposalId)==keccak256(actions),'wrong permit' | 43,462 | IBridge(bridge).executionPermit(vault,proposalId)==keccak256(actions) |
null | pragma solidity >=0.4.22 <0.7.0;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender... | !pauesed | 43,552 | !pauesed |
null | pragma solidity >=0.4.22 <0.7.0;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender... | blackList[msg.sender]<=0 | 43,552 | blackList[msg.sender]<=0 |
"only operator" | // Dependency file: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data,... | operators[msg.sender],"only operator" | 43,559 | operators[msg.sender] |
"INVALID_SIGNATURE" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "./ERC721Base.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "./IERC4494.sol";
abstract contract ERC721BaseWithERC4494Permit is ERC721Base {
using Address for add... | SignatureChecker.isValidSignatureNow(signer,digest,sig),"INVALID_SIGNATURE" | 43,572 | SignatureChecker.isValidSignatureNow(signer,digest,sig) |
"Not authorized" | pragma solidity ^0.8.0;
contract _goatgauds is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 2;
uint public MAX_SUPPLY = 2222;
uint public MAINSALE_PRICE = 0.125 ether;
uint public PRESALE_PRICE = 0.1 ether;
bool public isMintActive ... | accessList[msg.sender]>0,"Not authorized" | 43,619 | accessList[msg.sender]>0 |
"Mint/order exceeds supply" | pragma solidity ^0.8.0;
contract _goatgauds is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 2;
uint public MAX_SUPPLY = 2222;
uint public MAINSALE_PRICE = 0.125 ether;
uint public PRESALE_PRICE = 0.1 ether;
bool public isMintActive ... | supply+quantity<=MAX_SUPPLY,"Mint/order exceeds supply" | 43,619 | supply+quantity<=MAX_SUPPLY |
"Burn for nonexistent token" | pragma solidity ^0.8.0;
contract _goatgauds is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 2;
uint public MAX_SUPPLY = 2222;
uint public MAINSALE_PRICE = 0.125 ether;
uint public PRESALE_PRICE = 0.1 ether;
bool public isMintActive ... | _exists(tokenIds[i]),"Burn for nonexistent token" | 43,619 | _exists(tokenIds[i]) |
"Owner mismatch" | pragma solidity ^0.8.0;
contract _goatgauds is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 2;
uint public MAX_SUPPLY = 2222;
uint public MAINSALE_PRICE = 0.125 ether;
uint public PRESALE_PRICE = 0.1 ether;
bool public isMintActive ... | _owners[tokenIds[i]]==owner,"Owner mismatch" | 43,619 | _owners[tokenIds[i]]==owner |
"Mint/order exceeds supply" | pragma solidity ^0.8.0;
contract _goatgauds is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 2;
uint public MAX_SUPPLY = 2222;
uint public MAINSALE_PRICE = 0.125 ether;
uint public PRESALE_PRICE = 0.1 ether;
bool public isMintActive ... | supply+totalQuantity<=MAX_SUPPLY,"Mint/order exceeds supply" | 43,619 | supply+totalQuantity<=MAX_SUPPLY |
"Already minted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/IERC20.sol";
contract UniqGenerator is ERC721Tradable{
// ----- VARIABLES ----- //
uint256 internal _verificationPrice;
address internal _tokenForPaying... | !_isItemMinted[_itemHash],"Already minted" | 43,643 | !_isItemMinted[_itemHash] |
"Verification already requested" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/IERC20.sol";
contract UniqGenerator is ERC721Tradable{
// ----- VARIABLES ----- //
uint256 internal _verificationPrice;
address internal _tokenForPaying... | _verificationRequester[_itemHash]==address(0),"Verification already requested" | 43,643 | _verificationRequester[_itemHash]==address(0) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/IERC20.sol";
contract UniqGenerator is ERC721Tradable{
// ----- VARIABLES ----- //
uint256 internal _verificationPrice;
address internal _tokenForPaying... | IERC20(_tokenForPaying).transferFrom(msg.sender,address(this),_verificationPrice) | 43,643 | IERC20(_tokenForPaying).transferFrom(msg.sender,address(this),_verificationPrice) |
"Verification Requester mismatch" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/IERC20.sol";
contract UniqGenerator is ERC721Tradable{
// ----- VARIABLES ----- //
uint256 internal _verificationPrice;
address internal _tokenForPaying... | _verificationRequester[_itemHash]==msg.sender,"Verification Requester mismatch" | 43,643 | _verificationRequester[_itemHash]==msg.sender |
"Signature mismatch" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Tradable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/IERC20.sol";
contract UniqGenerator is ERC721Tradable{
// ----- VARIABLES ----- //
uint256 internal _verificationPrice;
address internal _tokenForPaying... | verifySignature(msg.sender,_itemHash,_signature),"Signature mismatch" | 43,643 | verifySignature(msg.sender,_itemHash,_signature) |
"Proposal not finished" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | proposals[proposal_id].expires<block.timestamp,"Proposal not finished" | 43,964 | proposals[proposal_id].expires<block.timestamp |
"Insufficient participation" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | proposals[proposal_id].valid_vote,"Insufficient participation" | 43,964 | proposals[proposal_id].valid_vote |
"Proposal not started" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | proposals[proposal_id].opens<block.timestamp,"Proposal not started" | 43,964 | proposals[proposal_id].opens<block.timestamp |
"Proposal invalid or expired" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | proposals[proposal_id].expires>block.timestamp,"Proposal invalid or expired" | 43,964 | proposals[proposal_id].expires>block.timestamp |
"User has already voted" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | !user_votes[msg.sender][proposal_id],"User has already voted" | 43,964 | !user_votes[msg.sender][proposal_id] |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | owns(msg.sender,tokenId) | 44,073 | owns(msg.sender,tokenId) |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | !inPresaleMode | 44,073 | !inPresaleMode |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | totalSupply()<NUM_EXOPLANETS_LIMIT | 44,073 | totalSupply()<NUM_EXOPLANETS_LIMIT |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | unownedPlanet(tokenId) | 44,073 | unownedPlanet(tokenId) |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | currentOwner[tokenId]!=msg.sender | 44,073 | currentOwner[tokenId]!=msg.sender |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | addressNotNull(msg.sender) | 44,073 | addressNotNull(msg.sender) |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | exoplanets[tokenId].canBePurchased | 44,073 | exoplanets[tokenId].canBePurchased |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | approved(msg.sender,tokenId) | 44,073 | approved(msg.sender,tokenId) |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | addressNotNull(to) | 44,073 | addressNotNull(to) |
null | pragma solidity ^0.4.19;
contract ERC721 {
function approve(address to, uint256 tokenId) public;
function balanceOf(address owner) public view returns (uint256 balance);
function implementsERC721() public pure returns (bool);
function ownerOf(uint256 tokenId) public view returns (address addr);
... | owns(from,tokenId) | 44,073 | owns(from,tokenId) |
null | pragma solidity >=0.4.22 <0.6.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer di... | keccak256(bytes(email))!=keccak256(bytes("")) | 44,135 | keccak256(bytes(email))!=keccak256(bytes("")) |
"Sale is finished" | pragma solidity ^0.6.0;
// SPDX-License-Identifier: UNLICENSED
// ----------------------------------------------------------------------------
// 'FORMS' SALE 1 CONTRACT
// ----------------------------------------------------------------------------
// --------------------------------------------------------------... | IFORMS(FORMS_TOKEN_ADDRESS).balanceOf(address(this))>0,"Sale is finished" | 44,152 | IFORMS(FORMS_TOKEN_ADDRESS).balanceOf(address(this))>0 |
"NG::NFT: All vikings have been minted." | // 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/ERC721URIStorage.sol";
import "./libraries/TransferHelper.sol";
... | (tokenIdTracker+amount)<maxVikingsTotal,"NG::NFT: All vikings have been minted." | 44,255 | (tokenIdTracker+amount)<maxVikingsTotal |
"NG::NFT: Insufficient funds." | // 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/ERC721URIStorage.sol";
import "./libraries/TransferHelper.sol";
... | msg.value>=(amount*pricePerViking),"NG::NFT: Insufficient funds." | 44,255 | msg.value>=(amount*pricePerViking) |
"User is not staking." | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
contract RiddlerStakingLocked is Ownable {
using SafeMath for uint256;
uint256 public totalStaked;
IERC20 public stakingToken;
IERC20 public rewardToken;
uint256 ... | isStaking(staker),"User is not staking." | 44,299 | isStaking(staker) |
"You are not staking!?" | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
contract RiddlerStakingLocked is Ownable {
using SafeMath for uint256;
uint256 public totalStaked;
IERC20 public stakingToken;
IERC20 public rewardToken;
uint256 ... | isStaking(msg.sender),"You are not staking!?" | 44,299 | isStaking(msg.sender) |
"Your tokens are currently locked" | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
contract RiddlerStakingLocked is Ownable {
using SafeMath for uint256;
uint256 public totalStaked;
IERC20 public stakingToken;
IERC20 public rewardToken;
uint256 ... | !_isLocked(msg.sender),"Your tokens are currently locked" | 44,299 | !_isLocked(msg.sender) |
"Season minting is Paused" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | !seasons[_season].paused,"Season minting is Paused" | 44,334 | !seasons[_season].paused |
"Wallet not on the presale list" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | onPresaleList(_season,msg.sender)==true,"Wallet not on the presale list" | 44,334 | onPresaleList(_season,msg.sender)==true |
"Public sales are closed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | seasons[_season].publicOpen,"Public sales are closed" | 44,334 | seasons[_season].publicOpen |
"Season does not exist" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | seasons[_season].season_number==_season,"Season does not exist" | 44,334 | seasons[_season].season_number==_season |
"Not enough minerals" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | _quantity*seasons[_season].price<=msg.value,"Not enough minerals" | 44,334 | _quantity*seasons[_season].price<=msg.value |
"Wallet has minted maximum allowed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | season_wallet_mints[msg.sender].season_mints[_season]<seasons[_season].walletLimit,"Wallet has minted maximum allowed" | 44,334 | season_wallet_mints[msg.sender].season_mints[_season]<seasons[_season].walletLimit |
"not enough tokens in available supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | season_minted[_season]+_quantity<=seasons[_season].unit_count,"not enough tokens in available supply" | 44,334 | season_minted[_season]+_quantity<=seasons[_season].unit_count |
"Season Already exists" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | seasons[_seasonNum].unit_count==0,"Season Already exists" | 44,334 | seasons[_seasonNum].unit_count==0 |
"Season doesn't exist" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | seasons[_season].season_number!=0,"Season doesn't exist" | 44,334 | seasons[_season].season_number!=0 |
"Offset already set" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | seasons[_season].tokenOffset==0,"Offset already set" | 44,334 | seasons[_season].tokenOffset==0 |
"Number of gifts exceeds season supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts... | _recipients.length+season_minted[_season]<=seasons[_season].unit_count,"Number of gifts exceeds season supply" | 44,334 | _recipients.length+season_minted[_season]<=seasons[_season].unit_count |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add((userWithdraw[reinvestAddress].withdrawStatic).mul(100).div(80))<=userAmount | 44,424 | amount.add((userWithdraw[reinvestAddress].withdrawStatic).mul(100).div(80))<=userAmount |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add((userWithdraw[reinvestAddress].withdrawStraight).mul(100).div(80))<=userAmount.add(amount) | 44,424 | amount.add((userWithdraw[reinvestAddress].withdrawStraight).mul(100).div(80))<=userAmount.add(amount) |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add((userWithdraw[reinvestAddress].withdrawTeam).mul(100).div(80))<=userAmount.add(amount) | 44,424 | amount.add((userWithdraw[reinvestAddress].withdrawTeam).mul(100).div(80))<=userAmount.add(amount) |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add((userWithdraw[reinvestAddress].withdrawNode).mul(100).div(80))<=userAmount | 44,424 | amount.add((userWithdraw[reinvestAddress].withdrawNode).mul(100).div(80))<=userAmount |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add(userWithdraw[withdrawAddress].withdrawStatic.mul(100).div(percent-remain))<=userStatic | 44,424 | amount.add(userWithdraw[withdrawAddress].withdrawStatic.mul(100).div(percent-remain))<=userStatic |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add(userWithdraw[withdrawAddress].withdrawStraight.mul(100).div(percent-remain))<=userStraightEth | 44,424 | amount.add(userWithdraw[withdrawAddress].withdrawStraight.mul(100).div(percent-remain))<=userStraightEth |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add(userWithdraw[withdrawAddress].withdrawTeam.mul(100).div(percent-remain))<=userTeamEth | 44,424 | amount.add(userWithdraw[withdrawAddress].withdrawTeam.mul(100).div(percent-remain))<=userTeamEth |
null | pragma solidity >=0.4.21 <0.6.0;
import "./SafeMath.sol";
contract Earnings {
using SafeMath for *;
// -------------------- mapping ------------------------ //
mapping(address => UserWithdraw) public userWithdraw; // record user withdraw reward information
// -------------------- variate ---------... | amount.add(userWithdraw[withdrawAddress].withdrawNode.mul(100).div(percent-remain))<=userNodeEth | 44,424 | amount.add(userWithdraw[withdrawAddress].withdrawNode.mul(100).div(percent-remain))<=userNodeEth |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() public {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) public onlyOwner {
}
}
contract ERC20Basic... | minters[msg.sender]||msg.sender==owner | 44,441 | minters[msg.sender]||msg.sender==owner |
"admins only" | pragma solidity ^0.8.0;
/**
* @title A contract should inherit this if it provides functionality for the Bit Monsters contract.
*/
abstract contract BitMonstersAddon is Ownable {
IBitMonsters internal bitMonsters;
modifier onlyAdmin() {
require(<FILL_ME>)
_;
}
modifier ownsTo... | bitMonsters.isAdmin(msg.sender),"admins only" | 44,470 | bitMonsters.isAdmin(msg.sender) |
"you don't own this shit" | pragma solidity ^0.8.0;
/**
* @title A contract should inherit this if it provides functionality for the Bit Monsters contract.
*/
abstract contract BitMonstersAddon is Ownable {
IBitMonsters internal bitMonsters;
modifier onlyAdmin() {
}
modifier ownsToken(uint tokenId) {
require(<FI... | bitMonsters.ownerOf(tokenId)==msg.sender,"you don't own this shit" | 44,470 | bitMonsters.ownerOf(tokenId)==msg.sender |
"Target not Authorized" | pragma solidity ^0.5.7;
interface IMVault {
function deposit(uint256) external;
function token() external view returns (address);
}
contract Mushroom_ZapIn_V1 is ZapInBaseV2 {
mapping(address => bool) public approvedTargets;
event zapIn(address sender, address pool, uint256 tokensRec);
const... | approvedTargets[swapTarget]||swapTarget==address(0),"Target not Authorized" | 44,484 | approvedTargets[swapTarget]||swapTarget==address(0) |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | ico.active | 44,529 | ico.active |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | !ico.active | 44,529 | !ico.active |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | forceToken.serviceTransfer(address(forceToken),address(this),_amount.sub(tokensOnSale)) | 44,529 | forceToken.serviceTransfer(address(forceToken),address(this),_amount.sub(tokensOnSale)) |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | p.needReward | 44,529 | p.needReward |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | forceToken.transfer(msg.sender,p.amount) | 44,529 | forceToken.transfer(msg.sender,p.amount) |
null | pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Integer division of... | address(this).balance.sub(reservedFunds)>=_value | 44,529 | address(this).balance.sub(reservedFunds)>=_value |
"Address not found" | pragma solidity ^0.4.25;
/*
* For information go to 911eth.finance
*/
contract ETH911 {
using SafeMath for uint;
mapping(address => uint) public balance;
mapping(address => uint) public time;
mapping(address => uint) public percentWithdraw;
mapping(address => uint) public allPercentWithdraw... | balance[msg.sender]>0,"Address not found" | 44,568 | balance[msg.sender]>0 |
"exceeds max supply" | // SPDX-License-Identifier: MIT
/*
_______/\\\\\__________/\\\\\\\\\\\\__/\\\\\\\\\\\__/\\\\\\\\\\\\\\\_
_____/\\\///\\\______/\\\//////////__\/////\\\///__\////////////\\\__
___/\\\/__\///\\\___/\\\_________________\/\\\_______________/\\\/___
__/\\\______\//\\\_\/\\\____/\\\\\\\_____\/\\\__... | totalSupply+quantity<=maxSupply,"exceeds max supply" | 44,656 | totalSupply+quantity<=maxSupply |
"You're not a CCC shareholder!" | /**
*Submitted for verification at Etherscan.io on 2021-12-09
*/
/**
*/
//Cash Cow Capital ($CCC) 🌎
//Cash Cow Capital, here to provide multi-chain solutions to connect different peers together in order to form bridges ranging from different networks such as Solana, Avalanche and Cardano.
//
//
//Telegram: h... | shares[shareholder].amount>0,"You're not a CCC shareholder!" | 44,689 | shares[shareholder].amount>0 |
"Nice try" | /**
*Submitted for verification at Etherscan.io on 2021-12-09
*/
/**
*/
//Cash Cow Capital ($CCC) 🌎
//Cash Cow Capital, here to provide multi-chain solutions to connect different peers together in order to form bridges ranging from different networks such as Solana, Avalanche and Cardano.
//
//
//Telegram: h... | !isBot[sender]&&!isBot[recipient],"Nice try" | 44,689 | !isBot[sender]&&!isBot[recipient] |
null | pragma solidity ^0.4.14;
/* ©RomanLanskoj 2017
I can create the cryptocurrency Ethereum-token for you, with any total or initial supply, enable the owner to create new tokens or without it, custom currency rates (can make the token's value be backed by ether (or other tokens) by creating a fund that automatically s... | balances[msg.sender]>_value | 44,698 | balances[msg.sender]>_value |
null | pragma solidity 0.4.25; /*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
|/ |/ /___)... | userAddresses[i]!=address(0x0) | 44,702 | userAddresses[i]!=address(0x0) |
null | contract PurchaseRuleManager is Owned {
TokenExchange priceProvider;
StandardToken internal token;
uint256 unlockPrice = 320000000000000000;
mapping(address=>bool) unlocked;
constructor() public {
}
function unlock(address tokenOwner) public onlyOwner {
}
function lock(addr... | !unlocked[_buyerAddress] | 44,773 | !unlocked[_buyerAddress] |
null | // @title MyBit Tokensale
// @notice A tokensale extending for 365 days. (0....364)
// @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day
// @notice Anyone can fund the current or future days with ETH
// @dev The current day is (timestamp - startTimestamp) / 24 hours
// @autho... | mybToken.transferFrom(msg.sender,address(this),saleAmount) | 44,788 | mybToken.transferFrom(msg.sender,address(this),saleAmount) |
null | // @title MyBit Tokensale
// @notice A tokensale extending for 365 days. (0....364)
// @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day
// @notice Anyone can fund the current or future days with ETH
// @dev The current day is (timestamp - startTimestamp) / 24 hours
// @autho... | addContribution(msg.sender,msg.value,_day) | 44,788 | addContribution(msg.sender,msg.value,_day) |
null | // @title MyBit Tokensale
// @notice A tokensale extending for 365 days. (0....364)
// @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day
// @notice Anyone can fund the current or future days with ETH
// @dev The current day is (timestamp - startTimestamp) / 24 hours
// @autho... | addContribution(msg.sender,amountPerDay,_day[i]) | 44,788 | addContribution(msg.sender,amountPerDay,_day[i]) |
"day has not finished funding" | // @title MyBit Tokensale
// @notice A tokensale extending for 365 days. (0....364)
// @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day
// @notice Anyone can fund the current or future days with ETH
// @dev The current day is (timestamp - startTimestamp) / 24 hours
// @autho... | dayFinished(_day),"day has not finished funding" | 44,788 | dayFinished(_day) |
null | // @title MyBit Tokensale
// @notice A tokensale extending for 365 days. (0....364)
// @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day
// @notice Anyone can fund the current or future days with ETH
// @dev The current day is (timestamp - startTimestamp) / 24 hours
// @autho... | dayFinished(_day[i]) | 44,788 | dayFinished(_day[i]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.