comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"overminting:supply" | //SPDX-License-Identifier: BSD
pragma solidity ^0.8.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/////////////////////////////////////
c... | (__total_wl_claimed+quantity)<=MAX_WL_TOKENS,"overminting:supply" | 381,321 | (__total_wl_claimed+quantity)<=MAX_WL_TOKENS |
"over free total." | //SPDX-License-Identifier: BSD
pragma solidity ^0.8.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/////////////////////////////////////
c... | (__og_free_claimed+__wl_free_claimed+1)<=MAX_TOTAL_FREE_TOKENS,"over free total." | 381,321 | (__og_free_claimed+__wl_free_claimed+1)<=MAX_TOTAL_FREE_TOKENS |
"$ETH<" | //SPDX-License-Identifier: BSD
pragma solidity ^0.8.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/////////////////////////////////////
c... | quantity*MINT_PRICE_PUBLIC==msg.value,"$ETH<" | 381,321 | quantity*MINT_PRICE_PUBLIC==msg.value |
">maxTokens" | //SPDX-License-Identifier: BSD
pragma solidity ^0.8.0;
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/////////////////////////////////////
c... | (totalSupply()+quantity)<=MAX_TOTAL_TOKENS,">maxTokens" | 381,321 | (totalSupply()+quantity)<=MAX_TOTAL_TOKENS |
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 OwnershipRenounced(address indexed previou... | _from.isContract() | 381,465 | _from.isContract() |
"Either sale is currently active or fusion is inactive" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Owna... | fusionIsActive&&!saleIsActive,"Either sale is currently active or fusion is inactive" | 381,473 | fusionIsActive&&!saleIsActive |
'Not Time To Burn' | //SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "./IERC20.sol";
import "./IKeys.sol";
/** Burns KEY Tokens Quarterly
*/
contract TokenBurner {
// Last Burn Time
uint256 lastBurnTime;
// Data
address public immutable token;
uint256 public constant burnWaitTime = 26 * 10**5;
uint256 p... | lastBurnTime+burnWaitTime<=block.number,'Not Time To Burn' | 381,513 | lastBurnTime+burnWaitTime<=block.number |
null | // SPDX-License-Identifier: MIT
/**
________ __ __ ______ __
/ |/ | / | / \ / |
$$$$$$$$/_$$ |_ $$ |____ ______ ______ /$$$$$$ | ______ __ __ _______... | balanceOf(msg.sender)+_claimAmount<=10 | 381,515 | balanceOf(msg.sender)+_claimAmount<=10 |
null | // SPDX-License-Identifier: MIT
/**
________ __ __ ______ __
/ |/ | / | / \ / |
$$$$$$$$/_$$ |_ $$ |____ ______ ______ /$$$$$$ | ______ __ __ _______... | supply+_claimAmount<=maxSupplyClaim | 381,515 | supply+_claimAmount<=maxSupplyClaim |
"Invalid Balancer Pool" | ///@author DeFiZap
///@notice this contract helps in investing in balancer pools through ETH or ERC20 tokens
pragma solidity 0.5.12;
interface IBFactory_Balancer_ZapIn_General_V1 {
function isBPool(address b) external view returns (bool);
}
interface IBPool_Balancer_ZapIn_General_V1 {
function joinswapEx... | BalancerFactory.isBPool(_ToBalancerPoolAddress),"Invalid Balancer Pool" | 381,536 | BalancerFactory.isBPool(_ToBalancerPoolAddress) |
"Error in transferring ERC: 1" | ///@author DeFiZap
///@notice this contract helps in investing in balancer pools through ETH or ERC20 tokens
pragma solidity 0.5.12;
interface IBFactory_Balancer_ZapIn_General_V1 {
function isBPool(address b) external view returns (bool);
}
interface IBPool_Balancer_ZapIn_General_V1 {
function joinswapEx... | IERC20(_FromTokenContractAddress).transferFrom(msg.sender,address(this),_amount),"Error in transferring ERC: 1" | 381,536 | IERC20(_FromTokenContractAddress).transferFrom(msg.sender,address(this),_amount) |
"Error in transferring ERC: 2" | ///@author DeFiZap
///@notice this contract helps in investing in balancer pools through ETH or ERC20 tokens
pragma solidity 0.5.12;
interface IBFactory_Balancer_ZapIn_General_V1 {
function isBPool(address b) external view returns (bool);
}
interface IBPool_Balancer_ZapIn_General_V1 {
function joinswapEx... | IERC20(_FromTokenContractAddress).transferFrom(_toWhomToIssue,address(this),_amount),"Error in transferring ERC: 2" | 381,536 | IERC20(_FromTokenContractAddress).transferFrom(_toWhomToIssue,address(this),_amount) |
"Error in transferring BPT:1" | ///@author DeFiZap
///@notice this contract helps in investing in balancer pools through ETH or ERC20 tokens
pragma solidity 0.5.12;
interface IBFactory_Balancer_ZapIn_General_V1 {
function isBPool(address b) external view returns (bool);
}
interface IBPool_Balancer_ZapIn_General_V1 {
function joinswapEx... | IERC20(_tokenContractAddress).transfer(dzgoodwillAddress,goodwillPortion),"Error in transferring BPT:1" | 381,536 | IERC20(_tokenContractAddress).transfer(dzgoodwillAddress,goodwillPortion) |
"Token not bound" | ///@author DeFiZap
///@notice this contract helps in investing in balancer pools through ETH or ERC20 tokens
pragma solidity 0.5.12;
interface IBFactory_Balancer_ZapIn_General_V1 {
function isBPool(address b) external view returns (bool);
}
interface IBPool_Balancer_ZapIn_General_V1 {
function joinswapEx... | IBPool_Balancer_ZapIn_General_V1(_ToBalancerPoolAddress).isBound(_FromTokenContractAddress),"Token not bound" | 381,536 | IBPool_Balancer_ZapIn_General_V1(_ToBalancerPoolAddress).isBound(_FromTokenContractAddress) |
"Permission being set must be for a valid method signature" | pragma solidity ^0.4.24;
/**
* @title Proxy
* @dev Implements delegation of calls to other contracts, with proper
* forwarding of return values and bubbling of failures.
* It defines a fallback function that delegates all calls to the address
* returned by the abstract _implementation() internal function.
... | permissions[_methodsignature].active,"Permission being set must be for a valid method signature" | 381,807 | permissions[_methodsignature].active |
null | pragma solidity ^0.4.8;
contract AppCoins {
mapping (address => mapping (address => uint256)) public allowance;
function balanceOf (address _owner) public constant returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, a... | appc.allowance(msg.sender,address(this))>=budget | 381,851 | appc.allowance(msg.sender,address(this))>=budget |
null | pragma solidity ^0.4.8;
contract AppCoins {
mapping (address => mapping (address => uint256)) public allowance;
function balanceOf (address _owner) public constant returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, a... | (timestampList[i+1]-timestampList[i])==10000 | 381,851 | (timestampList[i+1]-timestampList[i])==10000 |
null | pragma solidity ^0.4.8;
contract AppCoins {
mapping (address => mapping (address => uint256)) public allowance;
function balanceOf (address _owner) public constant returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, a... | !userAttributions[msg.sender][bidId] | 381,851 | !userAttributions[msg.sender][bidId] |
'Signable: signature already used' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './ISignable.sol';
abstract contract Signable is ISignable {
struct Signature {
bytes32 nonce;
bytes32 r;
bytes32 s;
uint8 v;
}
bytes32 private _uniq;
mapping(bytes32 => bool) private _signatures;
constructor() {
}
function uni... | !_signatures[signatureHash],'Signable: signature already used' | 381,903 | !_signatures[signatureHash] |
"Exceed the max supply!" | contract Comic is ERC1155, Ownable {
struct NftToken {
uint16 mintingStatus; // set can be mint or not
uint16 currentMinted;
uint16 totalSupply;
uint16 maxSupply;
uint16 maxMintingPerTime;
uint16 reserve1;
uint32 nftCost; // unit is finney (0.001 ETH)
... | nftToken.currentMinted+_number<=nftToken.totalSupply+1,"Exceed the max supply!" | 381,936 | nftToken.currentMinted+_number<=nftToken.totalSupply+1 |
"Illegality avatar id" | contract Comic is ERC1155, Ownable {
struct NftToken {
uint16 mintingStatus; // set can be mint or not
uint16 currentMinted;
uint16 totalSupply;
uint16 maxSupply;
uint16 maxMintingPerTime;
uint16 reserve1;
uint32 nftCost; // unit is finney (0.001 ETH)
... | avatarIds[i]<=nftToken.allowMaxAvatarsId,"Illegality avatar id" | 381,936 | avatarIds[i]<=nftToken.allowMaxAvatarsId |
"Already claimed from this avatar" | contract Comic is ERC1155, Ownable {
struct NftToken {
uint16 mintingStatus; // set can be mint or not
uint16 currentMinted;
uint16 totalSupply;
uint16 maxSupply;
uint16 maxMintingPerTime;
uint16 reserve1;
uint32 nftCost; // unit is finney (0.001 ETH)
... | !avatarMintings[avatarIds[i]],"Already claimed from this avatar" | 381,936 | !avatarMintings[avatarIds[i]] |
"Exceed the max supply!" | contract Comic is ERC1155, Ownable {
struct NftToken {
uint16 mintingStatus; // set can be mint or not
uint16 currentMinted;
uint16 totalSupply;
uint16 maxSupply;
uint16 maxMintingPerTime;
uint16 reserve1;
uint32 nftCost; // unit is finney (0.001 ETH)
... | nftToken.currentMinted+uint16(_addrs.length)<=nftToken.totalSupply+1,"Exceed the max supply!" | 381,936 | nftToken.currentMinted+uint16(_addrs.length)<=nftToken.totalSupply+1 |
null | pragma solidity ^0.4.11;
/// `Owned` is a base level contract that assigns an `owner` that can be later changed
contract Owned {
/// @dev `owner` is the only address that can call a function with this
/// modifier
modifier onlyOwner { }
address public owner;
... | tokenContract.transferFrom(this,_owners[i],_tokens[i]) | 382,084 | tokenContract.transferFrom(this,_owners[i],_tokens[i]) |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | exchangeRatios[token]>0&&cycleMintSupply<SWAP_CAP | 382,247 | exchangeRatios[token]>0&&cycleMintSupply<SWAP_CAP |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | ERC20(token).asmTransferFrom(msg.sender,this,amount) | 382,247 | ERC20(token).asmTransferFrom(msg.sender,this,amount) |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | swapOpen&&cycleMintSupply>0 | 382,247 | swapOpen&&cycleMintSupply>0 |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | exchangeRatios[tokenAddr]==0&&ratio>0&&ratio<10000 | 382,247 | exchangeRatios[tokenAddr]==0&&ratio>0&&ratio<10000 |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | miningTokens[position]==tokenAddr&&ratio<10000 | 382,247 | miningTokens[position]==tokenAddr&&ratio<10000 |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | !miningActive | 382,247 | !miningActive |
null | contract FUTB1 is StandardToken, MintableToken, BurnableToken {
using SafeMath for uint256;
using ERC20AsmFn for ERC20;
string public constant name = "Futereum BTC 1";
string public constant symbol = "FUTB1";
uint8 public constant decimals = 18;
uint public constant SWAP_CAP = 21000000 * (10 ** uint25... | miningTokens[_position]==_addr | 382,247 | miningTokens[_position]==_addr |
"Not allowed" | pragma solidity ^0.8.0;
contract EnchantedGolemsRockSociety is ERC721Enumerable, Ownable {
using Address for address;
using Strings for uint256;
string public baseURI = "";
string public ipfsBaseURI = "";
mapping (uint256 => string) public tokenIdToIpfsHash;
IERC1155 public WhitelistContr... | !manualMintDisabled,"Not allowed" | 382,514 | !manualMintDisabled |
"Supply exceeded" | pragma solidity ^0.8.0;
contract EnchantedGolemsRockSociety is ERC721Enumerable, Ownable {
using Address for address;
using Strings for uint256;
string public baseURI = "";
string public ipfsBaseURI = "";
mapping (uint256 => string) public tokenIdToIpfsHash;
IERC1155 public WhitelistContr... | totalSupply()+counts[i]<=MAX_SUPPLY,"Supply exceeded" | 382,514 | totalSupply()+counts[i]<=MAX_SUPPLY |
"Supply exceeded" | pragma solidity ^0.8.0;
contract EnchantedGolemsRockSociety is ERC721Enumerable, Ownable {
using Address for address;
using Strings for uint256;
string public baseURI = "";
string public ipfsBaseURI = "";
mapping (uint256 => string) public tokenIdToIpfsHash;
IERC1155 public WhitelistContr... | (totalSupply()+(RESERVED_FOR_OWNER-mintedByOwner)+count)<=MAX_SUPPLY,"Supply exceeded" | 382,514 | (totalSupply()+(RESERVED_FOR_OWNER-mintedByOwner)+count)<=MAX_SUPPLY |
"You need to be whitelisted to mint during presale" | pragma solidity ^0.8.0;
contract EnchantedGolemsRockSociety is ERC721Enumerable, Ownable {
using Address for address;
using Strings for uint256;
string public baseURI = "";
string public ipfsBaseURI = "";
mapping (uint256 => string) public tokenIdToIpfsHash;
IERC1155 public WhitelistContr... | WhitelistContract.balanceOf(msg.sender,0)>0,"You need to be whitelisted to mint during presale" | 382,514 | WhitelistContract.balanceOf(msg.sender,0)>0 |
null | pragma solidity >=0.4.22 <0.6.0;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }
contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(u... | balanceOf[fundsWallet]>=amount | 382,536 | balanceOf[fundsWallet]>=amount |
null | pragma solidity >=0.4.22 <0.6.0;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }
contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(u... | safeAdd(balanceOf[_to],_value)>=balanceOf[_to] | 382,536 | safeAdd(balanceOf[_to],_value)>=balanceOf[_to] |
null | pragma solidity >=0.4.22 <0.6.0;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; }
contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(u... | balanceOf[msg.sender]>=burnAmount | 382,536 | balanceOf[msg.sender]>=burnAmount |
"Already Finalized" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/Strings.sol";
import "./core/Base.sol";
contract ERC721EP is ERC721EBase {
using Strings for uint256;
address private constant _supporter_addr = 0xCF9542a8522E685a46007319Af9C39F4Fde9d88a;
bool private _fina... | !_final,"Already Finalized" | 382,581 | !_final |
"Can not write" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/Strings.sol";
import "./core/Base.sol";
contract ERC721EP is ERC721EBase {
using Strings for uint256;
address private constant _supporter_addr = 0xCF9542a8522E685a46007319Af9C39F4Fde9d88a;
bool private _fina... | tokenOwnerIsCreator(tokenId),"Can not write" | 382,581 | tokenOwnerIsCreator(tokenId) |
"Restricted to minters." | pragma solidity 0.6.7;
import "./../openzeppelin/contracts/access/AccessControl.sol";
import "./../openzeppelin/contracts/math/SafeMath.sol";
import "./NftTypes.sol";
import "./SeascapeNft.sol";
/// @title Nft Factory mints Seascape NFTs
/// @notice Nft factory has gives to other contracts or wallet addresses per... | isStaticUser(msg.sender),"Restricted to minters." | 382,601 | isStaticUser(msg.sender) |
"Restricted to random generator." | pragma solidity 0.6.7;
import "./../openzeppelin/contracts/access/AccessControl.sol";
import "./../openzeppelin/contracts/math/SafeMath.sol";
import "./NftTypes.sol";
import "./SeascapeNft.sol";
/// @title Nft Factory mints Seascape NFTs
/// @notice Nft factory has gives to other contracts or wallet addresses per... | isGenerator(msg.sender),"Restricted to random generator." | 382,601 | isGenerator(msg.sender) |
"Insufficient SWAP AFT balance" | /**
*Submitted for verification at Etherscan.io on 2020-09-02
*/
/*
* @dev This is the Axia Protocol Staking pool 3 contract (SWAP Pool),
* a part of the protocol where stakers are rewarded in AXIA tokens
* when they make stakes of liquidity tokens from the oracle pool.
* stakers reward come from the daily em... | IERC20(UniswapV2).balanceOf(msg.sender)>=_amount,"Insufficient SWAP AFT balance" | 382,635 | IERC20(UniswapV2).balanceOf(msg.sender)>=_amount |
"Your amount is lower than the minimum amount allowed to stake" | /**
*Submitted for verification at Etherscan.io on 2020-09-02
*/
/*
* @dev This is the Axia Protocol Staking pool 3 contract (SWAP Pool),
* a part of the protocol where stakers are rewarded in AXIA tokens
* when they make stakes of liquidity tokens from the oracle pool.
* stakers reward come from the daily em... | frozenOf(msg.sender)+_amount>=MINIMUM_STAKE,"Your amount is lower than the minimum amount allowed to stake" | 382,635 | frozenOf(msg.sender)+_amount>=MINIMUM_STAKE |
"Not enough allowance given to contract yet to spend by user" | /**
*Submitted for verification at Etherscan.io on 2020-09-02
*/
/*
* @dev This is the Axia Protocol Staking pool 3 contract (SWAP Pool),
* a part of the protocol where stakers are rewarded in AXIA tokens
* when they make stakes of liquidity tokens from the oracle pool.
* stakers reward come from the daily em... | IERC20(UniswapV2).allowance(msg.sender,address(this))>=_amount,"Not enough allowance given to contract yet to spend by user" | 382,635 | IERC20(UniswapV2).allowance(msg.sender,address(this))>=_amount |
"Transaction failed" | /**
*Submitted for verification at Etherscan.io on 2020-09-02
*/
/*
* @dev This is the Axia Protocol Staking pool 3 contract (SWAP Pool),
* a part of the protocol where stakers are rewarded in AXIA tokens
* when they make stakes of liquidity tokens from the oracle pool.
* stakers reward come from the daily em... | IERC20(UniswapV2).transfer(msg.sender,_amount),"Transaction failed" | 382,635 | IERC20(UniswapV2).transfer(msg.sender,_amount) |
"Transaction Failed" | /**
*Submitted for verification at Etherscan.io on 2020-09-02
*/
/*
* @dev This is the Axia Protocol Staking pool 3 contract (SWAP Pool),
* a part of the protocol where stakers are rewarded in AXIA tokens
* when they make stakes of liquidity tokens from the oracle pool.
* stakers reward come from the daily em... | IERC20(Axiatoken).transfer(msg.sender,_dividends),"Transaction Failed" | 382,635 | IERC20(Axiatoken).transfer(msg.sender,_dividends) |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | isSuperOwner(msg.sender) | 382,680 | isSuperOwner(msg.sender) |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | !ownerMap[owner] | 382,680 | !ownerMap[owner] |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | ownerMap[owner] | 382,680 | ownerMap[owner] |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | !locked||isOwner(_from)||isOwner(_to) | 382,680 | !locked||isOwner(_from)||isOwner(_to) |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | tokensSold.add(_value)<=saleLimit | 382,680 | tokensSold.add(_value)<=saleLimit |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | totalTokensSold.add(tokensE18)<=maxCapTokens | 382,680 | totalTokensSold.add(tokensE18)<=maxCapTokens |
null | pragma solidity ^0.4.18;
/**
* @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 (uint256) {
}
function sub(u... | token.sell(_buyer,tokensE18) | 382,680 | token.sell(_buyer,tokensE18) |
null | pragma solidity ^0.8.2;
pragma experimental ABIEncoderV2;
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 numbers, truncating the quotient.
*/
function di... | !callStarted | 382,736 | !callStarted |
"commission not valid" | pragma solidity ^0.8.2;
pragma experimental ABIEncoderV2;
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 numbers, truncating the quotient.
*/
function di... | _commissionIds[i]<queue.newCommissionId,"commission not valid" | 382,736 | _commissionIds[i]<queue.newCommissionId |
'You have sent incorrect payment amount' | /*
ETHStvo.io - Empower Lifestyle Via Blockchain Network
Join and earn as many ETH as you want with 0.10 one time contribution
SocMed Channel FB/IG/TW/TELEGRAM - ethstvoworld
Hashtag #ethstvo #ethereum #ethereummultiplier #ethereumdoubler #ethereumcollector #gainethereum
*/
pragma solidity ^0.5.7;
library SafeMa... | LEVEL_PRICE[msg.value]>0,'You have sent incorrect payment amount' | 382,834 | LEVEL_PRICE[msg.value]>0 |
null | pragma solidity ^0.5.0;
contract ResolverBase {
bytes4 private constant INTERFACE_META_ID = 0x01ffc9a7;
function supportsInterface(bytes4 interfaceID) public pure returns(bool) {
}
function isAuthorised(bytes32 node) internal view returns(bool);
modifier authorised(bytes32 node) {
require(<F... | isAuthorised(node) | 382,849 | isAuthorised(node) |
"This contract is out of front money." | pragma solidity 0.4.24;
contract Ownable {
address public owner;
constructor() public {
}
function setOwner(address _owner) public onlyOwner {
}
modifier onlyOwner {
}
}
contract PurchasePackInterface {
function basePrice() public returns (uint);
function purchaseFor(addr... | address(this).balance>=discount,"This contract is out of front money." | 382,859 | address(this).balance>=discount |
"ERC721: Merging of token that is not own" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../FormaBase.sol";
contract Bingo is FormaBase {
uint8 public boardWidth;
uint8 public maxBoardWidth = 8;
uint16 public tileProbability;
uint64 public freshTokensMinted = 0;
uint64 public mergeTokensMinted = 0;
mapping(uint256 => by... | ERC721.ownerOf(_tokenId1)==_msgSender(),"ERC721: Merging of token that is not own" | 382,894 | ERC721.ownerOf(_tokenId1)==_msgSender() |
"ERC721: Merging of token that is not own" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../FormaBase.sol";
contract Bingo is FormaBase {
uint8 public boardWidth;
uint8 public maxBoardWidth = 8;
uint16 public tileProbability;
uint64 public freshTokensMinted = 0;
uint64 public mergeTokensMinted = 0;
mapping(uint256 => by... | ERC721.ownerOf(_tokenId2)==_msgSender(),"ERC721: Merging of token that is not own" | 382,894 | ERC721.ownerOf(_tokenId2)==_msgSender() |
null | // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
/... | !_records[token].bound | 382,937 | !_records[token].bound |
null | // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
/... | _records[token].balance<=bsub(erc20Balance,reserves) | 382,937 | _records[token].balance<=bsub(erc20Balance,reserves) |
"ERR_NOT_BOUND" | // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
/... | _records[tokenIn].bound,"ERR_NOT_BOUND" | 382,937 | _records[tokenIn].bound |
"ERR_NOT_BOUND" | // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
/... | _records[tokenOut].bound,"ERR_NOT_BOUND" | 382,937 | _records[tokenOut].bound |
"Already activated" | // SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./RootKit.sol";
import "./IRootKitDistribution.sol";
import "./TokensRecoverable.sol";
contract RootKitLiquidityGeneration is Owned, TokensRecoverable
{
mapping (address => uint256) public contribution;
add... | !isActive&&contributors.length==0&&block.timestamp>=refundsAllowedUntil,"Already activated" | 382,958 | !isActive&&contributors.length==0&&block.timestamp>=refundsAllowedUntil |
"Missing supply" | // SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./RootKit.sol";
import "./IRootKitDistribution.sol";
import "./TokensRecoverable.sol";
contract RootKitLiquidityGeneration is Owned, TokensRecoverable
{
mapping (address => uint256) public contribution;
add... | rootKit.balanceOf(address(this))==rootKit.totalSupply(),"Missing supply" | 382,958 | rootKit.balanceOf(address(this))==rootKit.totalSupply() |
null | // SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./RootKit.sol";
import "./IRootKitDistribution.sol";
import "./TokensRecoverable.sol";
contract RootKitLiquidityGeneration is Owned, TokensRecoverable
{
mapping (address => uint256) public contribution;
add... | address(_rootKitDistribution)!=address(0) | 382,958 | address(_rootKitDistribution)!=address(0) |
"!stable" | pragma solidity 0.5.16;
pragma experimental ABIEncoderV2;
import "openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "./OrbitConfig.sol";
import "./PriceOracle.sol";
imp... | isStable(orbit),"!stable" | 382,984 | isStable(orbit) |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | userBank[msg.sender]>=amount | 383,006 | userBank[msg.sender]>=amount |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | userBank[msg.sender]>=_bet | 383,006 | userBank[msg.sender]>=_bet |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | betBanks[_betId1].bet!=emptyBet&&betBanks[_betId2].bet!=emptyBet | 383,006 | betBanks[_betId1].bet!=emptyBet&&betBanks[_betId2].bet!=emptyBet |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | betBanks[_betId1].owner==msg.sender||betBanks[_betId2].owner==msg.sender | 383,006 | betBanks[_betId1].owner==msg.sender||betBanks[_betId2].owner==msg.sender |
null | pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onl... | betBanks[_betId1].owner!=betBanks[_betId2].owner | 383,006 | betBanks[_betId1].owner!=betBanks[_betId2].owner |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | isAdminister(msg.sender)||msg.sender==owner | 383,132 | isAdminister(msg.sender)||msg.sender==owner |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | isPauser(msg.sender)||isAdminister(msg.sender)||msg.sender==owner | 383,132 | isPauser(msg.sender)||isAdminister(msg.sender)||msg.sender==owner |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | !isAdminister(account) | 383,132 | !isAdminister(account) |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | isAdminister(account) | 383,132 | isAdminister(account) |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | adminGroup.administerList[0]==account | 383,132 | adminGroup.administerList[0]==account |
null | pragma solidity ^0.4.25;
contract Ownable {
address public owner;
constructor() public {
}
modifier onlyOwner() {
}
}
contract Role is Ownable {
struct AdminGroup {
mapping (address => bool) administers;
mapping (address => uint) administerListIndex;
address[] administe... | adminGroup.pauserList[0]==account | 383,132 | adminGroup.pauserList[0]==account |
"api key already in use" | pragma solidity 0.7.1;
/**
* @title enabling Zero Knowledge API Keys as described in: https://blog.leverj.io/zero-knowledge-api-keys-43280cc93647
* @notice the Registry app consists of the RegistryLogic & RegistryData contracts.
* api-key registrations are held within RegistryData for an easier upgrade path.
* ... | translate(apiKey)==address(0x0),"api key already in use" | 383,232 | translate(apiKey)==address(0x0) |
"One of the apps is still ON" | pragma solidity 0.7.1;
/**
* @title enabling Zero Knowledge API Keys as described in: https://blog.leverj.io/zero-knowledge-api-keys-43280cc93647
* @notice the Registry app consists of the RegistryLogic & RegistryData contracts.
* api-key registrations are held within RegistryData for an easier upgrade path.
* ... | !appState.isOn(),"One of the apps is still ON" | 383,232 | !appState.isOn() |
"Non-unique work components" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | (w[0]!=w[1])&&(w[0]!=w[2])&&(w[0]!=w[3])&&(w[0]!=w[4])&&(w[0]!=w[5])&&(w[0]!=w[6])&&(w[0]!=w[7])&&(w[0]!=w[8])&&(w[0]!=w[9])&&(w[1]!=w[2])&&(w[1]!=w[3])&&(w[1]!=w[4])&&(w[1]!=w[5])&&(w[1]!=w[6])&&(w[1]!=w[7])&&(w[1]!=w[8])&&(w[1]!=w[9])&&(w[2]!=w[3])&&(w[2]!=w[4])&&(w[2]!=w[5])&&(w[2]!=w[6])&&(w[2]!=w[7])&&(w[2]!=w[8])... | 383,280 | (w[0]!=w[1])&&(w[0]!=w[2])&&(w[0]!=w[3])&&(w[0]!=w[4])&&(w[0]!=w[5])&&(w[0]!=w[6])&&(w[0]!=w[7])&&(w[0]!=w[8])&&(w[0]!=w[9])&&(w[1]!=w[2])&&(w[1]!=w[3])&&(w[1]!=w[4])&&(w[1]!=w[5])&&(w[1]!=w[6])&&(w[1]!=w[7])&&(w[1]!=w[8])&&(w[1]!=w[9])&&(w[2]!=w[3])&&(w[2]!=w[4])&&(w[2]!=w[5])&&(w[2]!=w[6])&&(w[2]!=w[7])&&(w[2]!=w[8])... |
"Recent block too old" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | recent_eth_block_number+RECENT_BLOCK_LIMIT>block.number,"Recent block too old" | 383,280 | recent_eth_block_number+RECENT_BLOCK_LIMIT>block.number |
"Nonce too large" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | (recent_eth_block_hash+(1<<128))>nonce,"Nonce too large" | 383,280 | (recent_eth_block_hash+(1<<128))>nonce |
"Block hash mismatch" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | uint256(blockhash(recent_eth_block_number))==recent_eth_block_hash,"Block hash mismatch" | 383,280 | uint256(blockhash(recent_eth_block_number))==recent_eth_block_hash |
"pow_height mismatch" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | get_pow_height(_msgSender(),recipients,split_percents)+1==pow_height,"pow_height mismatch" | 383,280 | get_pow_height(_msgSender(),recipients,split_percents)+1==pow_height |
"Work missed target" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | w[10]<target,"Work missed target" | 383,280 | w[10]<target |
"Percent array element cannot exceed 10000" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | arr[i]<=10000,"Percent array element cannot exceed 10000" | 383,280 | arr[i]<=10000 |
"HC overflow" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | hc<(1<<128),"HC overflow" | 383,280 | hc<(1<<128) |
"Token balance overflow" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | x0<(1<<128),"Token balance overflow" | 383,280 | x0<(1<<128) |
"HC balance overflow" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | y0<(1<<128),"HC balance overflow" | 383,280 | y0<(1<<128) |
"HC balance overflow" | pragma solidity ^0.6.0;
contract KnsTokenMining
is AccessControl,
KnsTokenWork
{
IMintableERC20 public token;
mapping (uint256 => uint256) private user_pow_height;
uint256 public constant ONE_KNS = 100000000;
uint256 public constant MINEABLE_TOKENS = 100 * 1000000 * ONE_KNS;
uint256 pub... | y1<(1<<128),"HC balance overflow" | 383,280 | y1<(1<<128) |
null | pragma solidity ^0.4.19;
contract Owned
{
address public owner;
modifier onlyOwner
{
}
function transferOwnership(address newOwner) public onlyOwner()
{
}
}
contract Agricoin is Owned
{
// Dividends payout struct.
struct DividendPayout
{
uint amount; ... | payers[msg.sender] | 383,301 | payers[msg.sender] |
null | pragma solidity ^0.4.19;
contract Owned
{
address public owner;
modifier onlyOwner
{
}
function transferOwnership(address newOwner) public onlyOwner()
{
}
}
contract Agricoin is Owned
{
// Dividends payout struct.
struct DividendPayout
{
uint amount; ... | balances[_from].balance>=_value | 383,301 | balances[_from].balance>=_value |
null | pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of t... | REGISTRATION_FEE.mul(NUM_REGISTER_DAYS)==msg.value | 383,313 | REGISTRATION_FEE.mul(NUM_REGISTER_DAYS)==msg.value |
null | pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of t... | userDateToStatus[msg.sender][date]==UserEntryStatus.NULL | 383,313 | userDateToStatus[msg.sender][date]==UserEntryStatus.NULL |
null | pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of t... | userDateToStatus[msg.sender][nowDate]==UserEntryStatus.REGISTERED | 383,313 | userDateToStatus[msg.sender][nowDate]==UserEntryStatus.REGISTERED |
"Unique gifts empty" | pragma solidity ^0.8.4;
contract BD is ERC721Enumerable, Ownable {
uint256 public tokenPricePresale = 0.06 ether;
uint256 public tokenPricePublicSale = 0.08 ether;
uint256 public constant giftUniquesStart = 0;
uint256 public giftUniquesMinted = 0;
uint256 public constant giftUniquesTotal = 17;... | giftUniquesMinted+receivers.length<=giftRegularsTotal,"Unique gifts empty" | 383,319 | giftUniquesMinted+receivers.length<=giftRegularsTotal |
"Regular gifts empty" | pragma solidity ^0.8.4;
contract BD is ERC721Enumerable, Ownable {
uint256 public tokenPricePresale = 0.06 ether;
uint256 public tokenPricePublicSale = 0.08 ether;
uint256 public constant giftUniquesStart = 0;
uint256 public giftUniquesMinted = 0;
uint256 public constant giftUniquesTotal = 17;... | giftRegularsMinted+receivers.length<=giftRegularsTotal,"Regular gifts empty" | 383,319 | giftRegularsMinted+receivers.length<=giftRegularsTotal |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.