comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Exceeded giveaway supply" | // contracts/Ethersparks.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
// Inspired from BGANPUNKS V2 (bastardganpunks.club) & Chubbies
contract Ethersparks is ERC... | totalSupply().add(numEthersparks)<=60,"Exceeded giveaway supply" | 49,519 | totalSupply().add(numEthersparks)<=60 |
"Manager has already been set" | pragma solidity 0.5.16;
/// @title GasToken Refund Module - Allows to execute transactions using Gas Tokens.
/// @author Emiliano Bonassi - <bonassi.emiliano@gmail.com>
contract GasTokenRefundModuleV1 is Module {
using SafeMath for uint256;
string public constant NAME = "GasToken Refund Module";
strin... | address(manager)==address(0),"Manager has already been set" | 49,541 | address(manager)==address(0) |
"Method can only be called by an owner" | pragma solidity 0.5.16;
/// @title GasToken Refund Module - Allows to execute transactions using Gas Tokens.
/// @author Emiliano Bonassi - <bonassi.emiliano@gmail.com>
contract GasTokenRefundModuleV1 is Module {
using SafeMath for uint256;
string public constant NAME = "GasToken Refund Module";
strin... | OwnerManager(address(manager)).isOwner(msg.sender),"Method can only be called by an owner" | 49,541 | OwnerManager(address(manager)).isOwner(msg.sender) |
"Could not execute transaction" | pragma solidity 0.5.16;
/// @title GasToken Refund Module - Allows to execute transactions using Gas Tokens.
/// @author Emiliano Bonassi - <bonassi.emiliano@gmail.com>
contract GasTokenRefundModuleV1 is Module {
using SafeMath for uint256;
string public constant NAME = "GasToken Refund Module";
strin... | manager.execTransactionFromModule(to,value,data,Enum.Operation.Call),"Could not execute transaction" | 49,541 | manager.execTransactionFromModule(to,value,data,Enum.Operation.Call) |
"!vault" | pragma solidity ^0.6.2;
contract Strategy {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
address public want;
address public governance;
address public vaultX;
address public vaultY;
uint256 public feexe18 = 5e15;
uint256 public feey... | IVaultX(_vaultX).token()==want,"!vault" | 49,618 | IVaultX(_vaultX).token()==want |
"!vault" | pragma solidity ^0.6.2;
contract Strategy {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
address public want;
address public governance;
address public vaultX;
address public vaultY;
uint256 public feexe18 = 5e15;
uint256 public feey... | IVaultY(_vaultY).token()==want,"!vault" | 49,618 | IVaultY(_vaultY).token()==want |
"not enough reserve" | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | (reservePerArtist[artist]-numberOfTokens)>=0,"not enough reserve" | 49,663 | (reservePerArtist[artist]-numberOfTokens)>=0 |
"no more editions left" | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | amountMintedPerArtist[artist]+numberOfTokens<=editionSize,"no more editions left" | 49,663 | amountMintedPerArtist[artist]+numberOfTokens<=editionSize |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(fwb).send(fwbCut) | 49,663 | payable(fwb).send(fwbCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(dev).send(devCut) | 49,663 | payable(dev).send(devCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist1).send(artistCut) | 49,663 | payable(artist1).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist2).send(artistCut) | 49,663 | payable(artist2).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist3).send(artistCut) | 49,663 | payable(artist3).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist4).send(artistCut) | 49,663 | payable(artist4).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist5).send(artistCut) | 49,663 | payable(artist5).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist6).send(artistCut) | 49,663 | payable(artist6).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist7).send(artistCut) | 49,663 | payable(artist7).send(artistCut) |
null | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | payable(artist8).send(artistCut) | 49,663 | payable(artist8).send(artistCut) |
"no more mints left" | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | amountMintedPerArtist[artist]+numberOfTokens<=(mintLimit-reservePerArtist[artist]),"no more mints left" | 49,663 | amountMintedPerArtist[artist]+numberOfTokens<=(mintLimit-reservePerArtist[artist]) |
"wallet has minted too many" | pragma solidity >=0.6.2 <0.8.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/*
:=-::--
... | amountMintedPerWallet[msg.sender].mintsPerArtist[artist]<maxPerWallet,"wallet has minted too many" | 49,663 | amountMintedPerWallet[msg.sender].mintsPerArtist[artist]<maxPerWallet |
null | pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./ERC20Interface.sol";
contract SLSToken is ERC20Interface{
using SafeMath for uint256;
using SafeMath for uint8;
event ListLog(address addr, uint8 indexed typeNo, bool active);
event Trans(address indexed fromAddr, address indexed toAddr, uint25... | !blackList[_from] | 49,760 | !blackList[_from] |
null | pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./ERC20Interface.sol";
contract SLSToken is ERC20Interface{
using SafeMath for uint256;
using SafeMath for uint8;
event ListLog(address addr, uint8 indexed typeNo, bool active);
event Trans(address indexed fromAddr, address indexed toAddr, uint25... | !blackList[_to] | 49,760 | !blackList[_to] |
null | pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./ERC20Interface.sol";
contract SLSToken is ERC20Interface{
using SafeMath for uint256;
using SafeMath for uint8;
event ListLog(address addr, uint8 indexed typeNo, bool active);
event Trans(address indexed fromAddr, address indexed toAddr, uint25... | balances[owner]>=_burnedAmount | 49,760 | balances[owner]>=_burnedAmount |
"onlyAllowed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract Allowable is Context {
mapping(address => bool) allowed;
modifier onlyAllowed() {
require(<FILL_ME>)
_;
}
function manageAllowed(address _address, bool _bool) public onlyAllowed {
}
}
| allowed[_msgSender()]==true,"onlyAllowed" | 49,782 | allowed[_msgSender()]==true |
"Invalid amount" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
interface IERC20Token {
function totalSupply() external view returns (uint256 supply);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) external retur... | (_amount>=(50ether)&&_amount<=(maxTXAmount)),"Invalid amount" | 49,798 | (_amount>=(50ether)&&_amount<=(maxTXAmount)) |
"ERC20 transfer error" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
interface IERC20Token {
function totalSupply() external view returns (uint256 supply);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) external retur... | polcToken.transferFrom(msg.sender,polcVault,_amount),"ERC20 transfer error" | 49,798 | polcToken.transferFrom(msg.sender,polcVault,_amount) |
"Not allowed" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
interface IERC20Token {
function totalSupply() external view returns (uint256 supply);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) external retur... | whitelisted[msg.sender]==true,"Not allowed" | 49,798 | whitelisted[msg.sender]==true |
"Mint exceeds max supply" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.9;
/** ______ __ __ __ __ __ ______ ______ __ __ ______ __ __
* /\ ___\ /\ \ /\ \/\ \ /\_\_\_\ /\__ _\ /\ __ \ /\ \/ / /\ ___\ /\ "-.\ \
* \ \ __\ \ \ \____ \ \ \_\ \ \/_/\_\/_ ... | amount+totalSupply()<=MAX_SUPPLY,"Mint exceeds max supply" | 49,903 | amount+totalSupply()<=MAX_SUPPLY |
null | contract BossWage {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
require(<FILL_ME>)
_... | getDividends(msg.sender,true)>0 | 49,937 | getDividends(msg.sender,true)>0 |
null | contract BossWage {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
// administrators can:
... | disabled[_for]==false | 49,937 | disabled[_for]==false |
null | contract BossWage {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
// administrators can:
... | (_dividends+_referrals)>0 | 49,937 | (_dividends+_referrals)>0 |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | whitelist[msg.sender].isWhitelisted&&!whitelist[msg.sender].hasDeposited | 50,102 | whitelist[msg.sender].isWhitelisted&&!whitelist[msg.sender].hasDeposited |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | whitelist[_address].hasDeposited | 50,102 | whitelist[_address].hasDeposited |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | block.timestamp>(stakeStart+stakeDuration) | 50,102 | block.timestamp>(stakeStart+stakeDuration) |
null | pragma solidity ^0.4.8;
/**
* @title KittyItemToken interface
*/
contract KittyItemToken {
function transfer(address, uint256) public pure returns (bool) {}
function transferAndApply(address, uint256) public pure returns (bool) {}
function balanceOf(address) public pure returns (uint256) {}
}
/**
* ... | items[_itemName].itemContract==0x0 | 50,171 | items[_itemName].itemContract==0x0 |
null | pragma solidity ^0.4.8;
/**
* @title KittyItemToken interface
*/
contract KittyItemToken {
function transfer(address, uint256) public pure returns (bool) {}
function transferAndApply(address, uint256) public pure returns (bool) {}
function balanceOf(address) public pure returns (uint256) {}
}
/**
* ... | items[_itemName].itemContract!=0x0 | 50,171 | items[_itemName].itemContract!=0x0 |
"allowance" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ISouly.sol";
import "./IReverseRegistrar.sol";
contract SoulyCuratedMinting is Ownable {
using ECDSA for bytes32;
event Minti... | _mintingAllowance[curator]>0,"allowance" | 50,172 | _mintingAllowance[curator]>0 |
"minted" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ISouly.sol";
import "./IReverseRegistrar.sol";
contract SoulyCuratedMinting is Ownable {
using ECDSA for bytes32;
event Minti... | !_minted[assetHash],"minted" | 50,172 | !_minted[assetHash] |
"signature" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./ISouly.sol";
import "./IReverseRegistrar.sol";
contract SoulyCuratedMinting is Ownable {
using ECDSA for bytes32;
event Minti... | msgHash.recover(signature)==curator,"signature" | 50,172 | msgHash.recover(signature)==curator |
null | pragma solidity 0.5.17;
contract Ownable {
// A list of owners which will be saved as a list here,
// and the values are the owner’s names.
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all ... | owners[msg.sender]==true | 50,176 | owners[msg.sender]==true |
"SZO/ERROR-already-owner" | pragma solidity 0.5.17;
contract Ownable {
// A list of owners which will be saved as a list here,
// and the values are the owner’s names.
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all ... | owners[_newOwner]==false,"SZO/ERROR-already-owner" | 50,176 | owners[_newOwner]==false |
"SZO/ERROR-NOT-OWNER-ADDRESS" | pragma solidity 0.5.17;
contract Ownable {
// A list of owners which will be saved as a list here,
// and the values are the owner’s names.
string [] ownerName;
address newOwner; // temp for confirm;
mapping (address=>bool) owners;
mapping (address=>uint256) ownerToProfile;
address owner;
// all ... | ownerToProfile[ownerAddr]>0,"SZO/ERROR-NOT-OWNER-ADDRESS" | 50,176 | ownerToProfile[ownerAddr]>0 |
"OrbsNFT: Has pending request" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
imp... | mintRequests[requestId].beneficiary==address(0),"OrbsNFT: Has pending request" | 50,231 | mintRequests[requestId].beneficiary==address(0) |
"OrbsNFT: Not enough NFTs" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
imp... | MAX_SUPPLY-totalSupply()>=pending,"OrbsNFT: Not enough NFTs" | 50,231 | MAX_SUPPLY-totalSupply()>=pending |
null | pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previ... | dateEndIco+(3weeks)>now | 50,246 | dateEndIco+(3weeks)>now |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract Lottery {
// Public variables of the token
address public owner;
string public name;
string public symbol;
uint8 public decimals =... | balanceOf[msg.sender]>=ticketPrice*ticketsAmount | 50,303 | balanceOf[msg.sender]>=ticketPrice*ticketsAmount |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract Lottery {
// Public variables of the token
address public owner;
string public name;
string public symbol;
uint8 public decimals =... | balanceOf[this]+(ticketPrice*ticketsAmount)>=balanceOf[this] | 50,303 | balanceOf[this]+(ticketPrice*ticketsAmount)>=balanceOf[this] |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract Lottery {
// Public variables of the token
address public owner;
string public name;
string public symbol;
uint8 public decimals =... | (ticketsAmount+pool.length)<=ticketMax | 50,303 | (ticketsAmount+pool.length)<=ticketMax |
'ERC721A: token already minted' | // Creator: Chiru Labs
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
... | !_exists(startTokenId),'ERC721A: token already minted' | 50,427 | !_exists(startTokenId) |
"RulerZap: _core is 0" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | address(_core)!=address(0),"RulerZap: _core is 0" | 50,587 | address(_core)!=address(0) |
"RulerZap: _router is 0" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | address(_router)!=address(0),"RulerZap: _router is 0" | 50,587 | address(_router)!=address(0) |
"RulerZap: output != _paired" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | _path[_path.length-1]==_paired,"RulerZap: output != _paired" | 50,587 | _path[_path.length-1]==_paired |
"RulerZap: input != rcToken" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | _path[0]==_rcToken,"RulerZap: input != rcToken" | 50,587 | _path[0]==_rcToken |
"RulerZap: paired transfer failed" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | paired.balanceOf(address(this))-pairedBalBefore>_rcTokenDepositAmt+_pairedDepositAmt,"RulerZap: paired transfer failed" | 50,587 | paired.balanceOf(address(this))-pairedBalBefore>_rcTokenDepositAmt+_pairedDepositAmt |
"RulerZap: pair not exist" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | address(rcToken)!=address(0),"RulerZap: pair not exist" | 50,587 | address(rcToken)!=address(0) |
"RulerZap: pair not exist" | // SPDX-License-Identifier: No License
pragma solidity ^0.8.0;
import "./ERC20/IERC20.sol";
import "./ERC20/IERC20Permit.sol";
import "./ERC20/SafeERC20.sol";
import "./interfaces/IRERC20.sol";
import "./interfaces/IRulerCore.sol";
import "./interfaces/IRouter.sol";
import "./interfaces/IRulerZap.sol";
import ... | address(rcToken)!=address(0)&&address(rrToken)!=address(0),"RulerZap: pair not exist" | 50,587 | address(rcToken)!=address(0)&&address(rrToken)!=address(0) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isAdmin(msg.sender)||isOps(msg.sender) | 50,627 | isAdmin(msg.sender)||isOps(msg.sender) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isOwner(msg.sender)||isAdmin(msg.sender) | 50,627 | isOwner(msg.sender)||isAdmin(msg.sender) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isOps(msg.sender) | 50,627 | isOps(msg.sender) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | !isOps(_adminAddress) | 50,627 | !isOps(_adminAddress) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | !isAdmin(_opsAddress) | 50,627 | !isAdmin(_opsAddress) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isOwnerOrOps(_sender)||_to==owner | 50,627 | isOwnerOrOps(_sender)||_to==owner |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | address(_tokenContract)!=address(0) | 50,627 | address(_tokenContract)!=address(0) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isOwner(msg.sender)||isRevoke(msg.sender) | 50,627 | isOwner(msg.sender)||isRevoke(msg.sender) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | isRevoke(msg.sender) | 50,627 | isRevoke(msg.sender) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | !isAdmin(_revokeAddress) | 50,627 | !isAdmin(_revokeAddress) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | !isOps(_revokeAddress) | 50,627 | !isOps(_revokeAddress) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | allocations[_account].amountGranted==0 | 50,627 | allocations[_account].amountGranted==0 |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | !tokenContract.finalized() | 50,627 | !tokenContract.finalized() |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | allocation.revokable | 50,627 | allocation.revokable |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | tokenContract.transfer(_account,_amount) | 50,627 | tokenContract.transfer(_account,_amount) |
null | pragma solidity ^0.4.17;
// ----------------------------------------------------------------------------
// Token Trustee Implementation
//
// Copyright (c) 2017 OpenST Ltd.
// https://simpletoken.org/
//
// The MIT Licence.
// ----------------------------------------------------------------------------
// ---... | tokenContract.transfer(tokenOwner,amountReclaimed) | 50,627 | tokenContract.transfer(tokenOwner,amountReclaimed) |
null | contract OwnerContract is Ownable {
event ContractControllerAdded(address contractAddress);
event ContractControllerRemoved(address contractAddress);
mapping (address => bool) internal contracts;
// New modifier to be used in place of OWNER ONLY activity
// Eventually this will be owned by a controller c... | contracts[msg.sender] | 50,712 | contracts[msg.sender] |
null | contract OwnerContract is Ownable {
event ContractControllerAdded(address contractAddress);
event ContractControllerRemoved(address contractAddress);
mapping (address => bool) internal contracts;
// New modifier to be used in place of OWNER ONLY activity
// Eventually this will be owned by a controller c... | contracts[controllerToRemove] | 50,712 | contracts[controllerToRemove] |
null | contract OwnerContract is Ownable {
event ContractControllerAdded(address contractAddress);
event ContractControllerRemoved(address contractAddress);
mapping (address => bool) internal contracts;
// New modifier to be used in place of OWNER ONLY activity
// Eventually this will be owned by a controller c... | contracts[newController]!=true | 50,712 | contracts[newController]!=true |
null | pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(ad... | erc20.transfer(msg.sender,amount) | 50,785 | erc20.transfer(msg.sender,amount) |
null | pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(ad... | erc20.transferFrom(msg.sender,address(this),authorizedAmount) | 50,785 | erc20.transferFrom(msg.sender,address(this),authorizedAmount) |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | (msg.value>0)&&(receiveEth) | 50,817 | (msg.value>0)&&(receiveEth) |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | (_newFee>=0)&&(_newFee<=100) | 50,817 | (_newFee>=0)&&(_newFee<=100) |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | (msg.sender==owner)||(msg.sender==trancheAdmin) | 50,817 | (msg.sender==owner)||(msg.sender==trancheAdmin) |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | ((msg.sender==owner)||(msg.sender==trancheAdmin))&&(addTranches==true) | 50,817 | ((msg.sender==owner)||(msg.sender==trancheAdmin))&&(addTranches==true) |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | add(_tokens,circulatingSupply)<=totalSupply | 50,817 | add(_tokens,circulatingSupply)<=totalSupply |
null | pragma solidity ^0.4.23;
contract UTU {
string public name = "Upgrade Token Utility";
uint8 public decimals = 18;
string public symbol = "UTU";
address public owner;
address public feesAddr;
address trancheAdmin;
uint256 public totalSupply = 50000000000000000000000000; // 50m e18
... | balances[_from]>=_tokens | 50,817 | balances[_from]>=_tokens |
"BaseToken: transfer is not enabled or from does not have the OPERATOR role" | pragma solidity ^0.6.0;
/**
* @title BaseToken
* @author Vittorio Minacori (https://github.com/vittominacori)
* @dev Implementation of the BaseToken
*/
contract BaseToken is ERC20Capped, ERC20Burnable, ERC1363, Roles, TokenRecover {
// indicates if minting is finished
bool private _mintingFinished =... | _transferEnabled||hasRole(OPERATOR_ROLE,from),"BaseToken: transfer is not enabled or from does not have the OPERATOR role" | 50,903 | _transferEnabled||hasRole(OPERATOR_ROLE,from) |
"the round is end" | /*
@author radarzhhua@gamil.com
*/
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 d... | !ri.isEnd,"the round is end" | 50,990 | !ri.isEnd |
null | /*
@author radarzhhua@gamil.com
*/
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 d... | ri.userKeys[_pid]<ri.keyLimits | 50,990 | ri.userKeys[_pid]<ri.keyLimits |
"Insufficient Tokens" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _balances[msg.sender]>=_stakeFee,"Insufficient Tokens" | 51,033 | _balances[msg.sender]>=_stakeFee |
"You are already staking" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _isStaked[msg.sender]==false,"You are already staking" | 51,033 | _isStaked[msg.sender]==false |
"You have stake" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _staked[msg.sender]==0,"You have stake" | 51,033 | _staked[msg.sender]==0 |
"You are not staking" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _isStaked[msg.sender]==true,"You are not staking" | 51,033 | _isStaked[msg.sender]==true |
"You don't have stake" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _staked[msg.sender]!=0,"You don't have stake" | 51,033 | _staked[msg.sender]!=0 |
"Insufficient funds" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _balances[purchaser]>=price,"Insufficient funds" | 51,033 | _balances[purchaser]>=price |
"Stake some more" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | _earned[msg.sender]>0,"Stake some more" | 51,033 | _earned[msg.sender]>0 |
"not enough time has passed" | // SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.23 <0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
fu... | block.timestamp.sub(_lastStakerTime)>=2592000,"not enough time has passed" | 51,033 | block.timestamp.sub(_lastStakerTime)>=2592000 |
"Purchase would exceed max supply of NFTs" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzep... | totalSupply().add(_numOfTokens)<=MAX_NFT,"Purchase would exceed max supply of NFTs" | 51,062 | totalSupply().add(_numOfTokens)<=MAX_NFT |
"Ether value sent is not correct" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzep... | NFTPrice.mul(_numOfTokens)==msg.value,"Ether value sent is not correct" | 51,062 | NFTPrice.mul(_numOfTokens)==msg.value |
'Genesis Mint Event is not over' | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.7.0;
import './Trib.sol';
import './Genesis.sol';
import './interfaces/IVault.sol';
import './utils/MathUtils.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import '@openzeppelin/contra... | !GME,'Genesis Mint Event is not over' | 51,089 | !GME |
"Only authorized addresses can call this function" | pragma solidity ^0.5.15;
interface ERC20CompatibleToken {
function balanceOf(address tokenOwner) external view returns (uint balance);
function allowance(address tokenOwner, address spender) external view returns (uint remaining);
function transfer (address to, uint tokens) external returns (bool succes... | authorizedWithdrawalAddress[msg.sender],"Only authorized addresses can call this function" | 51,126 | authorizedWithdrawalAddress[msg.sender] |
"Account is already authorized" | pragma solidity ^0.5.15;
interface ERC20CompatibleToken {
function balanceOf(address tokenOwner) external view returns (uint balance);
function allowance(address tokenOwner, address spender) external view returns (uint remaining);
function transfer (address to, uint tokens) external returns (bool succes... | !authorizedWithdrawalAddress[_authorizedWithdrawalAddress],"Account is already authorized" | 51,126 | !authorizedWithdrawalAddress[_authorizedWithdrawalAddress] |
"Only authorized addresses can unlock tokens" | pragma solidity ^0.5.15;
interface ERC20CompatibleToken {
function balanceOf(address tokenOwner) external view returns (uint balance);
function allowance(address tokenOwner, address spender) external view returns (uint remaining);
function transfer (address to, uint tokens) external returns (bool succes... | authorizedWithdrawalAddress[from],"Only authorized addresses can unlock tokens" | 51,126 | authorizedWithdrawalAddress[from] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.