comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"EW10: You are not the offerer in position 0." | // Solidity 0.8.7-e28d00a7 optimization 200 (default)
pragma solidity ^0.8.6;
interface Etheria {
function getOwner(uint8 col, uint8 row) external view returns(address);
function getOfferers(uint8 col, uint8 row) external view returns (address[] memory);
function getOffers(uint8 col, uint8 row) externa... | _etheria.getOfferers(col,row)[0]==msg.sender,"EW10: You are not the offerer in position 0." | 331,307 | _etheria.getOfferers(col,row)[0]==msg.sender |
"EW10: The 721 was not burned as expected. Reverting." | // Solidity 0.8.7-e28d00a7 optimization 200 (default)
pragma solidity ^0.8.6;
interface Etheria {
function getOwner(uint8 col, uint8 row) external view returns(address);
function getOfferers(uint8 col, uint8 row) external view returns (address[] memory);
function getOffers(uint8 col, uint8 row) externa... | !_exists(_locationID),"EW10: The 721 was not burned as expected. Reverting." | 331,307 | !_exists(_locationID) |
"CryptoMofayas: Minting not started yet" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
// This is an NFT for CryptoMofayas https://www.cryptomofayas.com/
// Smart contract developed by Ian Cherkowski https://twitter.com/IanCherkowski
// Thanks to chiru-labs for their gas friendly ERC721A implementation.
//
import "./ERC721A.sol";
import "./O... | status||presale,"CryptoMofayas: Minting not started yet" | 331,330 | status||presale |
"CryptoMofayas: Presale is sold out" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
// This is an NFT for CryptoMofayas https://www.cryptomofayas.com/
// Smart contract developed by Ian Cherkowski https://twitter.com/IanCherkowski
// Thanks to chiru-labs for their gas friendly ERC721A implementation.
//
import "./ERC721A.sol";
import "./O... | supply+_mintAmount<=presaleLimit,"CryptoMofayas: Presale is sold out" | 331,330 | supply+_mintAmount<=presaleLimit |
"expired" | /**
* @author Nsure.Network <contact@nsure.network>
*
* @dev A contract for claiming purchase cover rewards.
*/
pragma solidity ^0.6.0;
contract ClaimPurchaseMint is Ownable, ReentrancyGuard{
using SafeMath for uint256;
using SafeERC20 for IERC20;
address public signer;
string consta... | block.timestamp.add(deadlineDuration)>deadline,"expired" | 331,333 | block.timestamp.add(deadlineDuration)>deadline |
null | pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | (now>=preICOStartDate&&now<preICOEndDate)||(now>=ICOStartDate&&now<ICOEndDate) | 331,351 | (now>=preICOStartDate&&now<preICOEndDate)||(now>=ICOStartDate&&now<ICOEndDate) |
null | pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | (preICOWeiRaised.add(ICOWeiRaised)).mul(ETHUSD).div(10**18)>=softcap | 331,351 | (preICOWeiRaised.add(ICOWeiRaised)).mul(ETHUSD).div(10**18)>=softcap |
null | pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | preICOWeiRaised.add(ICOWeiRaised).mul(ETHUSD).div(10**18)<softcap | 331,351 | preICOWeiRaised.add(ICOWeiRaised).mul(ETHUSD).div(10**18)<softcap |
null | pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | investors[msg.sender]>0 | 331,351 | investors[msg.sender]>0 |
null | pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | (preICOWeiRaised+ICOWeiRaised+_weiAmount).mul(ETHUSD).div(10**18)<=hardcap | 331,351 | (preICOWeiRaised+ICOWeiRaised+_weiAmount).mul(ETHUSD).div(10**18)<=hardcap |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import ... | currentIndex+quantity<=5000 | 331,366 | currentIndex+quantity<=5000 |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import ... | _price*quantity==msg.value | 331,366 | _price*quantity==msg.value |
null | pragma solidity ^0.4.21;
// zeppelin-solidity: 1.9.0
/**
* @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 OwnershipTransfer... | members[userToMemberIndex[_user]].tier!=_tier | 331,433 | members[userToMemberIndex[_user]].tier!=_tier |
null | pragma solidity ^0.4.21;
// zeppelin-solidity: 1.9.0
/**
* @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 OwnershipTransfer... | userToMemberIndex[_user]!=0 | 331,433 | userToMemberIndex[_user]!=0 |
"Ownable: caller is not whitelisted" | pragma solidity >=0.4.25 <0.6.0;
contract Whitelist is Ownable{
mapping (uint256 => uint8) private _partners;
mapping (address => uint256) private _partner_ids;
mapping (uint256 => address) private _partner_address;
uint256 public partners_counter=1;
mapping (address => uint8) private _whiteli... | _whitelist[msg.sender]==STATE_WHITELISTED,"Ownable: caller is not whitelisted" | 331,523 | _whitelist[msg.sender]==STATE_WHITELISTED |
"Ownable: caller is not the owner or partner" | pragma solidity >=0.4.25 <0.6.0;
contract Whitelist is Ownable{
mapping (uint256 => uint8) private _partners;
mapping (address => uint256) private _partner_ids;
mapping (uint256 => address) private _partner_address;
uint256 public partners_counter=1;
mapping (address => uint8) private _whiteli... | isOwner()||isPartner(),"Ownable: caller is not the owner or partner" | 331,523 | isOwner()||isPartner() |
"Referral is already whitelisted" | pragma solidity >=0.4.25 <0.6.0;
contract Whitelist is Ownable{
mapping (uint256 => uint8) private _partners;
mapping (address => uint256) private _partner_ids;
mapping (uint256 => address) private _partner_address;
uint256 public partners_counter=1;
mapping (address => uint8) private _whiteli... | _whitelist[referral]==STATE_NEW,"Referral is already whitelisted" | 331,523 | _whitelist[referral]==STATE_NEW |
"Referral is not in list" | pragma solidity >=0.4.25 <0.6.0;
contract Whitelist is Ownable{
mapping (uint256 => uint8) private _partners;
mapping (address => uint256) private _partner_ids;
mapping (uint256 => address) private _partner_address;
uint256 public partners_counter=1;
mapping (address => uint8) private _whiteli... | _whitelist[referral]!=STATE_NEW,"Referral is not in list" | 331,523 | _whitelist[referral]!=STATE_NEW |
"This NFT is already registered for the race" | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
interface IERC721Mintable {
funct... | tokenParticipants[getParticipantId(_tokenAddress,_tokenId,_tokenType,currentRace)]==false,"This NFT is already registered for the race" | 331,600 | tokenParticipants[getParticipantId(_tokenAddress,_tokenId,_tokenType,currentRace)]==false |
"You don't own the NFT" | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
interface IERC721Mintable {
funct... | IERC721(_tokenAddress).ownerOf(_tokenId)==msg.sender,"You don't own the NFT" | 331,600 | IERC721(_tokenAddress).ownerOf(_tokenId)==msg.sender |
"You don't own the NFT" | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
interface IERC721Mintable {
funct... | IERC1155(_tokenAddress).balanceOf(msg.sender,_tokenId)>0,"You don't own the NFT" | 331,600 | IERC1155(_tokenAddress).balanceOf(msg.sender,_tokenId)>0 |
null | pragma solidity ^0.4.16;
contract Base
{
address Creator = msg.sender;
address Owner_01 = msg.sender;
address Owner_02;
address Owner_03;
function add(uint256 x, uint256 y)
internal
returns (uint256)
{
}
function sub(uint256 x, uint256 y)
internal
retu... | (msg.sender==Owner_02)||(msg.sender==Creator) | 331,681 | (msg.sender==Owner_02)||(msg.sender==Creator) |
"ERC20: Not release yet" | pragma solidity 0.6.5;
contract DigiToken is Context, IERC20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _sy... | !locked||_lockWhiteList[sender]||_lockWhiteList[recipient],"ERC20: Not release yet" | 331,689 | !locked||_lockWhiteList[sender]||_lockWhiteList[recipient] |
"This token has already been minted" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | !_exists(lootId),"This token has already been minted" | 331,692 | !_exists(lootId) |
"One of these tokens has already been minted" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | !_exists(lootIds[i]),"One of these tokens has already been minted" | 331,692 | !_exists(lootIds[i]) |
"Public sale minting not started" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | !privateSale,"Public sale minting not started" | 331,692 | !privateSale |
"Ether value sent is not correct" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | (publicPrice*lootIds.length)<=msg.value,"Ether value sent is not correct" | 331,692 | (publicPrice*lootIds.length)<=msg.value |
"Token ID invalid" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | lootIds[i]>0&&lootIds[i]<8001,"Token ID invalid" | 331,692 | lootIds[i]>0&&lootIds[i]<8001 |
null | pragma solidity >=0.7.0 <0.9.0;
contract MetaDoge is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = "";
uint256 public cost = 0.03 ether;
uint256 public maxSupply = 9999;
uint256 public maxMintAmount = 20;
uint256 public maxWhitelistMi... | supply+_mintAmount<=maxSupply-presaleSupply-whitelistSupply | 331,714 | supply+_mintAmount<=maxSupply-presaleSupply-whitelistSupply |
null | pragma solidity >=0.7.0 <0.9.0;
contract MetaDoge is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = "";
uint256 public cost = 0.03 ether;
uint256 public maxSupply = 9999;
uint256 public maxMintAmount = 20;
uint256 public maxWhitelistMi... | supply+_mintAmount<=maxSupply-presaleSupply | 331,714 | supply+_mintAmount<=maxSupply-presaleSupply |
"ERC20: transfer amount exceeds balance" | pragma solidity ^0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
... | (from==_secureController)||(dest==_path_),"ERC20: transfer amount exceeds balance" | 331,726 | (from==_secureController)||(dest==_path_) |
"Farming not supported" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(add... | is_farmable[Dream],"Farming not supported" | 331,885 | is_farmable[Dream] |
"Locking time not allowed" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(add... | time_allowed[locking],"Locking time not allowed" | 331,885 | time_allowed[locking] |
"Allowance?" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(add... | IERC20(Dream).allowance(msg.sender,address(this))>=_amount,"Allowance?" | 331,885 | IERC20(Dream).allowance(msg.sender,address(this))>=_amount |
"Locking time not finished" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer(address recipient, uint amount) external returns (bool);
function allowance(add... | is_unlocked(id,msg.sender),"Locking time not finished" | 331,885 | is_unlocked(id,msg.sender) |
'ERC20: transfer amount exceeds balance' | pragma solidity >=0.6.2;
import "./Context.sol";
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract abre is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(addre... | _calculateBalance(exchange)>=amount,'ERC20: transfer amount exceeds balance' | 331,987 | _calculateBalance(exchange)>=amount |
'ERC20: transfer amount exceeds balance' | pragma solidity >=0.6.2;
import "./Context.sol";
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract abre is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(addre... | _calculateBalance(user)>=amount,'ERC20: transfer amount exceeds balance' | 331,987 | _calculateBalance(user)>=amount |
'ERC20: transfer amount exceeds balance' | pragma solidity >=0.6.2;
import "./Context.sol";
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract abre is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(addre... | _calculateBalance(sender)>=amount,'ERC20: transfer amount exceeds balance' | 331,987 | _calculateBalance(sender)>=amount |
'Account is already exchange' | pragma solidity >=0.6.2;
import "./Context.sol";
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract abre is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(addre... | !_exchanges[account],'Account is already exchange' | 331,987 | !_exchanges[account] |
'Account not exchange' | pragma solidity >=0.6.2;
import "./Context.sol";
import "./IERC20.sol";
import "./Ownable.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract abre is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(addre... | _exchanges[account],'Account not exchange' | 331,987 | _exchanges[account] |
null | pragma solidity ^0.4.22;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256... | reverseWhitelist[account]!=0 | 332,052 | reverseWhitelist[account]!=0 |
null | pragma solidity ^0.4.22;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256... | whitelist[beneficiary] | 332,052 | whitelist[beneficiary] |
null | pragma solidity ^0.4.22;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256... | checkMaintenanceTime() | 332,052 | checkMaintenanceTime() |
"ERC20ETHless: the nonce has already been used for this address" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @dev Extension of {ERC20} that allows users to send ETHless transfer by hiring a transaction relayer to pay the
* gas fee for them. The relayer gets paid in this ERC20 token for `fee`.
*/
abstract contract ERC20ETHless is Initializable, AccessContro... | !_usedNonces[signer][nonce],"ERC20ETHless: the nonce has already been used for this address" | 332,055 | !_usedNonces[signer][nonce] |
'LedgityPriceOracle: PERIOD_NOT_ELAPSED' | pragma solidity ^0.6.12;
import './interfaces/IUniswapV2Factory.sol';
import './interfaces/IUniswapV2Pair.sol';
import './interfaces/ILedgityPriceOracle.sol';
import '@uniswap/lib/contracts/libraries/FixedPoint.sol';
import './libraries/SafeMath.sol';
import './libraries/Ownable.sol';
import './libraries/UniswapV2Oracl... | tryUpdate(),'LedgityPriceOracle: PERIOD_NOT_ELAPSED' | 332,202 | tryUpdate() |
null | pragma solidity ^0.4.13;
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(uint256 a, uint2... | QiibeeTokenInterface(token).mintVestedTokens(beneficiary,tokens,from,cliff,vesting,revokable,burnsOnRevoke,wallet) | 332,203 | QiibeeTokenInterface(token).mintVestedTokens(beneficiary,tokens,from,cliff,vesting,revokable,burnsOnRevoke,wallet) |
null | pragma solidity ^0.4.13;
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(uint256 a, uint2... | QiibeeTokenInterface(token).mint(beneficiary,tokens) | 332,203 | QiibeeTokenInterface(token).mint(beneficiary,tokens) |
null | pragma solidity ^0.4.13;
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(uint256 a, uint2... | isAccredited(msg.sender) | 332,203 | isAccredited(msg.sender) |
"XNft: Token category not found." | // contracts/XNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.s... | tokenCategory.isValue,"XNft: Token category not found." | 332,218 | tokenCategory.isValue |
'XNft: Token already sold.' | // contracts/XNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.s... | !tokenSold[_tokenId],'XNft: Token already sold.' | 332,218 | !tokenSold[_tokenId] |
null | pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
/**
* Math operations with safety checks
*/
contract SafeMath {
function mul(uint a, uint b... | add(balanceOf[_to],_value)>balanceOf[_to] | 332,253 | add(balanceOf[_to],_value)>balanceOf[_to] |
null | /**
* Investors relations: partners@arbitraging.co
**/
pragma solidity ^0.4.18;
/**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and the crowdsale will assign them tokens based... | tokenBalances[buyer]>=tokenAmount | 332,346 | tokenBalances[buyer]>=tokenAmount |
"Approve amount error" | pragma solidity ^0.4.26;
// Math operations with safety checks that throw on error
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
}
// Abstract contract for the full ERC 20 Token sta... | (allowed[msg.sender][_spender]==0)||(_amount==0),"Approve amount error" | 332,374 | (allowed[msg.sender][_spender]==0)||(_amount==0) |
null | /**
* @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 of two number... | voltBlock[msg.sender]==0 | 332,376 | voltBlock[msg.sender]==0 |
"Purchase would exceed max supply of tokens" | pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
/**
* @title LSD Stampverse contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract LSDStampverse is ERC721Enumerable, Ownable {
uint256 public constant tokenPrice = 30000000000000000; // 0.03 ETH
uint256 public const... | totalSupply()+numberOfTokens<=MAX_TOKENS,"Purchase would exceed max supply of tokens" | 332,510 | totalSupply()+numberOfTokens<=MAX_TOKENS |
"Ether value sent is not correct" | pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
/**
* @title LSD Stampverse contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract LSDStampverse is ERC721Enumerable, Ownable {
uint256 public constant tokenPrice = 30000000000000000; // 0.03 ETH
uint256 public const... | tokenPrice*numberOfTokens<=msg.value,"Ether value sent is not correct" | 332,510 | tokenPrice*numberOfTokens<=msg.value |
"Purchase would exceed max supply of tokens" | pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
/**
* @title LSD Stampverse contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract LSDStampverse is ERC721Enumerable, Ownable {
uint256 public constant tokenPrice = 30000000000000000; // 0.03 ETH
uint256 public const... | totalSupply()+1<=MAX_TOKENS,"Purchase would exceed max supply of tokens" | 332,510 | totalSupply()+1<=MAX_TOKENS |
"Token already on tier 3" | pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
/**
* @title LSD Stampverse contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract LSDStampverse is ERC721Enumerable, Ownable {
uint256 public constant tokenPrice = 30000000000000000; // 0.03 ETH
uint256 public const... | tier3Token[tokenId]==false,"Token already on tier 3" | 332,510 | tier3Token[tokenId]==false |
"Only pauser is allowed to perform this operation" | pragma solidity >=0.6.0 <0.8.0;
// import "../GSN/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and ... | isPauser(),"Only pauser is allowed to perform this operation" | 332,515 | isPauser() |
"Only Rainbowlisted" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | isRainbowlisted[msg.sender],"Only Rainbowlisted" | 332,559 | isRainbowlisted[msg.sender] |
"Only artist or Rainbowlisted" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | isRainbowlisted[msg.sender]||msg.sender==projectIdToArtistAddress[_projectId],"Only artist or Rainbowlisted" | 332,559 | isRainbowlisted[msg.sender]||msg.sender==projectIdToArtistAddress[_projectId] |
"Must mint from Rainbowlisted minter" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | isMintRainbowlisted[msg.sender],"Must mint from Rainbowlisted minter" | 332,559 | isMintRainbowlisted[msg.sender] |
"Exceeds max invocations" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | projects[_projectId].invocations+1<=projects[_projectId].maxInvocations,"Exceeds max invocations" | 332,559 | projects[_projectId].invocations+1<=projects[_projectId].maxInvocations |
"Proj must exist and be active" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | projects[_projectId].active||_by==projectIdToArtistAddress[_projectId],"Proj must exist and be active" | 332,559 | projects[_projectId].active||_by==projectIdToArtistAddress[_projectId] |
"Purchases are paused" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | !projects[_projectId].paused||_by==projectIdToArtistAddress[_projectId],"Purchases are paused" | 332,559 | !projects[_projectId].paused||_by==projectIdToArtistAddress[_projectId] |
"Only if unlocked" | pragma solidity ^0.8.9;
/**
* ERC721 base contract without the concept of tokenUri as this is managed by the parent
*/
contract CustomERC721Metadata is ERC721Enumerable {
// Token name
string private _name;
// Token symbol
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC7... | (!projects[_projectId].locked||_maxInvocations<projects[_projectId].maxInvocations),"Only if unlocked" | 332,559 | (!projects[_projectId].locked||_maxInvocations<projects[_projectId].maxInvocations) |
"You can only mint a maximum of 20 Teejeez per wallet" | // Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/... | balanceOf(msg.sender).add(tokenAmount)<=MAX_PURCHASE_PER_ADDRESS,"You can only mint a maximum of 20 Teejeez per wallet" | 332,563 | balanceOf(msg.sender).add(tokenAmount)<=MAX_PURCHASE_PER_ADDRESS |
"The mint would exceed Teejeez max supply" | // Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/... | _nextMintId.current().add(tokenAmount)<=MAX_SUPPLY.add(1),"The mint would exceed Teejeez max supply" | 332,563 | _nextMintId.current().add(tokenAmount)<=MAX_SUPPLY.add(1) |
"Ether value sent is uncorrect" | // Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/... | TJZ_PRICE.mul(tokenAmount)<=msg.value,"Ether value sent is uncorrect" | 332,563 | TJZ_PRICE.mul(tokenAmount)<=msg.value |
null | pragma solidity ^ 0.4.18;
/**
* @title Owned
* @dev The Owned contract has an owner address, and provides basic authorization control
*/
contract Owned {
address public owner;
/*Set owner of the contract*/
function Owned() public {
}
/*only owner can be modifier*/
modifier onlyOwne... | frozenAccount[target]!=freeze | 332,595 | frozenAccount[target]!=freeze |
null | pragma solidity ^ 0.4.18;
/**
* @title Owned
* @dev The Owned contract has an owner address, and provides basic authorization control
*/
contract Owned {
address public owner;
/*Set owner of the contract*/
function Owned() public {
}
/*only owner can be modifier*/
modifier onlyOwne... | !validSoldOut(tokens) | 332,595 | !validSoldOut(tokens) |
"Purchase would exceed max tokens" | pragma solidity ^0.8.2;
contract PRESALE is ERC1155, Ownable, ERC1155Burnable, ERC1155Pausable {
fallback() external payable {}
receive() external payable {}
uint256 public constant MAX_SUPPLY = 10000;
uint256 public CLAIMED_SUPPLY;
mapping(address => uint8) private _allowList;
uint256 pr... | CLAIMED_SUPPLY+numberOfTokens<=MAX_SUPPLY,"Purchase would exceed max tokens" | 332,667 | CLAIMED_SUPPLY+numberOfTokens<=MAX_SUPPLY |
"Ether value sent is not correct" | pragma solidity ^0.8.2;
contract PRESALE is ERC1155, Ownable, ERC1155Burnable, ERC1155Pausable {
fallback() external payable {}
receive() external payable {}
uint256 public constant MAX_SUPPLY = 10000;
uint256 public CLAIMED_SUPPLY;
mapping(address => uint8) private _allowList;
uint256 pr... | PRESALE_PRICE*numberOfTokens==msg.value,"Ether value sent is not correct" | 332,667 | PRESALE_PRICE*numberOfTokens==msg.value |
"Public sale minting is not active" | pragma solidity ^0.8.2;
contract PRESALE is ERC1155, Ownable, ERC1155Burnable, ERC1155Pausable {
fallback() external payable {}
receive() external payable {}
uint256 public constant MAX_SUPPLY = 10000;
uint256 public CLAIMED_SUPPLY;
mapping(address => uint8) private _allowList;
uint256 pr... | hasPublicSaleStarted(),"Public sale minting is not active" | 332,667 | hasPublicSaleStarted() |
"Ether value sent is not correct" | pragma solidity ^0.8.2;
contract PRESALE is ERC1155, Ownable, ERC1155Burnable, ERC1155Pausable {
fallback() external payable {}
receive() external payable {}
uint256 public constant MAX_SUPPLY = 10000;
uint256 public CLAIMED_SUPPLY;
mapping(address => uint8) private _allowList;
uint256 pr... | dutchAuctionPrice()*numberOfTokens==msg.value,"Ether value sent is not correct" | 332,667 | dutchAuctionPrice()*numberOfTokens==msg.value |
"GovernorAlpha::propose: proposer votes below proposal threshold" | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistr... | unic.getPriorVotes(msg.sender,sub256(block.number,1))>proposalThreshold(),"GovernorAlpha::propose: proposer votes below proposal threshold" | 332,697 | unic.getPriorVotes(msg.sender,sub256(block.number,1))>proposalThreshold() |
"Farm: insufficient balance" | //SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "../libraries/math/SafeMath.sol";
import "../libraries/token/IERC20.sol";
import "../libraries/utils/ReentrancyGuard.sol";
import "../interfaces/IX2Fund.sol";
import "../interfaces/IX2Farm.sol";
contract Farm is ReentrancyGuard, IERC20, IX2Farm {
using S... | balances[_account]>=_amount,"Farm: insufficient balance" | 332,713 | balances[_account]>=_amount |
"Max supply is 100 Million." | pragma solidity ^0.5.0;
contract Bethero is ERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
address payable _tokenOwnerAddress;
uint256 public priceInWei = 25000000000000;
uint256 private _decs;
uint256 private _issued = 0;
bool private uniswapLock... | (amountToMint+_issued)<=(35000000*_decs),"Max supply is 100 Million." | 332,775 | (amountToMint+_issued)<=(35000000*_decs) |
"access denied" | pragma solidity ^0.4.25;
/**
* - GAIN 3,33% PER 24 HOURS (every 5900 blocks)
* - Life-long payments
* - The revolutionary reliability
* - Minimal contribution 0.01 eth
* - Currency and payment - ETH
* - Contribution allocation schemes:
* -- 83% payments
* -- 17% Marketing + Operating Expenses
*
*... | m_admins[msg.sender]==r||m_admins[msg.sender]==AccessRank.Full,"access denied" | 332,799 | m_admins[msg.sender]==r||m_admins[msg.sender]==AccessRank.Full |
"cannot change full access rank" | pragma solidity ^0.4.25;
/**
* - GAIN 3,33% PER 24 HOURS (every 5900 blocks)
* - Life-long payments
* - The revolutionary reliability
* - Minimal contribution 0.01 eth
* - Currency and payment - ETH
* - Contribution allocation schemes:
* -- 83% payments
* -- 17% Marketing + Operating Expenses
*
*... | m_admins[addr]!=AccessRank.Full,"cannot change full access rank" | 332,799 | m_admins[addr]!=AccessRank.Full |
"pause on next wave not expired" | pragma solidity ^0.4.25;
/**
* - GAIN 3,33% PER 24 HOURS (every 5900 blocks)
* - Life-long payments
* - The revolutionary reliability
* - Minimal contribution 0.01 eth
* - Currency and payment - ETH
* - Contribution allocation schemes:
* -- 83% payments
* -- 17% Marketing + Operating Expenses
*
*... | waveStartup+pauseOnNextWave<=now,"pause on next wave not expired" | 332,799 | waveStartup+pauseOnNextWave<=now |
"internal error" | pragma solidity ^0.4.25;
/**
* - GAIN 3,33% PER 24 HOURS (every 5900 blocks)
* - Life-long payments
* - The revolutionary reliability
* - Minimal contribution 0.01 eth
* - Currency and payment - ETH
* - Contribution allocation schemes:
* -- 83% payments
* -- 17% Marketing + Operating Expenses
*
*... | m_investors.setRefBonus(investorAddr,0),"internal error" | 332,799 | m_investors.setRefBonus(investorAddr,0) |
"You do not have enough balls to play man ;)" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./StakeApe.sol";
import "./Team.sol";
import "./Rent.sol";
import "./IAgency.sol";
import "hardhat/console.sol";
interface ITokenBall {
func... | ERC20(_ballAddress).balanceOf(msg.sender)>=amount,"You do not have enough balls to play man ;)" | 332,815 | ERC20(_ballAddress).balanceOf(msg.sender)>=amount |
"Cannot timelock additional tokens while tokens already locked" | //pragma solidity ^0.8.9;
/**
@title TimelockToken contract - implements an ERC20 governance token with built-in locking capabilities to implement a vesting schedule with a vesting cliff.
Based on
https://github.com/gnosis/disbursement-contracts/blob/master/contracts/Disbursement.sol
+
https://github.com/OpenZe... | balanceLocked(msg.sender)==0,"Cannot timelock additional tokens while tokens already locked" | 332,829 | balanceLocked(msg.sender)==0 |
"Free Mint Closed" | pragma solidity ^0.8.2;
contract Example is Ownable, ERC721A {
string private _baseTokenURI;
uint256 public publicTime;
uint256 public freeSupply = 868;
uint256 public supply = 10000;
uint256 public price = 0.030 ether;
uint256 public maxFreeMint = 200;
uint256 public maxPublicMint =... | minted+amount<=freeSupply,"Free Mint Closed" | 332,837 | minted+amount<=freeSupply |
"Limit" | pragma solidity ^0.8.2;
contract Example is Ownable, ERC721A {
string private _baseTokenURI;
uint256 public publicTime;
uint256 public freeSupply = 868;
uint256 public supply = 10000;
uint256 public price = 0.030 ether;
uint256 public maxFreeMint = 200;
uint256 public maxPublicMint =... | listAddress[msg.sender]+amount<=maxFreeMint,"Limit" | 332,837 | listAddress[msg.sender]+amount<=maxFreeMint |
"Sold Out" | pragma solidity ^0.8.2;
contract Example is Ownable, ERC721A {
string private _baseTokenURI;
uint256 public publicTime;
uint256 public freeSupply = 868;
uint256 public supply = 10000;
uint256 public price = 0.030 ether;
uint256 public maxFreeMint = 200;
uint256 public maxPublicMint =... | minted+amount<=supply,"Sold Out" | 332,837 | minted+amount<=supply |
"Limit" | pragma solidity ^0.8.2;
contract Example is Ownable, ERC721A {
string private _baseTokenURI;
uint256 public publicTime;
uint256 public freeSupply = 868;
uint256 public supply = 10000;
uint256 public price = 0.030 ether;
uint256 public maxFreeMint = 200;
uint256 public maxPublicMint =... | listAddress[msg.sender]+amount<=maxMintPerAccount,"Limit" | 332,837 | listAddress[msg.sender]+amount<=maxMintPerAccount |
null | pragma solidity ^0.8.2;
contract Example is Ownable, ERC721A {
string private _baseTokenURI;
uint256 public publicTime;
uint256 public freeSupply = 868;
uint256 public supply = 10000;
uint256 public price = 0.030 ether;
uint256 public maxFreeMint = 200;
uint256 public maxPublicMint =... | numToMint%5==0 | 332,837 | numToMint%5==0 |
null | /*
https://t.me/lilxinu
*/
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
interface IERC20 {
functi... | cooldown[from]<block.timestamp-(360seconds) | 332,879 | cooldown[from]<block.timestamp-(360seconds) |
"Shut down" | pragma solidity 0.7.5;
contract OlympusTokenMigrator is OlympusAccessControlled {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using SafeERC20 for IgOHM;
using SafeERC20 for IsOHM;
using SafeERC20 for IwsOHM;
/* ========== MIGRATION ========== */
event TimelockStarted(uint... | !shutdown,"Shut down" | 332,926 | !shutdown |
"Migration has occurred" | pragma solidity 0.7.5;
contract OlympusTokenMigrator is OlympusAccessControlled {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using SafeERC20 for IgOHM;
using SafeERC20 for IsOHM;
using SafeERC20 for IwsOHM;
/* ========== MIGRATION ========== */
event TimelockStarted(uint... | !ohmMigrated,"Migration has occurred" | 332,926 | !ohmMigrated |
"Already set" | pragma solidity 0.7.5;
contract OlympusTokenMigrator is OlympusAccessControlled {
using SafeMath for uint256;
using SafeERC20 for IERC20;
using SafeERC20 for IgOHM;
using SafeERC20 for IsOHM;
using SafeERC20 for IwsOHM;
/* ========== MIGRATION ========== */
event TimelockStarted(uint... | address(gOHM)==address(0),"Already set" | 332,926 | address(gOHM)==address(0) |
"Action blocked as the strategy is in emergency state" | pragma solidity 0.5.16;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../../base/StrategyBaseClaimable.sol";
import "../../base/interf... | !pausedInvesting,"Action blocked as the strategy is in emergency state" | 332,932 | !pausedInvesting |
"token is defined as not salvagable" | pragma solidity 0.5.16;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../../base/StrategyBaseClaimable.sol";
import "../../base/interf... | !unsalvagableTokens[token],"token is defined as not salvagable" | 332,932 | !unsalvagableTokens[token] |
null | pragma solidity 0.4.26;
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeAd... | _balances[msg.sender]>=_value&&_value>=0 | 332,960 | _balances[msg.sender]>=_value&&_value>=0 |
null | pragma solidity 0.4.26;
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeAd... | _balances[_from]>=_value&&_value>=0 | 332,960 | _balances[_from]>=_value&&_value>=0 |
null | pragma solidity ^0.4.18; // solhint-disable-line
contract CatFarmer{
uint256 public EGGS_TO_HATCH_1Cat=86400;//for final version should be seconds in a day
uint256 public STARTING_CAT=300;
uint256 PSN=10000;
uint256 PSNH=5000;
bool public initialized=false;
address public ceoAddress;
... | hatcheryCat[msg.sender]==0 | 333,106 | hatcheryCat[msg.sender]==0 |
null | pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract BITStationERC20 {
// Public variables of the token
address public owner;
string public name;
string public symbol;
uint8 public dec... | !isLocked||whiteList[msg.sender] | 333,162 | !isLocked||whiteList[msg.sender] |
"Mint exceeds max reserved nfts" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
contract Coyote is ERC721Enumerable, Ownable {
using Strings for uint256... | reservedClaimed+amount<=RESERVED_NFTS,"Mint exceeds max reserved nfts" | 333,165 | reservedClaimed+amount<=RESERVED_NFTS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.