comment stringlengths 1 211 β | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Max presale amount exceeded." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | isValidPrivateSaleAmount(collector,amount),"Max presale amount exceeded." | 11,065 | isValidPrivateSaleAmount(collector,amount) |
"Cannot oversell" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | isOversell(amount),"Cannot oversell" | 11,065 | isOversell(amount) |
null | pragma solidity ^0.4.24;
library SafeMath {
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
if (_a == 0) {
return 0;
}
uint256 c = _a * _b;
require(<FILL_ME>)
return c;
}
function div(uint256 _a, uint256 _b) internal pure r... | c/_a==_b | 11,068 | c/_a==_b |
Errors.PLP_INVALID_PERMISSION_ADMIN | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isPermissionAdminOf(user,msg.sender),Errors.PLP_INVALID_PERMISSION_ADMIN | 11,084 | _isPermissionAdminOf(user,msg.sender) |
Errors.PLP_LIQUIDATOR_UNAUTHORIZED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(msg.sender,DataTypes.Roles.LIQUIDATOR),Errors.PLP_LIQUIDATOR_UNAUTHORIZED | 11,084 | _isInRole(msg.sender,DataTypes.Roles.LIQUIDATOR) |
Errors.PLP_CALLER_NOT_STABLE_RATE_MANAGER | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(msg.sender,DataTypes.Roles.STABLE_RATE_MANAGER),Errors.PLP_CALLER_NOT_STABLE_RATE_MANAGER | 11,084 | _isInRole(msg.sender,DataTypes.Roles.STABLE_RATE_MANAGER) |
Errors.PLP_BORROWER_UNAUTHORIZED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(msg.sender,DataTypes.Roles.BORROWER),Errors.PLP_BORROWER_UNAUTHORIZED | 11,084 | _isInRole(msg.sender,DataTypes.Roles.BORROWER) |
Errors.PLP_INVALID_PERMISSION_ADMIN | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _permissionAdminValid(msg.sender),Errors.PLP_INVALID_PERMISSION_ADMIN | 11,084 | _permissionAdminValid(msg.sender) |
Errors.PLP_BORROWER_UNAUTHORIZED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(onBehalfOf,DataTypes.Roles.BORROWER),Errors.PLP_BORROWER_UNAUTHORIZED | 11,084 | _isInRole(onBehalfOf,DataTypes.Roles.BORROWER) |
Errors.PLP_INVALID_PERMISSION_ADMIN | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _permissionAdminValid(onBehalfOf),Errors.PLP_INVALID_PERMISSION_ADMIN | 11,084 | _permissionAdminValid(onBehalfOf) |
Errors.VL_TRANSFER_NOT_ALLOWED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(from,DataTypes.Roles.DEPOSITOR),Errors.VL_TRANSFER_NOT_ALLOWED | 11,084 | _isInRole(from,DataTypes.Roles.DEPOSITOR) |
Errors.VL_TRANSFER_NOT_ALLOWED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(to,DataTypes.Roles.DEPOSITOR),Errors.VL_TRANSFER_NOT_ALLOWED | 11,084 | _isInRole(to,DataTypes.Roles.DEPOSITOR) |
Errors.PLP_DEPOSITOR_UNAUTHORIZED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(user,DataTypes.Roles.DEPOSITOR)&&((user==msg.sender)||_isInRole(msg.sender,DataTypes.Roles.DEPOSITOR)),Errors.PLP_DEPOSITOR_UNAUTHORIZED | 11,084 | _isInRole(user,DataTypes.Roles.DEPOSITOR)&&((user==msg.sender)||_isInRole(msg.sender,DataTypes.Roles.DEPOSITOR)) |
Errors.PLP_BORROWER_UNAUTHORIZED | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _isInRole(user,DataTypes.Roles.BORROWER)&&((user==msg.sender)||_isInRole(msg.sender,DataTypes.Roles.BORROWER)),Errors.PLP_BORROWER_UNAUTHORIZED | 11,084 | _isInRole(user,DataTypes.Roles.BORROWER)&&((user==msg.sender)||_isInRole(msg.sender,DataTypes.Roles.BORROWER)) |
Errors.PLP_INVALID_PERMISSION_ADMIN | // SPDX-License-Identifier: agpl-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {LendingPool} from './LendingPool.sol';
import {IPermissionManager} from '../../interfaces/IPermissionManager.sol';
import {IPermissionedLendingPool} from '../../interfaces/IPermissionedLendingPool.sol';
import {ILend... | _permissionAdminValid(user),Errors.PLP_INVALID_PERMISSION_ADMIN | 11,084 | _permissionAdminValid(user) |
"insufficient balance." | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | balanceOf(msg.sender)>=transferAmount,"insufficient balance." | 11,125 | balanceOf(msg.sender)>=transferAmount |
"insufficient balance." | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | balanceOf(sender)>=transferAmount,"insufficient balance." | 11,125 | balanceOf(sender)>=transferAmount |
null | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | balanceOf(msg.sender)>=amount | 11,125 | balanceOf(msg.sender)>=amount |
"This account is already in whitelist." | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | whitelist[account]==false,"This account is already in whitelist." | 11,125 | whitelist[account]==false |
"This account is not in whitelist." | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | whitelist[account],"This account is not in whitelist." | 11,125 | whitelist[account] |
"This time is only for people who are in whitelist." | pragma solidity ^0.7.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address i... | whitelist[msg.sender],"This time is only for people who are in whitelist." | 11,125 | whitelist[msg.sender] |
"ERC20: Caller Locked !" | pragma solidity ^0.5.11;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
/**
... | LockList[msg.sender]==false,"ERC20: Caller Locked !" | 11,141 | LockList[msg.sender]==false |
"ERC20: Sender Locked !" | pragma solidity ^0.5.11;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
/**
... | LockList[_from]==false,"ERC20: Sender Locked !" | 11,141 | LockList[_from]==false |
"ERC20: Receipient Locked !" | pragma solidity ^0.5.11;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
/**
... | LockList[_to]==false,"ERC20: Receipient Locked !" | 11,141 | LockList[_to]==false |
"ERC20: Owner Locked !" | pragma solidity ^0.5.11;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
/**
... | LockList[Account]==false,"ERC20: Owner Locked !" | 11,141 | LockList[Account]==false |
null | pragma solidity ^0.5.11;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
}
/**
... | balanceOf[msg.sender]!=0x0 | 11,141 | balanceOf[msg.sender]!=0x0 |
"Ether value sent is not correct" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | itemPrice*_howMany<=msg.value,"Ether value sent is not correct" | 11,198 | itemPrice*_howMany<=msg.value |
"Minting would exceed max supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | supply+_howMany<=MAX_SUPPLY,"Minting would exceed max supply" | 11,198 | supply+_howMany<=MAX_SUPPLY |
"Sorry, not whitelisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | allowlist[_msgSender()],"Sorry, not whitelisted" | 11,198 | allowlist[_msgSender()] |
"Wallet limit exceeds" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | numberMinted(_msgSender())+_howMany<=walletLimit,"Wallet limit exceeds" | 11,198 | numberMinted(_msgSender())+_howMany<=walletLimit |
"Public sale has already begun" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | !isSaleActive,"Public sale has already begun" | 11,198 | !isSaleActive |
"Pre sale has already begun" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | !isPreSaleActive,"Pre sale has already begun" | 11,198 | !isPreSaleActive |
"Transfer failed." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./ERC721A.sol";
contract TheAtlasLyonsClub is Ownable, ERC721A, ReentrancyGuard {
uint256 public constant MAX_SUPPLY = 2022;
... | success1&&success2&&success3&&success4,"Transfer failed." | 11,198 | success1&&success2&&success3&&success4 |
null | pragma solidity ^0.4.19;
/**
* Copyright (C) VEGIG Crypto
* All rights reserved.
* *
* This code is adapted from Fixed supply token contract
* (c) BokkyPooBah 2017. The MIT Licence.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwar... | balances[_to]+_amount>balances[_to] | 11,222 | balances[_to]+_amount>balances[_to] |
null | pragma solidity ^0.4.19;
/**
* Copyright (C) VEGIG Crypto
* All rights reserved.
* *
* This code is adapted from Fixed supply token contract
* (c) BokkyPooBah 2017. The MIT Licence.
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwar... | (_amount==0)||(allowed[msg.sender][_spender]==0) | 11,222 | (_amount==0)||(allowed[msg.sender][_spender]==0) |
"v1 pet claimed already" | // SPDX-License-Identifier: MIT
//
// Spirit Orb Pets v1 PFP NFT
// Developed by: Heartfelt Games LLC
//
// This is a PFP NFT that can be bought with Care Tokens.
// The PFP represents the same v1 pet that minted it so the
// owner can proudly display their v1 pet as their PFP.
//
pragma solidity ^0.8.10;
im... | !_exists(tokenIds[i]),"v1 pet claimed already" | 11,274 | !_exists(tokenIds[i]) |
null | pragma solidity ^0.4.23;
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view returns (bool);
}
contract DSAuthEvents {
event LogSetAuthority (address indexed authority);
event LogSetOwner (address indexed owner);
}
contract DSAuth is DSAuthEv... | isAuthorized(msg.sender,msg.sig) | 11,357 | isAuthorized(msg.sender,msg.sig) |
null | pragma solidity ^0.4.23;
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view returns (bool);
}
contract DSAuthEvents {
event LogSetAuthority (address indexed authority);
event LogSetOwner (address indexed owner);
}
contract DSAuth is DSAuthEv... | approvals[src][msg.sender]>=value | 11,357 | approvals[src][msg.sender]>=value |
null | pragma solidity ^0.4.23;
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view returns (bool);
}
contract DSAuthEvents {
event LogSetAuthority (address indexed authority);
event LogSetOwner (address indexed owner);
}
contract DSAuth is DSAuthEv... | balances[src]>=value | 11,357 | balances[src]>=value |
null | contract IncreasingBonusCrowdsale is DefaultCrowdsale {
uint256[] public bonusRanges;
uint256[] public bonusValues;
constructor(
uint256 _startTime,
uint256 _endTime,
uint256 _rate,
address _wallet,
uint256 _tokenCap,
uint256 _minimumContribution,
address _token,
address... | _bonusValues[i]>_bonusValues[i+1] | 11,365 | _bonusValues[i]>_bonusValues[i+1] |
null | contract IncreasingBonusCrowdsale is DefaultCrowdsale {
uint256[] public bonusRanges;
uint256[] public bonusValues;
constructor(
uint256 _startTime,
uint256 _endTime,
uint256 _rate,
address _wallet,
uint256 _tokenCap,
uint256 _minimumContribution,
address _token,
address... | _bonusRanges[i]>_bonusRanges[i+1] | 11,365 | _bonusRanges[i]>_bonusRanges[i+1] |
null | //SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface IERC20 {
function totalSupply() external view returns(uint);
function balanceOf(address account) external view returns(uint);
function transfer(address recipient, uint amount) external returns(bool);
function allowance(address owner, addre... | allowance[_from][msg.sender]>=_value | 11,394 | allowance[_from][msg.sender]>=_value |
null | //SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface IERC20 {
function totalSupply() external view returns(uint);
function balanceOf(address account) external view returns(uint);
function transfer(address recipient, uint amount) external returns(bool);
function allowance(address owner, addre... | balanceOf[msg.sender]>=total | 11,394 | balanceOf[msg.sender]>=total |
"Only one in a hundred accounts should be able to do this" | //SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface IERC20 {
function totalSupply() external view returns(uint);
function balanceOf(address account) external view returns(uint);
function transfer(address recipient, uint amount) external returns(bool);
function allowance(address owner, addre... | isAccountValid(msg.sender)==true,"Only one in a hundred accounts should be able to do this" | 11,394 | isAccountValid(msg.sender)==true |
"rm3" | /*
ERC20BaseRewardModule
https://github.com/gysr-io/core
SPDX-License-Identifier: MIT
*/
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IRewardModule.sol";
/**
* @title ERC20 base reward module
*
*... | _fundings[token].length<MAX_ACTIVE_FUNDINGS,"rm3" | 11,407 | _fundings[token].length<MAX_ACTIVE_FUNDINGS |
"CommonERC20: minting is finished" | pragma solidity ^0.7.0;
/**
* @title CommonERC20
* @dev Implementation of the CommonERC20
*/
contract CommonERC20 is ERC20Capped, ERC20Burnable, Ownable, ServicePayer {
// indicates if minting is finished
bool private _mintingFinished = false;
/**
* @dev Emitted during finish minting
... | !_mintingFinished,"CommonERC20: minting is finished" | 11,562 | !_mintingFinished |
"TOKEN: This account cannot send tokens until trading is enabled" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uin... | preTrader[from],"TOKEN: This account cannot send tokens until trading is enabled" | 11,592 | preTrader[from] |
null | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uin... | _msgSender()==_marketingAddress | 11,592 | _msgSender()==_marketingAddress |
"TOKEN: Already enabled." | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uin... | preTrader[account]!=allowed,"TOKEN: Already enabled." | 11,592 | preTrader[account]!=allowed |
"no-buck-in-uni" | pragma solidity ^0.5.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
function decimals() external view returns (uint8);
/**
* @dev Returns the amount of tokens in existence.... | UniswapV2PairLike(gem).token0()==buck||UniswapV2PairLike(gem).token1()==buck,"no-buck-in-uni" | 11,648 | UniswapV2PairLike(gem).token0()==buck||UniswapV2PairLike(gem).token1()==buck |
"no-fl-in-uni" | pragma solidity ^0.5.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
function decimals() external view returns (uint8);
/**
* @dev Returns the amount of tokens in existence.... | UniswapV2PairLike(gem).token0()==gov||UniswapV2PairLike(gem).token1()==gov,"no-fl-in-uni" | 11,648 | UniswapV2PairLike(gem).token0()==gov||UniswapV2PairLike(gem).token1()==gov |
"spell-already-cast" | pragma solidity ^0.5.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
function decimals() external view returns (uint8);
/**
* @dev Returns the amount of tokens in existence.... | !done,"spell-already-cast" | 11,648 | !done |
"Must have scheduler role to add schedule. This must be our GNOSIS safe address only!" | // contracts/RealmTeamVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ut... | hasRole(SCHEDULER_ROLE,_msgSender()),"Must have scheduler role to add schedule. This must be our GNOSIS safe address only!" | 11,681 | hasRole(SCHEDULER_ROLE,_msgSender()) |
"Only admin function" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | admins[msg.sender]==true,"Only admin function" | 11,713 | admins[msg.sender]==true |
"You are not in the list" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | isWhitelisted[msg.sender],"You are not in the list" | 11,713 | isWhitelisted[msg.sender] |
"Cant migrate not enough funds" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | tokenToMigrateAddress.balanceOf(msg.sender)>0,"Cant migrate not enough funds" | 11,713 | tokenToMigrateAddress.balanceOf(msg.sender)>0 |
"Only admin function" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | admins[msg.sender],"Only admin function" | 11,713 | admins[msg.sender] |
null | pragma solidity ^0.4.24;
/*
https://donutchain.io/
WARNING
All users are forbidden to interact with this contract
if this contract is inconflict with userβs local regulations and laws.
DonutChain - is a game designed to explore human behavior
via token redistribution through open source smart cont... | balanceOf(msg.sender)>=_amount | 11,762 | balanceOf(msg.sender)>=_amount |
null | pragma solidity ^0.4.26;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | balances[owner].sub(tokens)>0 | 11,764 | balances[owner].sub(tokens)>0 |
"CODE_USED" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | !_hashes[codeHash],"CODE_USED" | 11,774 | !_hashes[codeHash] |
"MAX_CODES_CLAIMED" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | codeCounter++<IC_CODE,"MAX_CODES_CLAIMED" | 11,774 | codeCounter++<IC_CODE |
"INVALID_TRANSACTION" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | verifyCode(codeHash,signature),"INVALID_TRANSACTION" | 11,774 | verifyCode(codeHash,signature) |
"MAX_SUPPLY_REACHED" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | totalSupply+amount<=IC_MAX,"MAX_SUPPLY_REACHED" | 11,774 | totalSupply+amount<=IC_MAX |
"MAX_PRIVATE_SALE" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | privateCounter+amount<=IC_MEMBERS,"MAX_PRIVATE_SALE" | 11,774 | privateCounter+amount<=IC_MEMBERS |
"MAX_PRIVATE_SALE" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | purchases[msg.sender]+amount<=maxAmount,"MAX_PRIVATE_SALE" | 11,774 | purchases[msg.sender]+amount<=maxAmount |
"INVALID_TRANSACTION" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | verifySignature(amount,bytes32(maxAmount),signature,1),"INVALID_TRANSACTION" | 11,774 | verifySignature(amount,bytes32(maxAmount),signature,1) |
"NONCE_USED" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | !_hashes[nonce],"NONCE_USED" | 11,774 | !_hashes[nonce] |
"MAX_ALLOW_SALE" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | allowListCounter+amount+privateCounter<=IC_COMMUNITY+IC_MEMBERS,"MAX_ALLOW_SALE" | 11,774 | allowListCounter+amount+privateCounter<=IC_COMMUNITY+IC_MEMBERS |
"INVALID_TRANSACTION" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | verifySignature(amount,nonce,signature,2),"INVALID_TRANSACTION" | 11,774 | verifySignature(amount,nonce,signature,2) |
"MAX_PUBLIC_SALE" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | totalSupply+amount-codeCounter<=IC_MAX-IC_CODE,"MAX_PUBLIC_SALE" | 11,774 | totalSupply+amount-codeCounter<=IC_MAX-IC_CODE |
"INVALID_TRANSACTION" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | verifySignature(amount,nonce,signature,3),"INVALID_TRANSACTION" | 11,774 | verifySignature(amount,nonce,signature,3) |
"TOKEN_DOES_NOT_EXIST" | // SPDX-License-Identifier: MIT
/*
888888888 888888888 888888888
8888888888888 8888888888888 8888888888888
88888888888888888 88888888888888888 88888888888888888
8888888888888888888 8888888888888888888 8888888888888888888
8888888 8888888 8888888 8888888 88888... | _exists(_id),"TOKEN_DOES_NOT_EXIST" | 11,774 | _exists(_id) |
"unknown market signer" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | marketSigners[detail.signer],"unknown market signer" | 11,841 | marketSigners[detail.signer] |
"offer signature error" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isSignatureValid(sigDetail,keccak256(abi.encode(detail)),detail.signer),"offer signature error" | 11,841 | isSignatureValid(sigDetail,keccak256(abi.encode(detail)),detail.signer) |
"intention hash does not match" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | keccak256(encodedInt)==detail.intentionHash,"intention hash does not match" | 11,841 | keccak256(encodedInt)==detail.intentionHash |
"intention signature error" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isSignatureValid(sigIntent,keccak256(encodedInt),intent.user),"intention signature error" | 11,841 | isSignatureValid(sigIntent,keccak256(encodedInt),intent.user) |
"not auction" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isAuction(id),"not auction" | 11,841 | isAuction(id) |
"not open" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isStatusOpen(id),"not open" | 11,841 | isStatusOpen(id) |
"signature error" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isSignatureValid(signature,keccak256(abi.encode(req)),req.creator),"signature error" | 11,841 | isSignatureValid(signature,keccak256(abi.encode(req)),req.creator) |
"inventoryId already exists" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | !hasInv(id),"inventoryId already exists" | 11,841 | !hasInv(id) |
"not open buy" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isBuy(id)&&isStatusOpen(id),"not open buy" | 11,841 | isBuy(id)&&isStatusOpen(id) |
"caller does not own token" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | t.ownerOf(p.tokenId)==caller,"caller does not own token" | 11,841 | t.ownerOf(p.tokenId)==caller |
"id does not exist" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isBuy(id),"id does not exist" | 11,841 | isBuy(id) |
"bundle not approved" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | isBundleApproved(id,seller),"bundle not approved" | 11,841 | isBundleApproved(id,seller) |
"buy offer expired" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | !isExpired(id),"buy offer expired" | 11,841 | !isExpired(id) |
"cannot use native token" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | !_isNative(currency),"cannot use native token" | 11,841 | !_isNative(currency) |
"auction still going" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | inventories[id].deadline<block.timestamp,"auction still going" | 11,841 | inventories[id].deadline<block.timestamp |
"no inventory or state error" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | hasInv(id)&&inv.status==STATUS_DONE,"no inventory or state error" | 11,841 | hasInv(id)&&inv.status==STATUS_DONE |
"coupon already spent" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | !couponSpent[id],"coupon already spent" | 11,841 | !couponSpent[id] |
"no inventory" | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IWETH is IERC20 {
function deposit() external payable;
function withdraw(uint256 wad) external;
}
interface IMintable {
function mint(address to, bytes memory... | hasInv(invId),"no inventory" | 11,841 | hasInv(invId) |
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, ... | allocations[_recipient].totalAllocated==0&&_totalAllocated>0 | 11,878 | allocations[_recipient].totalAllocated==0&&_totalAllocated>0 |
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, ... | SOLA.transfer(_recipient[i],250*decimalFactor) | 11,878 | SOLA.transfer(_recipient[i],250*decimalFactor) |
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, ... | allocations[_recipient].amountClaimed<allocations[_recipient].totalAllocated | 11,878 | allocations[_recipient].amountClaimed<allocations[_recipient].totalAllocated |
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, ... | SOLA.transfer(_recipient,tokensToTransfer) | 11,878 | SOLA.transfer(_recipient,tokensToTransfer) |
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, ... | token.transfer(_recipient,balance) | 11,878 | token.transfer(_recipient,balance) |
"Not enough NFTs left!" | // Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contra... | totalMinted.add(_count)<=MAX_SUPPLY,"Not enough NFTs left!" | 11,894 | totalMinted.add(_count)<=MAX_SUPPLY |
"Sale would exceed max balance" | // Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contra... | balanceOf(msg.sender)+_count<=maxBalance,"Sale would exceed max balance" | 11,894 | balanceOf(msg.sender)+_count<=maxBalance |
"Not enough NFTs left to reserve" | // Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contra... | totalMinted.add(2)<=MAX_SUPPLY,"Not enough NFTs left to reserve" | 11,894 | totalMinted.add(2)<=MAX_SUPPLY |
"Needs to be an allowed minter" | // SPDX-License-Identifier: GPL-3.0
/**
βββββββββββββ ββββββββββββββββββββββββββββ
βββββββββββββ ββββββββββββββββββββββββββββ
ββββββββββββββ
ββββββββββββββ
*/
pragma solidity 0.8.6;
import {ERC721Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import {IERC2981Upgradeable, IE... | _isAllowedToMint(),"Needs to be an allowed minter" | 11,966 | _isAllowedToMint() |
"block already stored" | /***********************************************************
* This file is part of the Slock.it IoT Layer. *
* The Slock.it IoT Layer contains: *
* - USN (Universal Sharing Network) *
* - INCUBED (Trustless INcentivized remote Node Network) *
***************... | blockhashMapping[bnr]==0x0,"block already stored" | 11,984 | blockhashMapping[bnr]==0x0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.