comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"CollateralMarket::buy: collateral depositary is not allowed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "./utils/OwnablePausable.sol";
... | issuer.hasDepositary(depositary),"CollateralMarket::buy: collateral depositary is not allowed" | 282,961 | issuer.hasDepositary(depositary) |
"Caller is not the owner, neither governance" | pragma solidity 0.7.1;
// UniCatFarm is the master of MEOW. He can make MEOW and he is a fair cat.
//
// Note that it's ownable and the owner wields tremendous power. The owner will set
// the governance contract and will burn its keys once MEOW is sufficiently
// distributed.
//
// Have fun reading it. Hopefull... | owner()==_msgSender()||governance==_msgSender(),"Caller is not the owner, neither governance" | 283,001 | owner()==_msgSender()||governance==_msgSender() |
"devFee: can only be called once" | pragma solidity 0.7.1;
// UniCatFarm is the master of MEOW. He can make MEOW and he is a fair cat.
//
// Note that it's ownable and the owner wields tremendous power. The owner will set
// the governance contract and will burn its keys once MEOW is sufficiently
// distributed.
//
// Have fun reading it. Hopefull... | !devFeeDelivered,"devFee: can only be called once" | 283,001 | !devFeeDelivered |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | addressInfos[msg.sender].authorized | 283,044 | addressInfos[msg.sender].authorized |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | !suspended | 283,044 | !suspended |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | len%7==0 | 283,044 | len%7==0 |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | token.transferFrom(owner,prevOwner,uint(batch[i+2])) | 283,044 | token.transferFrom(owner,prevOwner,uint(batch[i+2])) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | lrc.transferFrom(minerFeeRecipient,owner,lrcReward) | 283,044 | lrc.transferFrom(minerFeeRecipient,owner,lrcReward) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | token.transferFrom(owner,walletFeeRecipient,walletFee) | 283,044 | token.transferFrom(owner,walletFeeRecipient,walletFee) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | token.transferFrom(owner,minerFeeRecipient,minerFee) | 283,044 | token.transferFrom(owner,minerFeeRecipient,minerFee) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | batch.length%2==0 | 283,044 | batch.length%2==0 |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | validSince[i]>tradingPairCutoffs[owners[i]][tradingPairs[i]] | 283,044 | validSince[i]>tradingPairCutoffs[owners[i]][tradingPairs[i]] |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | validSince[i]>cutoffs[owners[i]] | 283,044 | validSince[i]>cutoffs[owners[i]] |
"Exceeds Max Supply" | pragma solidity ^0.8.7;
contract ARABMETA is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
using Strings for uint256;
//Counters
Counters.Counter internal _airdrops;
string public baseURI;
string public notRevealedUri;
bytes32 private whitelistRoot;
//Inventor... | supply+mintAmount<=maxSupply,"Exceeds Max Supply" | 283,223 | supply+mintAmount<=maxSupply |
"Sorry you cant mint any more" | pragma solidity ^0.8.7;
contract ARABMETA is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
using Strings for uint256;
//Counters
Counters.Counter internal _airdrops;
string public baseURI;
string public notRevealedUri;
bytes32 private whitelistRoot;
//Inventor... | (WHITELISTTRACKER[msg.sender]._AMOUNT+mintAmount)<=maxMintAmountPerWalletWL,"Sorry you cant mint any more" | 283,223 | (WHITELISTTRACKER[msg.sender]._AMOUNT+mintAmount)<=maxMintAmountPerWalletWL |
"Exceeds Max Supply" | pragma solidity ^0.8.7;
contract ARABMETA is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
using Strings for uint256;
//Counters
Counters.Counter internal _airdrops;
string public baseURI;
string public notRevealedUri;
bytes32 private whitelistRoot;
//Inventor... | supply+_airdropAddresses.length<=maxSupply,"Exceeds Max Supply" | 283,223 | supply+_airdropAddresses.length<=maxSupply |
"data error" | /**
*Submitted for verification at Etherscan.io on 2018-05-29
*/
pragma solidity ^0.5.0;
contract owned {
address public owner;
constructor() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
contract Token {
uint256 p... | !forzeAccount[msg.sender]&&!forzeAccount[_to]&&balances[msg.sender]>=_value&&_value>0,"data error" | 283,286 | !forzeAccount[msg.sender]&&!forzeAccount[_to]&&balances[msg.sender]>=_value&&_value>0 |
"data error" | /**
*Submitted for verification at Etherscan.io on 2018-05-29
*/
pragma solidity ^0.5.0;
contract owned {
address public owner;
constructor() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
contract Token {
uint256 p... | !forzeAccount[_from]&&!forzeAccount[_to]&&allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0,"data error" | 283,286 | !forzeAccount[_from]&&!forzeAccount[_to]&&allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0 |
"Max Omnis have been minted" | pragma solidity 0.8.7;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The com... | totalSupply()<MAX_OMNIS,"Max Omnis have been minted" | 283,412 | totalSupply()<MAX_OMNIS |
"Already minted 1 during presale" | pragma solidity 0.8.7;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The com... | whiteListMints[msg.sender]<1,"Already minted 1 during presale" | 283,412 | whiteListMints[msg.sender]<1 |
"Exceeds MAX_OMNIS" | pragma solidity 0.8.7;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The com... | totalSupply().add(numberOfTokens)<=MAX_OMNIS,"Exceeds MAX_OMNIS" | 283,412 | totalSupply().add(numberOfTokens)<=MAX_OMNIS |
"DUPLICATE_ENTRY" | pragma solidity 0.8.7;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The com... | !whiteList[entry],"DUPLICATE_ENTRY" | 283,412 | !whiteList[entry] |
"must specify a valid tier label" | pragma solidity 0.6.12;
/// @title monthly subscription plan contract
contract MonthlySubscriptionPlan is ContractRegistryAccessor {
string public tier;
uint256 public monthlyRate;
IERC20 public erc20;
/// Constructor
/// @param _contractRegistry is the contract registry address
/// @par... | bytes(_tier).length>0,"must specify a valid tier label" | 283,537 | bytes(_tier).length>0 |
"failed to transfer subscription fees" | pragma solidity 0.6.12;
/// @title monthly subscription plan contract
contract MonthlySubscriptionPlan is ContractRegistryAccessor {
string public tier;
uint256 public monthlyRate;
IERC20 public erc20;
/// Constructor
/// @param _contractRegistry is the contract registry address
/// @par... | erc20.transferFrom(msg.sender,address(this),amount),"failed to transfer subscription fees" | 283,537 | erc20.transferFrom(msg.sender,address(this),amount) |
"failed to transfer subscription fees" | pragma solidity 0.6.12;
/// @title monthly subscription plan contract
contract MonthlySubscriptionPlan is ContractRegistryAccessor {
string public tier;
uint256 public monthlyRate;
IERC20 public erc20;
/// Constructor
/// @param _contractRegistry is the contract registry address
/// @par... | erc20.approve(address(subs),amount),"failed to transfer subscription fees" | 283,537 | erc20.approve(address(subs),amount) |
"Unable to appove()" | pragma solidity ^0.5.0;
interface ZapperFactory {
function ZapIn(
address _toWhomToIssue,
address _FromTokenContractAddress,
address _ToUnipoolToken0,
address _ToUnipoolToken1,
uint256 _amount,
uint256 _minPoolTokens
) external payable returns (uint256);
... | token.approve(factoryAddress,amount),"Unable to appove()" | 283,548 | token.approve(factoryAddress,amount) |
"Deposit Fail" | pragma solidity ^0.5.0;
interface ZapperFactory {
function ZapIn(
address _toWhomToIssue,
address _FromTokenContractAddress,
address _ToUnipoolToken0,
address _ToUnipoolToken1,
uint256 _amount,
uint256 _minPoolTokens
) external payable returns (uint256);
... | deposit(_FromTokenContractAddress,local_amount,pairs[i])!=0,"Deposit Fail" | 283,548 | deposit(_FromTokenContractAddress,local_amount,pairs[i])!=0 |
"!owner of maneki" | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract LuckyManeki {
function ownerOfAux(uint256 tokenId) p... | lm.ownerOfAux(tokenId)==(msg.sender),"!owner of maneki" | 283,573 | lm.ownerOfAux(tokenId)==(msg.sender) |
"totalSupply > MAX_SUPPLY" | pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract LuckyManeki {
function ownerOfAux(uint256 tokenId) p... | totalSupply()+tokenIds.length<=MAX_SUPPLY,"totalSupply > MAX_SUPPLY" | 283,573 | totalSupply()+tokenIds.length<=MAX_SUPPLY |
null | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | operators[msg.sender]==uint8(1) | 283,631 | operators[msg.sender]==uint8(1) |
"The current guess already exists !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | guesses[_id].id==uint256(0),"The current guess already exists !!!" | 283,631 | guesses[_id].id==uint256(0) |
"The current optionId already exists !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | !optionExist(_id,_optionId[i]),"The current optionId already exists !!!" | 283,631 | !optionExist(_id,_optionId[i]) |
"The current guess not exists !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | guesses[_id].id!=uint256(0),"The current guess not exists !!!" | 283,631 | guesses[_id].id!=uint256(0) |
"The guess cannot audit !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | getGuessStatus(_id)==GuessStatus.NotStarted,"The guess cannot audit !!!" | 283,631 | getGuessStatus(_id)==GuessStatus.NotStarted |
"The current guess not exists !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | guesses[id].id!=uint256(0),"The current guess not exists !!!" | 283,631 | guesses[id].id!=uint256(0) |
"The current optionId not exists !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | optionExist(id,optionId),"The current optionId not exists !!!" | 283,631 | optionExist(id,optionId) |
"The guess disabled!!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | !disabled(id),"The guess disabled!!!" | 283,631 | !disabled(id) |
"The guess cannot participate !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | getGuessStatus(id)==GuessStatus.Deadline,"The guess cannot participate !!!" | 283,631 | getGuessStatus(id)==GuessStatus.Deadline |
"The guess cannot abortive !!!" | pragma solidity ^0.4.24;
contract Ownable {
address public owner;
mapping(address => uint8) public operators;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor()
public {
}
/**
* @dev Throws if called by any account other than the owner.
*/... | getGuessStatus(id)==GuessStatus.Progress||getGuessStatus(id)==GuessStatus.Deadline,"The guess cannot abortive !!!" | 283,631 | getGuessStatus(id)==GuessStatus.Progress||getGuessStatus(id)==GuessStatus.Deadline |
"TX_NOT_FULLY_CONFIRMED" | /*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | isConfirmed(transactionId),"TX_NOT_FULLY_CONFIRMED" | 283,646 | isConfirmed(transactionId) |
"SeekReward: Invalid address" | /**
*Submitted for verification at Etherscan.io on 2021-04-28
*/
pragma solidity 0.6.0;
interface IERC777 {
function name() external view returns(string memory);
function symbol() external view returns(string memory);
function decimals() external view returns(uint8);
function totalSupply() exte... | !isContract(_user),"SeekReward: Invalid address" | 283,661 | !isContract(_user) |
"No upline" | /**
*Submitted for verification at Etherscan.io on 2021-04-28
*/
pragma solidity 0.6.0;
interface IERC777 {
function name() external view returns(string memory);
function symbol() external view returns(string memory);
function decimals() external view returns(uint8);
function totalSupply() exte... | users[_addr].upline!=address(0)||_addr==admin1,"No upline" | 283,661 | users[_addr].upline!=address(0)||_addr==admin1 |
"SeekReward: Deposit already exists" | /**
*Submitted for verification at Etherscan.io on 2021-04-28
*/
pragma solidity 0.6.0;
interface IERC777 {
function name() external view returns(string memory);
function symbol() external view returns(string memory);
function decimals() external view returns(uint8);
function totalSupply() exte... | users[_addr].payouts>=this.maxPayoutOf(users[_addr].depositAmount),"SeekReward: Deposit already exists" | 283,661 | users[_addr].payouts>=this.maxPayoutOf(users[_addr].depositAmount) |
"SeekReward: Full payouts" | /**
*Submitted for verification at Etherscan.io on 2021-04-28
*/
pragma solidity 0.6.0;
interface IERC777 {
function name() external view returns(string memory);
function symbol() external view returns(string memory);
function decimals() external view returns(uint8);
function totalSupply() exte... | users[msg.sender].payouts<max_payout,"SeekReward: Full payouts" | 283,661 | users[msg.sender].payouts<max_payout |
null | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
mapping(address => uint32) public nonces;
constructor() public
{
}
/**
... | nonces[msgSender]++==nonce | 283,742 | nonces[msgSender]++==nonce |
null | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
mapping(address => uint32) public nonces;
constructor() public
{
}
/**
... | (time-5minutes)<now | 283,742 | (time-5minutes)<now |
null | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
mapping(address => uint32) public nonces;
constructor() public
{
}
/**
... | (time+2days)>now | 283,742 | (time+2days)>now |
"Auction has already started." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./TwentySevenYearS... | _auctions[punkScapeId].endTimestamp==0,"Auction has already started." | 283,771 | _auctions[punkScapeId].endTimestamp==0 |
"Auction data not signed." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./TwentySevenYearS... | ECDSA.recover(signedData,signature)==owner(),"Auction data not signed." | 283,771 | ECDSA.recover(signedData,signature)==owner() |
"Auction already settled" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./TwentySevenYearS... | !auction.settled,"Auction already settled" | 283,771 | !auction.settled |
"Claim data not signed." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./TwentySevenYearS... | ECDSA.recover(message,signature)==owner(),"Claim data not signed." | 283,771 | ECDSA.recover(message,signature)==owner() |
"Not allowed to claim." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./TwentySevenYearS... | _msgSender()==claimableBy,"Not allowed to claim." | 283,771 | _msgSender()==claimableBy |
"The token contract is not authorised" | // SPDX-License-Identifier: MIT
/*
______ __ __ __ __
|_ _ \ [ | | ] [ | | ]
| |_) | | | .--. .--. .--.| | .--. | |--. .---. .--.| |
| __'. | | / .'`\ \ / .'`\ \ / /... | authorisedAddresses[msg.sender],"The token contract is not authorised" | 283,897 | authorisedAddresses[msg.sender] |
null | // SPDX-License-Identifier: MIT
/*
______ __ __ __ __
|_ _ \ [ | | ] [ | | ]
| |_) | | | .--. .--. .--.| | .--. | |--. .---. .--.| |
| __'. | | / .'`\ \ / .'`\ \ / /... | walletsBalances[wallet_]>=amount_ | 283,897 | walletsBalances[wallet_]>=amount_ |
null | // SPDX-License-Identifier: MIT
/*
______ __ __ __ __
|_ _ \ [ | | ] [ | | ]
| |_) | | | .--. .--. .--.| | .--. | |--. .---. .--.| |
| __'. | | / .'`\ \ / .'`\ \ / /... | walletsBalances[msg.sender]>=amount_ | 283,897 | walletsBalances[msg.sender]>=amount_ |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | unsupportedTokens[i]!=address(0) | 283,919 | unsupportedTokens[i]!=address(0) |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserveListingStage[token]==ListingStage.NO_RESERVE | 283,919 | reserveListingStage[token]==ListingStage.NO_RESERVE |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | !(tokenListingBlocked[token]) | 283,919 | !(tokenListingBlocked[token]) |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserveListingStage[token]==ListingStage.RESERVE_ADDED | 283,919 | reserveListingStage[token]==ListingStage.RESERVE_ADDED |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserves[token].init() | 283,919 | reserves[token].init() |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserveListingStage[token]==ListingStage.RESERVE_INIT | 283,919 | reserveListingStage[token]==ListingStage.RESERVE_INIT |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | kyberNetworkContract.addReserve(KyberReserveInterface(reserves[token]),true) | 283,919 | kyberNetworkContract.addReserve(KyberReserveInterface(reserves[token]),true) |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | kyberNetworkContract.listPairForReserve(KyberReserveInterface(reserves[token]),token,true,true,true) | 283,919 | kyberNetworkContract.listPairForReserve(KyberReserveInterface(reserves[token]),token,true,true,true) |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserveListingStage[token]==ListingStage.RESERVE_LISTED | 283,919 | reserveListingStage[token]==ListingStage.RESERVE_LISTED |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | reserves[token].kncRateBlocksTrade() | 283,919 | reserves[token].kncRateBlocksTrade() |
null | contract InternalNetworkInterface {
function addReserve(
KyberReserveInterface reserve,
bool isPermissionless
)
public
returns(bool);
function removeReserve(
KyberReserveInterface reserve,
uint index
)
public
returns(bool);
... | kyberNetworkContract.removeReserve(KyberReserveInterface(reserves[token]),hintReserveIndex) | 283,919 | kyberNetworkContract.removeReserve(KyberReserveInterface(reserves[token]),hintReserveIndex) |
"pool-is-underwater" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "../Strategy.sol";
import "../../interfaces/vesper/ICollateralManager.sol";
/// @dev This strategy will deposit collateral token in Maker, borrow Dai and
/// deposit borrowed DAI in other lending pool to earn interest.
abstract contract MakerStrategy is Stra... | !isUnderwater(),"pool-is-underwater" | 283,963 | !isUnderwater() |
"pool-is-above-water" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "../Strategy.sol";
import "../../interfaces/vesper/ICollateralManager.sol";
/// @dev This strategy will deposit collateral token in Maker, borrow Dai and
/// deposit borrowed DAI in other lending pool to earn interest.
abstract contract MakerStrategy is Stra... | isUnderwater(),"pool-is-above-water" | 283,963 | isUnderwater() |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | totalDistributed.add(tokenBought)<=hardCap | 283,995 | totalDistributed.add(tokenBought)<=hardCap |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | tokenReward.transfer(msg.sender,tokenBought.add(tempBalance)) | 283,995 | tokenReward.transfer(msg.sender,tokenBought.add(tempBalance)) |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | KYCValid[msg.sender]==true | 283,995 | KYCValid[msg.sender]==true |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | tokenReward.transfer(msg.sender,tokens) | 283,995 | tokenReward.transfer(msg.sender,tokens) |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | KYCValid[_target]==true | 283,995 | KYCValid[_target]==true |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | tokenReward.transfer(_target,tokens) | 283,995 | tokenReward.transfer(_target,tokens) |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | tokenReward.transferFrom(msg.sender,address(this),holderTokens) | 283,995 | tokenReward.transferFrom(msg.sender,address(this),holderTokens) |
null | pragma solidity 0.4.24;
/**
* @title Vivalid ICO Contract
* @dev ViV is an ERC-20 Standar Compliant Token
* For more info https://vivalid.io
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multipli... | level[msg.sender]>=2 | 283,995 | level[msg.sender]>=2 |
"user-not-allowed-to-hold-token" | // Verified using https://dapp.tools
// hevm: flattened sources of src/lender/operator.sol
pragma solidity >=0.4.23 >=0.5.15 <0.6.0;
////// lib/tinlake-auth/lib/ds-note/src/note.sol
/// note.sol -- the `note' modifier, for logging calls as events
// This program is free software: you can redistribute it and/or modify
/... | (token.hasMember(msg.sender)==true),"user-not-allowed-to-hold-token" | 284,062 | (token.hasMember(msg.sender)==true) |
"Max airdrop quantity reached" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | airdrop_count+amount<=AIRDROP_QUANTITY,"Max airdrop quantity reached" | 284,094 | airdrop_count+amount<=AIRDROP_QUANTITY |
"Max airdrop quantity reached" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | currentTotalSupply+amount<=MAX_SUPPLY,"Max airdrop quantity reached" | 284,094 | currentTotalSupply+amount<=MAX_SUPPLY |
'Each address may only buy 5 kings in presale' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | balanceOf(msg.sender)+amount<=5,'Each address may only buy 5 kings in presale' | 284,094 | balanceOf(msg.sender)+amount<=5 |
"Not registered for pre-sale" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | isRegisteredForPresale(msg.sender),"Not registered for pre-sale" | 284,094 | isRegisteredForPresale(msg.sender) |
"Not enough pre-sale supply left" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | currentTotalSupply+amount<=AIRDROP_QUANTITY+PRE_SALE_QUANTITY,"Not enough pre-sale supply left" | 284,094 | currentTotalSupply+amount<=AIRDROP_QUANTITY+PRE_SALE_QUANTITY |
"User is not on whitelist" | pragma solidity ^0.8.0;
contract WhiteList is Ownable, EIP712 {
bytes32 constant public MINT_CALL_HASH_TYPE = keccak256("mint(address receiver)");
address public whitelistSigner;
constructor() EIP712("TsukiWhiteList", "1") {}
function setWhitelistSigner(address _address) external onlyOwner {
}... | recoverSigner(sender,signature)==whitelistSigner,"User is not on whitelist" | 284,180 | recoverSigner(sender,signature)==whitelistSigner |
"Already Signed" | pragma solidity 0.8.4;
contract Dispatcher is Ownable {
Vault private vault;
address private multiSigAddress;
address private bridgeControllerAddress;
address[] private validators;
uint256 private valThreshold = 1;
uint256 private uuid = 0;
uint256[] private outstandingTransferPropos... | transferProposalStore[_proposal].signed==false,"Already Signed" | 284,236 | transferProposalStore[_proposal].signed==false |
"Must be a new transaction" | pragma solidity 0.8.4;
contract Dispatcher is Ownable {
Vault private vault;
address private multiSigAddress;
address private bridgeControllerAddress;
address[] private validators;
uint256 private valThreshold = 1;
uint256 private uuid = 0;
uint256[] private outstandingTransferPropos... | bytes(transactions[_id]).length==0,"Must be a new transaction" | 284,236 | bytes(transactions[_id]).length==0 |
"You have already voted" | pragma solidity 0.8.4;
contract Dispatcher is Ownable {
Vault private vault;
address private multiSigAddress;
address private bridgeControllerAddress;
address[] private validators;
uint256 private valThreshold = 1;
uint256 private uuid = 0;
uint256[] private outstandingTransferPropos... | transferProposalStore[_proposal].signatures[i]!=msg.sender,"You have already voted" | 284,236 | transferProposalStore[_proposal].signatures[i]!=msg.sender |
null | pragma solidity ^0.4.19;
contract IGold {
function balanceOf(address _owner) constant returns (uint256);
function issueTokens(address _who, uint _tokens);
function burnTokens(address _who, uint _tokens);
}
// StdToken inheritance is commented, because no 'totalSupply' needed
contract IMNTP { /*is Std... | keccak256(_userId)!=keccak256("") | 284,237 | keccak256(_userId)!=keccak256("") |
"no-access" | // Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later ve... | VatAbstract(MCD_VAT).wards(address(this))==1,"no-access" | 284,247 | VatAbstract(MCD_VAT).wards(address(this))==1 |
null | pragma solidity ^0.5.0;
interface IKyberNetworkProxy {
function getExpectedRate(IERC20 src, IERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
function tradeWithHint(IERC20 src, uint srcAmount, IERC20 dest, address destAddress, uint maxDestAmount, uint minConversionRate, ... | NEWDAI_TOKEN_ADDRESS.approve(address(COMPOUND_TOKEN_ADDRESS),qty2approve) | 284,250 | NEWDAI_TOKEN_ADDRESS.approve(address(COMPOUND_TOKEN_ADDRESS),qty2approve) |
null | pragma solidity ^0.5.0;
interface IKyberNetworkProxy {
function getExpectedRate(IERC20 src, IERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
function tradeWithHint(IERC20 src, uint srcAmount, IERC20 dest, address destAddress, uint maxDestAmount, uint minConversionRate, ... | COMPOUND_TOKEN_ADDRESS.transfer(_towhomtoissue,cDAI2transfer) | 284,250 | COMPOUND_TOKEN_ADDRESS.transfer(_towhomtoissue,cDAI2transfer) |
null | pragma solidity ^0.5.0;
interface IKyberNetworkProxy {
function getExpectedRate(IERC20 src, IERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
function tradeWithHint(IERC20 src, uint srcAmount, IERC20 dest, address destAddress, uint maxDestAmount, uint minConversionRate, ... | NEWDAI_TOKEN_ADDRESS.approve(address(COMPOUND_TOKEN_ADDRESS),0) | 284,250 | NEWDAI_TOKEN_ADDRESS.approve(address(COMPOUND_TOKEN_ADDRESS),0) |
"Account is frozen" | pragma solidity 0.5.11;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | !isFrozen(account),"Account is frozen" | 284,353 | !isFrozen(account) |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | x<=(MAX_UINT256/y) | 284,396 | x<=(MAX_UINT256/y) |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | !verifiedAddresses[_newAddress] | 284,396 | !verifiedAddresses[_newAddress] |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | verifiedAddresses[_oldAddress] | 284,396 | verifiedAddresses[_oldAddress] |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | KycContractInterface(kycAddress).isAddressVerified(msg.sender) | 284,396 | KycContractInterface(kycAddress).isAddressVerified(msg.sender) |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | contributorList[msg.sender].contributionAmount>0 | 284,396 | contributorList[msg.sender].contributionAmount>0 |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | !hasClaimedEthWhenFail[msg.sender] | 284,396 | !hasClaimedEthWhenFail[msg.sender] |
null | contract SafeMath {
uint256 constant MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function safeAdd(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function safeSub(uint256 x, uint256 y) constant internal returns (uint256 z) {
}
function ... | contributorIndexes[nextContributorToClaim]==0x0 | 284,396 | contributorIndexes[nextContributorToClaim]==0x0 |
null | pragma solidity 0.4.15;
/**
* Basic interface for contracts, following ERC20 standard
*/
contract ERC20Token {
/**
* Triggered when tokens are transferred.
* @param from - address tokens were transfered from
* @param to - address tokens were transfered to
* @param value - amount of to... | tokenContract.allowance(msg.sender,address(this))>=tokenCount | 284,416 | tokenContract.allowance(msg.sender,address(this))>=tokenCount |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.