comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Free Mint is Over" | pragma solidity ^0.8.7;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract nounmfers is ERC721A, Ownable, ReentrancyGuard {
using Address for address;
using... | totalSupply()+amount<=freeMintAmount,"Free Mint is Over" | 357,175 | totalSupply()+amount<=freeMintAmount |
"Max Mint per wallet is 10" | pragma solidity ^0.8.7;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract nounmfers is ERC721A, Ownable, ReentrancyGuard {
using Address for address;
using... | addressMinted[msg.sender]<=maxMint,"Max Mint per wallet is 10" | 357,175 | addressMinted[msg.sender]<=maxMint |
"All NFTs have been minted." | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
}
}
contract AstroContract is ERC721Enumerable, Ownable, ContextMixin {
using Strings for uint256;
ui... | totalSupply()+_nftCount<=MAX_NFT,"All NFTs have been minted." | 357,300 | totalSupply()+_nftCount<=MAX_NFT |
"ETH amount is incorrect" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
}
}
contract AstroContract is ERC721Enumerable, Ownable, ContextMixin {
using Strings for uint256;
ui... | PRICE*_nftCount==msg.value,"ETH amount is incorrect" | 357,300 | PRICE*_nftCount==msg.value |
"All NFTs have been minted, wait for public sale" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
}
}
contract AstroContract is ERC721Enumerable, Ownable, ContextMixin {
using Strings for uint256;
ui... | totalSupply()+_nftCount<=MAX_NFT_PRESALE,"All NFTs have been minted, wait for public sale" | 357,300 | totalSupply()+_nftCount<=MAX_NFT_PRESALE |
"ETH amount is incorrect" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
}
}
contract AstroContract is ERC721Enumerable, Ownable, ContextMixin {
using Strings for uint256;
ui... | PRICE_PRESALE*_nftCount==msg.value,"ETH amount is incorrect" | 357,300 | PRICE_PRESALE*_nftCount==msg.value |
"You are not whitelisted" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
}
}
contract AstroContract is ERC721Enumerable, Ownable, ContextMixin {
using Strings for uint256;
ui... | MerkleProof.verify(_merkleproof,merkleroot,leaf),"You are not whitelisted" | 357,300 | MerkleProof.verify(_merkleproof,merkleroot,leaf) |
null | pragma solidity ^0.4.24;
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 div(uint256 _a, uint256 _b) intern... | isProxy[msg.sender] | 357,336 | isProxy[msg.sender] |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | !pool.bought_tokens | 357,359 | !pool.bought_tokens |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | block.number>=(pool.buy_block+week_in_blocs) | 357,359 | block.number>=(pool.buy_block+week_in_blocs) |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | token.transfer(msg.sender,contract_token_balance) | 357,359 | token.transfer(msg.sender,contract_token_balance) |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | pool.bought_tokens | 357,359 | pool.bought_tokens |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | pool.token.transfer(msg.sender,tokens_to_withdraw-fee) | 357,359 | pool.token.transfer(msg.sender,tokens_to_withdraw-fee) |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | pool.token.transfer(developer,fee) | 357,359 | pool.token.transfer(developer,fee) |
null | pragma solidity ^0.4.15;
/*
author : dungeon
A contract for doing pools with only one contract.
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function transfer(address _to, uint256 _value) returns (bool success);
function balanceOf(address _owner) constant returns (uint2... | pool.pool_eth_value+msg.value<=pool.max_amount||pool.max_amount==0 | 357,359 | pool.pool_eth_value+msg.value<=pool.max_amount||pool.max_amount==0 |
null | pragma solidity ^0.4.16;
/*** @title SafeMath * @dev Math operations with safety checks that throw on error */
library SafeMath { //knownsec //安全的算法
/** * @dev Multiplies two numbers, throws on overflow. */
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/** * @dev Integer division ... | address(this).balance>=amount.mul(sellPrice) | 357,414 | address(this).balance>=amount.mul(sellPrice) |
"Not yours" | contract RaiderHunt is Ownable {
// weapon score index to staking reward mapping
uint256[18] public weaponStakingReward = [
1157407407407 wei, // 0.1 per day
6944444444444 wei, // 0.6 per day
8101851851852 wei, // 0.7 per day
9259259259259 wei, // 0.8 per day
104166666666... | raider.ownerOf(id)==msg.sender,"Not yours" | 357,455 | raider.ownerOf(id)==msg.sender |
"Not yours" | contract RaiderHunt is Ownable {
// weapon score index to staking reward mapping
uint256[18] public weaponStakingReward = [
1157407407407 wei, // 0.1 per day
6944444444444 wei, // 0.6 per day
8101851851852 wei, // 0.7 per day
9259259259259 wei, // 0.8 per day
104166666666... | tokenIdToStaker[id]==msg.sender,"Not yours" | 357,455 | tokenIdToStaker[id]==msg.sender |
"Not yours" | contract RaiderHunt is Ownable {
// weapon score index to staking reward mapping
uint256[18] public weaponStakingReward = [
1157407407407 wei, // 0.1 per day
6944444444444 wei, // 0.6 per day
8101851851852 wei, // 0.7 per day
9259259259259 wei, // 0.8 per day
104166666666... | tokenIdToStaker[_tokenId]!=address(0),"Not yours" | 357,455 | tokenIdToStaker[_tokenId]!=address(0) |
"DESTINATION_ALREADY_CLAIMED" | //SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
import "@openzeppelin/contracts-0.8/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts-0.8/token/ERC1155/IERC1155Receiver.sol";
import "./ClaimERC1155ERC721ERC20.sol";
import "../../common/BaseWithStorage/WithAdmin.sol";
/// @title MultiGiveaway cont... | claimed[claim.to][merkleRoot]==false,"DESTINATION_ALREADY_CLAIMED" | 357,476 | claimed[claim.to][merkleRoot]==false |
"Sale: ERC20 payment failed" | @v6.0.0
pragma solidity 0.6.8;
/**
* @title FixedPricesSale
* An AbstractSale which implements a fixed prices strategy.
* The final implementer is responsible for implementing any additional pricing and/or delivery logic.
*/
contract FixedPricesSale is AbstractSale {
/**
* Constructor.
* @d... | IERC20(purchase.token).transferFrom(_msgSender(),payoutWallet,purchase.totalPrice),"Sale: ERC20 payment failed" | 357,479 | IERC20(purchase.token).transferFrom(_msgSender(),payoutWallet,purchase.totalPrice) |
null | /**
Copyright (c) 2018 SmartTaylor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | whitelistedBurn[msg.sender] | 357,520 | whitelistedBurn[msg.sender] |
null | pragma solidity 0.4.24;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
}
function sub(uint a, uint b) internal pure returns (uint c) {
}
function mul(uint a, uint b) internal pure returns (uint c) {
}
function div(uint a, uint b) internal pure return... | canClaimTokens[address_] | 357,567 | canClaimTokens[address_] |
"sFNC is not enabled" | // SPDX-License-Identifier: MIT
// Forked from Merit Circle
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Votes.sol";
import "@openzeppelin/contracts/utils/math/SafeCast.sol";
import "../interfaces/IBasePool.sol... | useEscrowPool||sFNCEnabled,"sFNC is not enabled" | 357,655 | useEscrowPool||sFNCEnabled |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | !all_stop | 357,678 | !all_stop |
"不可移動" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | !player_info[msg.sender].unmovable,"不可移動" | 357,678 | !player_info[msg.sender].unmovable |
"不可移動" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | !player_info[_sender].unmovable,"不可移動" | 357,678 | !player_info[_sender].unmovable |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | player_info[msg.sender].lotto | 357,678 | player_info[msg.sender].lotto |
"檢查不可移動" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | player_info[msg.sender].unmovable,"檢查不可移動" | 357,678 | player_info[msg.sender].unmovable |
"檢查不可移動" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | player_info[_sender].unmovable,"檢查不可移動" | 357,678 | player_info[_sender].unmovable |
"交易失敗" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | arina.transferFrom(_sender,domain_owner,_value),"交易失敗" | 357,678 | arina.transferFrom(_sender,domain_owner,_value) |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | arina.transferFrom(_sender,trade_address,_value) | 357,678 | arina.transferFrom(_sender,trade_address,_value) |
"不能建設" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | player_info[_sender].build==true,"不能建設" | 357,678 | player_info[_sender].build==true |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | player_info[msg.sender].reward==true | 357,678 | player_info[msg.sender].reward==true |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | addressToName[msg.sender].length!=0 | 357,678 | addressToName[msg.sender].length!=0 |
"交易失敗" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | ERC20_interface(arina_contract).transferFrom(_sender,checkPlayer[i],_value.div(checkPlayer.length)),"交易失敗" | 357,678 | ERC20_interface(arina_contract).transferFrom(_sender,checkPlayer[i],_value.div(checkPlayer.length)) |
"交易失敗" | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | ERC20_interface(arina_contract).transferFrom(_sender,trade_address,_value),"交易失敗" | 357,678 | ERC20_interface(arina_contract).transferFrom(_sender,trade_address,_value) |
null | pragma solidity ^0.4.25;
library SafeMath{
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, ... | slave(_address).master_address()==address(this) | 357,678 | slave(_address).master_address()==address(this) |
"AUTHORIZED_ADDRESS_MISMATCH" | /*
Copyright 2018 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | authorities[index]==target,"AUTHORIZED_ADDRESS_MISMATCH" | 357,690 | authorities[index]==target |
"Exceeds max per wallet" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface ERC721Tradable {
function mintTo(address _to, uint256 _quantity) external;
function setHiddenMetadataUri(string memory _hiddenMetadataUri) e... | mintedSale[msg.sender]+_quantity<=MAX_PER_WALLET,"Exceeds max per wallet" | 357,738 | mintedSale[msg.sender]+_quantity<=MAX_PER_WALLET |
"Altcoin transfer failed" | pragma solidity = 0.5.16;
contract AltcoinsPurchaseProxy is Ownable {
using SafeMath for uint256;
event PurchasedViaProxy (
address indexed owner,
address operator,
uint256 indexed lotId,
uint256 indexed quantity,
uint256 pricePaid,
address tokenAddress,
... | altcoinAddress.transferFrom(msg.sender,_saleContract._payoutWallet(),vars.altcoinPrice),"Altcoin transfer failed" | 357,873 | altcoinAddress.transferFrom(msg.sender,_saleContract._payoutWallet(),vars.altcoinPrice) |
"Approval failed" | pragma solidity = 0.5.16;
contract AltcoinsPurchaseProxy is Ownable {
using SafeMath for uint256;
event PurchasedViaProxy (
address indexed owner,
address operator,
uint256 indexed lotId,
uint256 indexed quantity,
uint256 pricePaid,
address tokenAddress,
... | ERC20(address(_saleContract._stableCoinAddress())).approve(address(_saleContract),vars.stablecoinPrice),"Approval failed" | 357,873 | ERC20(address(_saleContract._stableCoinAddress())).approve(address(_saleContract),vars.stablecoinPrice) |
null | pragma solidity = 0.5.16;
contract AltcoinsPurchaseProxy is Ownable {
using SafeMath for uint256;
event PurchasedViaProxy (
address indexed owner,
address operator,
uint256 indexed lotId,
uint256 indexed quantity,
uint256 pricePaid,
address tokenAddress,
... | ERC20(_saleContract._stableCoinAddress()).transfer(to,quantity) | 357,873 | ERC20(_saleContract._stableCoinAddress()).transfer(to,quantity) |
null | /**
* Crowdsale for m+plus coin phase 1
*
* Based on OpenZeppelin framework.
* https://openzeppelin.org
**/
pragma solidity ^0.4.18;
/**
* Safe Math library from OpenZeppelin framework
* https://openzeppelin.org
*
* @title SafeMath
* @dev Math operations with safety checks that throw on error
... | tokenReward.transferFrom(tokenOwner,_beneficiary,tokens) | 357,919 | tokenReward.transferFrom(tokenOwner,_beneficiary,tokens) |
"Nothing happened" | // contracts/PumpkinJack.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
interface IPrize {
function getPrize(address winner, uint8 amount, uint8 class) external;
}
interface IBrainz {
function balanceOf(address t... | data[0]>0,"Nothing happened" | 357,934 | data[0]>0 |
"purchase exceeds max supply" | contract RumbleKongLeague is ERC721, Ownable {
using SafeMath for uint256;
string public RKL_PROVENANCE;
uint256 public constant kongPrice = 0.08 ether;
uint256 public constant maxKongPurchase = 20;
uint256 public constant MAX_KONGS = 10_000;
uint256 public REVEAL_TIMESTAMP;
bool public sale... | totalSupply().add(numberOfTokens)<=MAX_KONGS,"purchase exceeds max supply" | 357,949 | totalSupply().add(numberOfTokens)<=MAX_KONGS |
"not enough ether sent" | contract RumbleKongLeague is ERC721, Ownable {
using SafeMath for uint256;
string public RKL_PROVENANCE;
uint256 public constant kongPrice = 0.08 ether;
uint256 public constant maxKongPurchase = 20;
uint256 public constant MAX_KONGS = 10_000;
uint256 public REVEAL_TIMESTAMP;
bool public sale... | kongPrice.mul(numberOfTokens)<=msg.value,"not enough ether sent" | 357,949 | kongPrice.mul(numberOfTokens)<=msg.value |
"cant reserve multiple times" | contract RumbleKongLeague is ERC721, Ownable {
using SafeMath for uint256;
string public RKL_PROVENANCE;
uint256 public constant kongPrice = 0.08 ether;
uint256 public constant maxKongPurchase = 20;
uint256 public constant MAX_KONGS = 10_000;
uint256 public REVEAL_TIMESTAMP;
bool public sale... | !alreadyReserved,"cant reserve multiple times" | 357,949 | !alreadyReserved |
"CSWAP: no simultaneous txes" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable... | _lastTx[sender]<now&&_lastTx[recipient]<now,"CSWAP: no simultaneous txes" | 357,969 | _lastTx[sender]<now&&_lastTx[recipient]<now |
"CSWAP: no simultaneous txes" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable... | _lastTx[recipient]<now,"CSWAP: no simultaneous txes" | 357,969 | _lastTx[recipient]<now |
"CSWAP: no simultaneous txes" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable... | _lastTx[sender]<now,"CSWAP: no simultaneous txes" | 357,969 | _lastTx[sender]<now |
"CSWAP: Not the farming contract" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable... | _msgSender()==farmer,"CSWAP: Not the farming contract" | 357,969 | _msgSender()==farmer |
'Sold out' | @v4.3.1
pragma solidity 0.8.4; // CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8.... | this.totalSupply()<maxSupply,'Sold out' | 358,046 | this.totalSupply()<maxSupply |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | !isComplete() | 358,075 | !isComplete() |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | isComplete() | 358,075 | isComplete() |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | checkEthBalance(msg.sender)>0 | 358,075 | checkEthBalance(msg.sender)>0 |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | KYClist[msg.sender]==true | 358,075 | KYClist[msg.sender]==true |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | refundPeriodStart() | 358,075 | refundPeriodStart() |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | !refundPeriodOver() | 358,075 | !refundPeriodOver() |
null | pragma solidity ^0.4.18;
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
}
function div(uint a, uint b) internal returns (uint) {
}
function sub(uint a, uint b) internal returns (uint) {
}
function add(uint a, uint b) internal returns (uint) {
}
}
con... | checkEthBalance(msg.sender)>=value | 358,075 | checkEthBalance(msg.sender)>=value |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | nStockDetails[msg.sender]._stocktime==0 | 358,093 | nStockDetails[msg.sender]._stocktime==0 |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | checkAddrMinerStatus(msg.sender)==true | 358,093 | checkAddrMinerStatus(msg.sender)==true |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | (block.number-1)-_bnumber<100 | 358,093 | (block.number-1)-_bnumber<100 |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | uint256(blockhash(_bnumber))%nRewarMod==1 | 358,093 | uint256(blockhash(_bnumber))%nRewarMod==1 |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | nRewardDetails[nMixAddrandBlock()]._artyr==0 | 358,093 | nRewardDetails[nMixAddrandBlock()]._artyr==0 |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | nRewardDetails[nMixAddrandBlock()]._didGetReward==false | 358,093 | nRewardDetails[nMixAddrandBlock()]._didGetReward==false |
null | pragma solidity >=0.5.13 <0.6.0;
//37, 248
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract TESTFIVECOIN {
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public t... | nRewardDetails[nMixAddrandBlock()]._artyr>now+360 | 358,093 | nRewardDetails[nMixAddrandBlock()]._artyr>now+360 |
null | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
import "./Ownable.sol";
interface IERC20 {
function transfer(address recipient, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
}
contract CRDNetworkAirdropV2 is Ownable {
mappi... | addressRecord[msg.sender]==true | 358,161 | addressRecord[msg.sender]==true |
"Sold Out" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts@4.3.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts@... | totalSupply().add(numberOfTokens)<=LBois_SUPPLY,"Sold Out" | 358,175 | totalSupply().add(numberOfTokens)<=LBois_SUPPLY |
"Ether amount sent is incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts@4.3.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts@... | LBois_PRICE.mul(numberOfTokens)<=msg.value,"Ether amount sent is incorrect" | 358,175 | LBois_PRICE.mul(numberOfTokens)<=msg.value |
"Presale Of LBois is not active" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts@4.3.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts@... | ispreSaleActive(),"Presale Of LBois is not active" | 358,175 | ispreSaleActive() |
"Insufficient supply, Try in public sale" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts@4.3.0/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts@4.3.0/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts@... | totalSupply().add(numberOfTokens)<=presale_supply,"Insufficient supply, Try in public sale" | 358,175 | totalSupply().add(numberOfTokens)<=presale_supply |
"already initialized" | pragma solidity ^0.5.0;
contract LPTokenWrapper {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 public uni_lp = IERC20(0x9Ca884A5dF7ABe4619035596D39D912A1A02340D);
uint256 private _totalSupply;
mapping(address => uint256) private _balances;
function totalSupply() public view ret... | bento.balanceOf(address(this))==0,"already initialized" | 358,326 | bento.balanceOf(address(this))==0 |
"Out of limited." | pragma solidity 0.6.12;
// MasterChef is the master of BTF
contract MasterChef is Ownable {
uint256 public constant DURATION = 7 days;
uint256 public TotalSupply = 1000000 * 1e18;
uint256 public initReward = 100000 * 1e18;
uint256 public periodFinish = 0;
using SafeMath for uint256;
usin... | btf.totalSupply()<=TotalSupply,"Out of limited." | 358,353 | btf.totalSupply()<=TotalSupply |
"do not add the same lp token more than once" | pragma solidity 0.6.12;
// MasterChef is the master of BTF
contract MasterChef is Ownable {
uint256 public constant DURATION = 7 days;
uint256 public TotalSupply = 1000000 * 1e18;
uint256 public initReward = 100000 * 1e18;
uint256 public periodFinish = 0;
using SafeMath for uint256;
usin... | !lpExists[address(_lpToken)],"do not add the same lp token more than once" | 358,353 | !lpExists[address(_lpToken)] |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | owner.send(ethAmount) | 358,404 | owner.send(ethAmount) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | lrcToken.transfer(owner,lrcAmount) | 358,404 | lrcToken.transfer(owner,lrcAmount) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | ethAmount.mul(rate)<=lrcAmount | 358,404 | ethAmount.mul(rate)<=lrcAmount |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | msg.sender.send(ethAmount) | 358,404 | msg.sender.send(ethAmount) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | msg.sender.send(ethRefund) | 358,404 | msg.sender.send(ethRefund) |
null | pragma solidity 0.5.9;
/// "LockableToken" adds token locking functionality to ERC-20 smart contract. The authorized addresses (Cappers) are
/// allowed to lock tokens from any token holder to prevent token transfers up to that amount. If a token holder is
/// locked by multiple cappers, the maximum number is used a... | balanceOf(owner)>=currentLock.add(value) | 358,419 | balanceOf(owner)>=currentLock.add(value) |
null | pragma solidity 0.5.9;
/// "LockableToken" adds token locking functionality to ERC-20 smart contract. The authorized addresses (Cappers) are
/// allowed to lock tokens from any token holder to prevent token transfers up to that amount. If a token holder is
/// locked by multiple cappers, the maximum number is used a... | balanceOf(owner)>=value | 358,419 | balanceOf(owner)>=value |
null | pragma solidity 0.5.9;
/// "LockableToken" adds token locking functionality to ERC-20 smart contract. The authorized addresses (Cappers) are
/// allowed to lock tokens from any token holder to prevent token transfers up to that amount. If a token holder is
/// locked by multiple cappers, the maximum number is used a... | locks[index].value>=value | 358,419 | locks[index].value>=value |
null | pragma solidity 0.5.9;
/// "LockableToken" adds token locking functionality to ERC-20 smart contract. The authorized addresses (Cappers) are
/// allowed to lock tokens from any token holder to prevent token transfers up to that amount. If a token holder is
/// locked by multiple cappers, the maximum number is used a... | unlockedBalanceOf(from)>=value | 358,419 | unlockedBalanceOf(from)>=value |
null | pragma solidity 0.5.9;
/// "LockableToken" adds token locking functionality to ERC-20 smart contract. The authorized addresses (Cappers) are
/// allowed to lock tokens from any token holder to prevent token transfers up to that amount. If a token holder is
/// locked by multiple cappers, the maximum number is used a... | unlockedBalanceOf(account)>=value | 358,419 | unlockedBalanceOf(account)>=value |
null | /**
* GearProtocol's Liquidity Provider Vault
* Smart contract to incentivize GEAR liquidity providers with a limited supply utility token, GearAutomatic (AUTO).
* Official Website:
https://www.GearProtocol.com
*/
pragma solidity ^0.6.0;
interface ERC20 {
function totalSupply() external view returns (... | _savedBalances[msg.sender]==liquidityToken.balanceOf(msg.sender) | 358,537 | _savedBalances[msg.sender]==liquidityToken.balanceOf(msg.sender) |
null | /**
* GearProtocol's Liquidity Provider Vault
* Smart contract to incentivize GEAR liquidity providers with a limited supply utility token, GearAutomatic (AUTO).
* Official Website:
https://www.GearProtocol.com
*/
pragma solidity ^0.6.0;
interface ERC20 {
function totalSupply() external view returns (... | !isFarming[farmer] | 358,537 | !isFarming[farmer] |
null | /**
* GearProtocol's Liquidity Provider Vault
* Smart contract to incentivize GEAR liquidity providers with a limited supply utility token, GearAutomatic (AUTO).
* Official Website:
https://www.GearProtocol.com
*/
pragma solidity ^0.6.0;
interface ERC20 {
function totalSupply() external view returns (... | isFarming[farmer] | 358,537 | isFarming[farmer] |
null | pragma solidity 0.4.25;
contract E2D {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
require(<... | myDividends()>0 | 358,606 | myDividends()>0 |
"only allowed investor can invest!" | pragma solidity 0.4.25;
contract E2D {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
// own... | initialInvestors[msg.sender]==true,"only allowed investor can invest!" | 358,606 | initialInvestors[msg.sender]==true |
"initial state or token > balance!" | pragma solidity 0.4.25;
contract E2D {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
// own... | !initialState&&(_amountOfTokens<=tokenBalanceLedger_[_customerAddress]),"initial state or token > balance!" | 358,606 | !initialState&&(_amountOfTokens<=tokenBalanceLedger_[_customerAddress]) |
"token should be > 0!" | pragma solidity 0.4.25;
contract E2D {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
// own... | (_amountOfTokens>0&&(SafeMath.add(_amountOfTokens,tokenSupply_)>tokenSupply_)),"token should be > 0!" | 358,606 | (_amountOfTokens>0&&(SafeMath.add(_amountOfTokens,tokenSupply_)>tokenSupply_)) |
"Bad merkle proof" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contrac... | _verify(_leaf(to,tokenId),proof),"Bad merkle proof" | 358,653 | _verify(_leaf(to,tokenId),proof) |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | safeKeys[msg.sender] | 358,761 | safeKeys[msg.sender] |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | !signKeys[msg.sender] | 358,761 | !signKeys[msg.sender] |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | userCells[_cell].lockup==0&&userCells[_cell].balance==0 | 358,761 | userCells[_cell].lockup==0&&userCells[_cell].balance==0 |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | !userCells[_cell].exist | 358,761 | !userCells[_cell].exist |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | getBalanceCell(_key)==0 | 358,761 | getBalanceCell(_key)==0 |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | userCells[_key].exist | 358,761 | userCells[_key].exist |
null | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
/**
* @dev Integer division o... | userCells[_key].timeOfDeposit.add(1hours)>now | 358,761 | userCells[_key].timeOfDeposit.add(1hours)>now |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.