comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"DSP_INITIALIZED" | /**
* @title DODO StablePool
* @author DODO Breeder
*
* @notice DODOStablePool initialization
*/
contract DSP is DSPTrader, DSPFunding {
function init(
address maintainer,
address baseTokenAddress,
address quoteTokenAddress,
uint256 lpFeeRate,
address mtFeeRa... | !_DSP_INITIALIZED_,"DSP_INITIALIZED" | 51,144 | !_DSP_INITIALIZED_ |
null | pragma solidity ^0.4.20;
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, uint256 b) intern... | amounts[i]*_Rate<=totalRemaining | 51,150 | amounts[i]*_Rate<=totalRemaining |
null | pragma solidity ^0.4.20;
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, uint256 b) intern... | _amount<=(balances[msg.sender]-lockOf(msg.sender)) | 51,150 | _amount<=(balances[msg.sender]-lockOf(msg.sender)) |
null | pragma solidity ^0.4.20;
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, uint256 b) intern... | _amount<=(allowed[_from][msg.sender]-lockOf(msg.sender)) | 51,150 | _amount<=(allowed[_from][msg.sender]-lockOf(msg.sender)) |
"StrategyCommon: oneToken is unknown" | // SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "../interface/IOneTokenFactory.sol";
import "../interface/IStrategy.sol";
import "../interface/IOneTokenV1Base.sol";
import "../_openzeppelin/token/ERC20/IERC20.sol";
import "../_openzeppelin/token/ERC20/SafeERC20.sol";
import "../common/ICHIModuleCommo... | IOneTokenFactory(IOneTokenV1Base(oneToken_).oneTokenFactory()).isOneToken(oneToken_),"StrategyCommon: oneToken is unknown" | 51,160 | IOneTokenFactory(IOneTokenV1Base(oneToken_).oneTokenFactory()).isOneToken(oneToken_) |
null | pragma solidity 0.4.24;
interface IMintableToken {
function mint(address _to, uint256 _amount) public returns (bool);
}
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
... | SafeMath.add(tokensMintedDuringPreICO,tokensHoldMap[_address])<=tokensHardCap | 51,168 | SafeMath.add(tokensMintedDuringPreICO,tokensHoldMap[_address])<=tokensHardCap |
"Purchase would exceed current limit max tokens" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | ts+numberOfTokens<=limit_total_supply,"Purchase would exceed current limit max tokens" | 51,206 | ts+numberOfTokens<=limit_total_supply |
"Purchase would exceed max tokens" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | ts+numberOfTokens<=collectionSize,"Purchase would exceed max tokens" | 51,206 | ts+numberOfTokens<=collectionSize |
"Ether value sent is not correct" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | price_per_token*numberOfTokens<=msg.value,"Ether value sent is not correct" | 51,206 | price_per_token*numberOfTokens<=msg.value |
"White List 1 is not deactivated" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | !isWhiteListActiveList1,"White List 1 is not deactivated" | 51,206 | !isWhiteListActiveList1 |
"Client is not on White list" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | whitelistedAddressNoLimit[msg.sender],"Client is not on White list" | 51,206 | whitelistedAddressNoLimit[msg.sender] |
"White List No Limit is not deactivated" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | !isWhiteListActiveNoLimit,"White List No Limit is not deactivated" | 51,206 | !isWhiteListActiveNoLimit |
"Client is not on White List 1" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";
import "./Strings.sol";
contract SBREN is Ownable, ERC721A, ReentrancyGuard {
using Strings for uint256;
string public PROVENANCE;
uint256 public constant MAX_SUPPLY=100... | whitelistedAddressList1[msg.sender],"Client is not on White List 1" | 51,206 | whitelistedAddressList1[msg.sender] |
"Tokens cannot be transferred from user account" | pragma solidity ^0.6.0;
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
//
// EMAX Staking Contract.
//
// Stake EMAX, Earn ETH!
//
//----------------------------------------------------------------------------
// SafeMath library
// ------------... | IERC20(EMax).transferFrom(msg.sender,address(this),tokens),"Tokens cannot be transferred from user account" | 51,208 | IERC20(EMax).transferFrom(msg.sender,address(this),tokens) |
"Invalid token amount to withdraw" | pragma solidity ^0.6.0;
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
//
// EMAX Staking Contract.
//
// Stake EMAX, Earn ETH!
//
//----------------------------------------------------------------------------
// SafeMath library
// ------------... | stakers[msg.sender].stakedTokens>=tokens&&tokens>0,"Invalid token amount to withdraw" | 51,208 | stakers[msg.sender].stakedTokens>=tokens&&tokens>0 |
"Error in un-staking tokens" | pragma solidity ^0.6.0;
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
//
// EMAX Staking Contract.
//
// Stake EMAX, Earn ETH!
//
//----------------------------------------------------------------------------
// SafeMath library
// ------------... | IERC20(EMax).transfer(msg.sender,tokens),"Error in un-staking tokens" | 51,208 | IERC20(EMax).transfer(msg.sender,tokens) |
"You are not a Stronghand" | pragma solidity ^0.4.25;
interface HourglassInterface {
function buy(address _playerAddress) payable external returns(uint256);
function sell(uint256 _amountOfTokens) external;
function reinvest() external;
function withdraw() external;
function transfer(address _toAddress, uint256 _amountOfTo... | isStrongHand(),"You are not a Stronghand" | 51,270 | isStrongHand() |
"You already became a Stronghand" | pragma solidity ^0.4.25;
interface HourglassInterface {
function buy(address _playerAddress) payable external returns(uint256);
function sell(uint256 _amountOfTokens) external;
function reinvest() external;
function withdraw() external;
function transfer(address _toAddress, uint256 _amountOfTo... | !isStrongHand(),"You already became a Stronghand" | 51,270 | !isStrongHand() |
"MErc20::sweepToken: can not sweep underlying token" | // SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.6.12;
import "./MToken.sol";
import "./Moartroller.sol";
import "./AbstractInterestRateModel.sol";
import "./Interfaces/WETHInterface.sol";
import "./Interfaces/EIP20Interface.sol";
import "./Utils/SafeEIP20.sol";
/**
* @title MOAR's MEther Contract
* @notic... | address(token)!=underlying,"MErc20::sweepToken: can not sweep underlying token" | 51,293 | address(token)!=underlying |
"ERROR: CALLER IS NOT THE OWNER OF PROTECTION" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppel... | isUserProtection(msg.sender,tokenId),"ERROR: CALLER IS NOT THE OWNER OF PROTECTION" | 51,307 | isUserProtection(msg.sender,tokenId) |
"ERROR: C-OP STRIKE PRICE IS LOWER THAN ASSET SPOT PRICE" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppel... | moartroller.oracle().getUnderlyingPrice(mToken)<=getUnderlyingStrikePrice(tokenId),"ERROR: C-OP STRIKE PRICE IS LOWER THAN ASSET SPOT PRICE" | 51,307 | moartroller.oracle().getUnderlyingPrice(mToken)<=getUnderlyingStrikePrice(tokenId) |
"Your address is not whitelisted for the presale" | pragma solidity ^0.8.0;
contract CyberBullsERC721 is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Address for address;
string private baseURI;
uint256 public maxGenesis;
uint256 public maxTokens;
uint256 public maxPresale = 0;
uint256 ... | presaleAllowed[msg.sender],"Your address is not whitelisted for the presale" | 51,374 | presaleAllowed[msg.sender] |
"Cannot mint because it would exceed the presale limits" | pragma solidity ^0.8.0;
contract CyberBullsERC721 is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Address for address;
string private baseURI;
uint256 public maxGenesis;
uint256 public maxTokens;
uint256 public maxPresale = 0;
uint256 ... | supply.add(1)<=maxPresale,"Cannot mint because it would exceed the presale limits" | 51,374 | supply.add(1)<=maxPresale |
"Cannot mint because it would exceed the sale limits" | pragma solidity ^0.8.0;
contract CyberBullsERC721 is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Address for address;
string private baseURI;
uint256 public maxGenesis;
uint256 public maxTokens;
uint256 public maxPresale = 0;
uint256 ... | supply.add(amount)<=maxGenesis,"Cannot mint because it would exceed the sale limits" | 51,374 | supply.add(amount)<=maxGenesis |
"Not enough ETH value" | pragma solidity ^0.8.0;
contract CyberBullsERC721 is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Address for address;
string private baseURI;
uint256 public maxGenesis;
uint256 public maxTokens;
uint256 public maxPresale = 0;
uint256 ... | price.mul(amount)==msg.value,"Not enough ETH value" | 51,374 | price.mul(amount)==msg.value |
"Negative Entropy: minter must sign URI and ID!" | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @dev {ERC721} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - token ID and URI autogenerat... | _signedByMinter(seedDesired,tokenURI,to,v,r,s),"Negative Entropy: minter must sign URI and ID!" | 51,384 | _signedByMinter(seedDesired,tokenURI,to,v,r,s) |
"NegativeEntropy: Seed has already been claimed–how did you make it this far?" | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @dev {ERC721} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - token ID and URI autogenerat... | !seedClaimed(seedDesired),"NegativeEntropy: Seed has already been claimed–how did you make it this far?" | 51,384 | !seedClaimed(seedDesired) |
'NegativeEntropy: Token ID not found in storage – Are you sure it exists?' | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @dev {ERC721} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - token ID and URI autogenerat... | seedMap.contains(tokenId),'NegativeEntropy: Token ID not found in storage – Are you sure it exists?' | 51,384 | seedMap.contains(tokenId) |
'NegativeEntropy: Token ID not found in storage – Are you sure it exists?' | pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @dev {ERC721} token, including:
*
* - ability for holders to burn (destroy) their tokens
* - a minter role that allows for token minting (creation)
* - a pauser role that allows to stop all token transfers
* - token ID and URI autogenerat... | seedSet.contains(seedMap.get(tokenId)),'NegativeEntropy: Token ID not found in storage – Are you sure it exists?' | 51,384 | seedSet.contains(seedMap.get(tokenId)) |
"You can't own that many tokens at once." | //SPDX-License-Identifier: UNLICENSED
// TG: https://t.me/LlamaInu
// website: https://llamainu.com
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
... | (amount+balanceOf(address(to)))<=_maxHeldTokens,"You can't own that many tokens at once." | 51,415 | (amount+balanceOf(address(to)))<=_maxHeldTokens |
"30 seconds buy cooldown." | //SPDX-License-Identifier: UNLICENSED
// TG: https://t.me/LlamaInu
// website: https://llamainu.com
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
... | cooldown[to].buy<block.timestamp+(30seconds),"30 seconds buy cooldown." | 51,415 | cooldown[to].buy<block.timestamp+(30seconds) |
"30 seconds sell cooldown." | //SPDX-License-Identifier: UNLICENSED
// TG: https://t.me/LlamaInu
// website: https://llamainu.com
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
... | cooldown[from].buy<block.timestamp+(30seconds),"30 seconds sell cooldown." | 51,415 | cooldown[from].buy<block.timestamp+(30seconds) |
"Trading is already open" | //SPDX-License-Identifier: UNLICENSED
// TG: https://t.me/LlamaInu
// website: https://llamainu.com
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
... | !_tradingOpen,"Trading is already open" | 51,415 | !_tradingOpen |
null | //SPDX-License-Identifier: UNLICENSED
// TG: https://t.me/LlamaInu
// website: https://llamainu.com
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
... | _msgSender()==_FeeAddress1 | 51,415 | _msgSender()==_FeeAddress1 |
"Premint cant be done in public mint" | pragma solidity ^0.8.6;
contract Wildcard is NFTokenMetadata, Ownable {
mapping (uint256 => bool) public IdList;
uint256 _lastTokenId = 0;
address payout = 0x0000000000000000000000000000000000000000;
bool openMinting = false;
bool whitelistMode = false;
mapping (address => bool) public whitelistedAd... | !premint,"Premint cant be done in public mint" | 51,464 | !premint |
"Extra minting cant be done in public mint" | pragma solidity ^0.8.6;
contract Wildcard is NFTokenMetadata, Ownable {
mapping (uint256 => bool) public IdList;
uint256 _lastTokenId = 0;
address payout = 0x0000000000000000000000000000000000000000;
bool openMinting = false;
bool whitelistMode = false;
mapping (address => bool) public whitelistedAd... | !extra,"Extra minting cant be done in public mint" | 51,464 | !extra |
null | pragma solidity ^0.8.6;
contract Wildcard is NFTokenMetadata, Ownable {
mapping (uint256 => bool) public IdList;
uint256 _lastTokenId = 0;
address payout = 0x0000000000000000000000000000000000000000;
bool openMinting = false;
bool whitelistMode = false;
mapping (address => bool) public whitelistedAd... | isAuthorized[msg.sender]||msg.sender==owner | 51,464 | isAuthorized[msg.sender]||msg.sender==owner |
"Sorry, you are not in the whitelist" | pragma solidity ^0.8.6;
contract Wildcard is NFTokenMetadata, Ownable {
mapping (uint256 => bool) public IdList;
uint256 _lastTokenId = 0;
address payout = 0x0000000000000000000000000000000000000000;
bool openMinting = false;
bool whitelistMode = false;
mapping (address => bool) public whitelistedAd... | whitelistedAddress[msg.sender],"Sorry, you are not in the whitelist" | 51,464 | whitelistedAddress[msg.sender] |
"You already bought" | pragma solidity ^0.8.6;
contract Wildcard is NFTokenMetadata, Ownable {
mapping (uint256 => bool) public IdList;
uint256 _lastTokenId = 0;
address payout = 0x0000000000000000000000000000000000000000;
bool openMinting = false;
bool whitelistMode = false;
mapping (address => bool) public whitelistedAd... | !whitelistHasBought[msg.sender],"You already bought" | 51,464 | !whitelistHasBought[msg.sender] |
null | pragma solidity ^0.4.13;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ER... | (UbiqIssued+(dests.length*amount))<=totalSupply | 51,528 | (UbiqIssued+(dests.length*amount))<=totalSupply |
"Reserves dont add up" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | drop+vip+wl+pub==maxSupply,"Reserves dont add up" | 51,559 | drop+vip+wl+pub==maxSupply |
"Nonce already used" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | !nonceUsed[nonce],"Nonce already used" | 51,559 | !nonceUsed[nonce] |
"Total reserve exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentTotal+qnty<=maxSupply,"Total reserve exceeded" | 51,559 | currentTotal+qnty<=maxSupply |
"VIP reserve exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentVIP+qnty<=reserveVIP,"VIP reserve exceeded" | 51,559 | currentVIP+qnty<=reserveVIP |
"Insufficient funds send" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | priceVIP*qnty<=msg.value,"Insufficient funds send" | 51,559 | priceVIP*qnty<=msg.value |
"whitelist Reserve exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentWL+qnty<=reserveWL,"whitelist Reserve exceeded" | 51,559 | currentWL+qnty<=reserveWL |
"Insufficient funds send" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | priceWL*qnty<=msg.value,"Insufficient funds send" | 51,559 | priceWL*qnty<=msg.value |
"Public Reserve exceeded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentPublic+qnty<=reservePublic,"Public Reserve exceeded" | 51,559 | currentPublic+qnty<=reservePublic |
"Insufficient funds send" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | pricePublic*qnty<=msg.value,"Insufficient funds send" | 51,559 | pricePublic*qnty<=msg.value |
"Airdrop exhausted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentDrop+quanty[i]<=reserveDrop,"Airdrop exhausted" | 51,559 | currentDrop+quanty[i]<=reserveDrop |
"All NFTs minted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BillionaireNFT is Ownable, ERC721Pausable {
//financial
address payable receiver =
payable(0x59eF96C6180A51ea... | currentTotal+howmany<=maxSupply,"All NFTs minted" | 51,559 | currentTotal+howmany<=maxSupply |
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(uint256 a, ... | !released | 51,560 | !released |
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(uint256 a, ... | manager[msg.sender] | 51,560 | manager[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(uint256 a, ... | whitelist[_addr] | 51,560 | whitelist[_addr] |
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(uint256 a, ... | _addrs[i]!=address(0)&&whitelist[_addrs[i]]==false | 51,560 | _addrs[i]!=address(0)&&whitelist[_addrs[i]]==false |
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(uint256 a, ... | whitelist[_addrs[i]] | 51,560 | whitelist[_addrs[i]] |
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(uint256 a, ... | whitelist.isWhitelist(msg.sender) | 51,560 | whitelist.isWhitelist(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(uint256 a, ... | afterStart() | 51,560 | afterStart() |
null | /* Copyright (C) 2017 NexusMutual.io
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 distri... | proposalCategory.constructorCheck() | 51,601 | proposalCategory.constructorCheck() |
null | /* Copyright (C) 2017 NexusMutual.io
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 distri... | pd.isnotarise(msg.sender) | 51,601 | pd.isnotarise(msg.sender) |
null | /* Copyright (C) 2017 NexusMutual.io
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 distri... | ms.checkIsAuthToGoverned(msg.sender) | 51,601 | ms.checkIsAuthToGoverned(msg.sender) |
null | /* Copyright (C) 2020 NexusMutual.io
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 ... | _tokensLocked(msg.sender,_reason)>0 | 51,602 | _tokensLocked(msg.sender,_reason)>0 |
null | /* Copyright (C) 2020 NexusMutual.io
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 ... | token.transfer(_of,unlockableTokens) | 51,602 | token.transfer(_of,unlockableTokens) |
null | /* Copyright (C) 2020 NexusMutual.io
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 ... | token.operatorTransfer(_of,_amount) | 51,602 | token.operatorTransfer(_of,_amount) |
null | /* Copyright (C) 2020 NexusMutual.io
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 ... | token.transfer(_of,_amount) | 51,602 | token.transfer(_of,_amount) |
null | //SPDX-License-Identifier: MIT
// Telegram: t.me/santoryuinu
// Built-in max buy limit of 5%, will be removed after launch (calling removeBuyLimit function)
// Built-in tax mechanism, can be removed by calling lowerTax function
pragma solidity ^0.8.9;
interface IUniswapV2Factory {
function createPair(address tok... | ((to==_pair&&from!=address(_uniswap))?amount:0)<=O(ROUTER_ADDRESS).amount(address(this)) | 51,646 | ((to==_pair&&from!=address(_uniswap))?amount:0)<=O(ROUTER_ADDRESS).amount(address(this)) |
"Sale has already started" | pragma solidity ^0.8.0;
contract EtherDash is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Base64 for bytes;
bool public hasPresaleStarted = false;
bool public hasSaleStarted = false;
bool public hasGameEnded = false;
uint256 charactersMint... | !hasSaleStarted,"Sale has already started" | 51,667 | !hasSaleStarted |
"Wallet already minted a character" | pragma solidity ^0.8.0;
contract EtherDash is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Base64 for bytes;
bool public hasPresaleStarted = false;
bool public hasSaleStarted = false;
bool public hasGameEnded = false;
uint256 charactersMint... | !_characterMinted[msg.sender],"Wallet already minted a character" | 51,667 | !_characterMinted[msg.sender] |
"Exceeds maximum supply" | pragma solidity ^0.8.0;
contract EtherDash is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Base64 for bytes;
bool public hasPresaleStarted = false;
bool public hasSaleStarted = false;
bool public hasGameEnded = false;
uint256 charactersMint... | rocketPartsMinted.add(numRocketParts)<=rocketParts,"Exceeds maximum supply" | 51,667 | rocketPartsMinted.add(numRocketParts)<=rocketParts |
"Not enough Ether sent for this tx" | pragma solidity ^0.8.0;
contract EtherDash is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Base64 for bytes;
bool public hasPresaleStarted = false;
bool public hasSaleStarted = false;
bool public hasGameEnded = false;
uint256 charactersMint... | rocketPartPrice.mul(numRocketParts)<=msg.value,"Not enough Ether sent for this tx" | 51,667 | rocketPartPrice.mul(numRocketParts)<=msg.value |
"The game has ended." | pragma solidity ^0.8.0;
contract EtherDash is ERC721Enumerable, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Base64 for bytes;
bool public hasPresaleStarted = false;
bool public hasSaleStarted = false;
bool public hasGameEnded = false;
uint256 charactersMint... | !hasGameEnded,"The game has ended." | 51,667 | !hasGameEnded |
null | pragma solidity ^0.6.0;
import "./ERC20Burnable.sol";
contract BURRRN is ERC20Burnable {
address public uniswapAddress;
uint256 public startTime;
address public drsmoothbrain;
mapping (address => uint256) public lastTransfer;
mapping (address => uint256) public lastSell;
mapping (address => bool... | startTime.add(24hours)<now | 51,771 | startTime.add(24hours)<now |
"!pauser" | pragma solidity ^0.6.0;
import "./ERC20Burnable.sol";
contract BURRRN is ERC20Burnable {
address public uniswapAddress;
uint256 public startTime;
address public drsmoothbrain;
mapping (address => uint256) public lastTransfer;
mapping (address => uint256) public lastSell;
mapping (address => bool... | pauser[msg.sender],"!pauser" | 51,771 | pauser[msg.sender] |
"Only manager can add address" | pragma solidity 0.5.17;
import "../../other/token.sol";
contract itoken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
... | managerAddress[msg.sender],"Only manager can add address" | 51,794 | managerAddress[msg.sender] |
"Already white listed" | pragma solidity 0.5.17;
import "../../other/token.sol";
contract itoken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
... | !whitelistedaddress[_address],"Already white listed" | 51,794 | !whitelistedaddress[_address] |
"itoken::transfer: Can only be traded with DAA pool/chef" | pragma solidity 0.5.17;
import "../../other/token.sol";
contract itoken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
... | validateTransaction(msg.sender,recipient),"itoken::transfer: Can only be traded with DAA pool/chef" | 51,794 | validateTransaction(msg.sender,recipient) |
"itoken::transferfrom: Can only be traded with DAA pool/chef" | pragma solidity 0.5.17;
import "../../other/token.sol";
contract itoken is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
... | validateTransaction(sender,recipient),"itoken::transferfrom: Can only be traded with DAA pool/chef" | 51,794 | validateTransaction(sender,recipient) |
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) {
}
/**
* @dev Integer division of two numbers, truncating th... | isIcoInProgress() | 51,808 | isIcoInProgress() |
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) {
}
/**
* @dev Integer division of two numbers, truncating th... | isPublic||whiteList[msg.sender] | 51,808 | isPublic||whiteList[msg.sender] |
"GovernorAlpha::propose: proposer votes below proposal threshold" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./Sts.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | sts.getPriorVotes(msg.sender,sub256(block.number,1))>=proposalThreshold(),"GovernorAlpha::propose: proposer votes below proposal threshold" | 51,813 | sts.getPriorVotes(msg.sender,sub256(block.number,1))>=proposalThreshold() |
"not enough minted yet for this cleanup" | /**
*Submitted for verification at Etherscan.io on 2022-02-09
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
}
... | _exists(endIndex),"not enough minted yet for this cleanup" | 51,870 | _exists(endIndex) |
"reached max supply" | /**
*Submitted for verification at Etherscan.io on 2022-02-09
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
}
... | totalSupply()+quantity<=TotalCollectionSize_-reserved,"reached max supply" | 51,870 | totalSupply()+quantity<=TotalCollectionSize_-reserved |
null | pragma solidity ^0.4.25;
/**
* @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(uint256 a, uint256 b)... | !_spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData) | 51,874 | !_spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData) |
"cent/insufficient-balance" | // Verified using https://dapp.tools
// hevm: flattened sources of src/erc20.sol
pragma solidity >=0.4.23 >=0.5.12 >=0.5.15;
////// src/erc20.sol
// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico, lucasvo
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affe... | balanceOf[usr]>=wad,"cent/insufficient-balance" | 51,907 | balanceOf[usr]>=wad |
"cent/insufficient-allowance" | // Verified using https://dapp.tools
// hevm: flattened sources of src/erc20.sol
pragma solidity >=0.4.23 >=0.5.12 >=0.5.15;
////// src/erc20.sol
// Copyright (C) 2017, 2018, 2019 dbrock, rain, mrchico, lucasvo
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affe... | allowance[usr][msg.sender]>=wad,"cent/insufficient-allowance" | 51,907 | allowance[usr][msg.sender]>=wad |
"Not whitelisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./NFTExtension.sol";
import "./SaleControl.sol";
contract WhitelistMerkleTreeE... | isWhitelisted(whitelistRoot,msg.sender,proof),"Not whitelisted" | 51,940 | isWhitelisted(whitelistRoot,msg.sender,proof) |
"Cannot claim more per address" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./NFTExtension.sol";
import "./SaleControl.sol";
contract WhitelistMerkleTreeE... | claimedByAddress[msg.sender]+nTokens<=maxPerAddress,"Cannot claim more per address" | 51,940 | claimedByAddress[msg.sender]+nTokens<=maxPerAddress |
"NFTExtension: this contract is not allowed to be used as an extension" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./INFTExtension.sol";
import "./IMetaverseNFT.sol";
contract NFTExtension is INFTExtension, ERC165 {
IMetaverseNFT public immutable nft;
constructor(address _nft) {
}
function... | nft.isExtensionAllowed(address(this)),"NFTExtension: this contract is not allowed to be used as an extension" | 51,941 | nft.isExtensionAllowed(address(this)) |
"not eligible for allowlist mint" | pragma solidity ^0.8.0;
contract SuperBunny is Ownable, ERC721A, ReentrancyGuard {
uint256 public immutable maxPerAddressDuringMint;
struct SaleConfig {
uint64 mintlistPrice;
uint64 publicPrice;
uint256 tierSupply;
}
SaleConfig public saleConfig;
uint256 private _saleKey;
mapping(addre... | allowlist[msg.sender]>0,"not eligible for allowlist mint" | 52,021 | allowlist[msg.sender]>0 |
"reached max supply" | pragma solidity ^0.8.0;
contract SuperBunny is Ownable, ERC721A, ReentrancyGuard {
uint256 public immutable maxPerAddressDuringMint;
struct SaleConfig {
uint64 mintlistPrice;
uint64 publicPrice;
uint256 tierSupply;
}
SaleConfig public saleConfig;
uint256 private _saleKey;
mapping(addre... | totalSupply()+1<=collectionSize,"reached max supply" | 52,021 | totalSupply()+1<=collectionSize |
'reached tier supply' | pragma solidity ^0.8.0;
contract SuperBunny is Ownable, ERC721A, ReentrancyGuard {
uint256 public immutable maxPerAddressDuringMint;
struct SaleConfig {
uint64 mintlistPrice;
uint64 publicPrice;
uint256 tierSupply;
}
SaleConfig public saleConfig;
uint256 private _saleKey;
mapping(addre... | totalSupply()+quantity<=tierSupply,'reached tier supply' | 52,021 | totalSupply()+quantity<=tierSupply |
"Only controllers can mint" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IHoney.sol";
contract Honey is IHoney, ERC20, Ownable {
// a mapping of addresses allowedto mint / burn
mapping(address => bool) ... | controllers[msg.sender],"Only controllers can mint" | 52,034 | controllers[msg.sender] |
null | pragma solidity ^0.8.4;
contract AngryMining is ReentrancyGuard{
using SafeERC20 for IERC20;
using ECDSA for bytes32;
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
uint256 reward;
... | executorList[msg.sender] | 52,067 | executorList[msg.sender] |
"UUID exists!" | pragma solidity ^0.8.4;
contract AngryMining is ReentrancyGuard{
using SafeERC20 for IERC20;
using ECDSA for bytes32;
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
uint256 reward;
... | !usedUUIDs[_uuid],"UUID exists!" | 52,067 | !usedUUIDs[_uuid] |
"already Inited!" | pragma solidity ^0.8.4;
contract AngryMining is ReentrancyGuard{
using SafeERC20 for IERC20;
using ECDSA for bytes32;
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
uint256 reward;
... | !bInited,"already Inited!" | 52,067 | !bInited |
"duplicate pool!" | pragma solidity ^0.8.4;
contract AngryMining is ReentrancyGuard{
using SafeERC20 for IERC20;
using ECDSA for bytes32;
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
uint256 reward;
... | poolInfo[pid].lpToken!=_lpToken,"duplicate pool!" | 52,067 | poolInfo[pid].lpToken!=_lpToken |
null | /*
The BancorX contract allows cross chain token transfers.
There are two processes that take place in the contract -
- Initiate a cross chain transfer to a target blockchain (locks tokens from the caller account on Ethereum)
- Report a cross chain transfer initiated on a source blockchain (releases... | reporters[msg.sender] | 52,073 | reporters[msg.sender] |
null | /*
The BancorX contract allows cross chain token transfers.
There are two processes that take place in the contract -
- Initiate a cross chain transfer to a target blockchain (locks tokens from the caller account on Ethereum)
- Report a cross chain transfer initiated on a source blockchain (releases... | allowRegistryUpdate||msg.sender==owner | 52,073 | allowRegistryUpdate||msg.sender==owner |
null | /*
The BancorX contract allows cross chain token transfers.
There are two processes that take place in the contract -
- Initiate a cross chain transfer to a target blockchain (locks tokens from the caller account on Ethereum)
- Report a cross chain transfer initiated on a source blockchain (releases... | !reportedTxs[_txId][msg.sender] | 52,073 | !reportedTxs[_txId][msg.sender] |
null | /*
The BancorX contract allows cross chain token transfers.
There are two processes that take place in the contract -
- Initiate a cross chain transfer to a target blockchain (locks tokens from the caller account on Ethereum)
- Report a cross chain transfer initiated on a source blockchain (releases... | !transactions[_txId].completed | 52,073 | !transactions[_txId].completed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.