comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
null | pragma solidity ^0.4.20;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library safeMath
{
function mul(uint256 a, uint256 b) internal pure returns (uint256)
{
}
function add(uint256 a, uint256 b) internal pure return... | (balanceOf[_to].add(_value))>=balanceOf[_to] | 280,961 | (balanceOf[_to].add(_value))>=balanceOf[_to] |
"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'mint' contract" | /*
Please note, there are 3 native components to this token design. Token, Router, and Core.
Each component is deployed separately as an external contract.
This is the main code of a mutable token contract.
The Router component is the mutable part and it can be re-routed should there be any code updates.
Any othe... | externalContracts["mint"]==msg.sender,"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'mint' contract" | 281,028 | externalContracts["mint"]==msg.sender |
"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'burn' contract" | /*
Please note, there are 3 native components to this token design. Token, Router, and Core.
Each component is deployed separately as an external contract.
This is the main code of a mutable token contract.
The Router component is the mutable part and it can be re-routed should there be any code updates.
Any othe... | externalContracts["burn"]==msg.sender,"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'burn' contract" | 281,028 | externalContracts["burn"]==msg.sender |
"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateTotalSupply' contract" | /*
Please note, there are 3 native components to this token design. Token, Router, and Core.
Each component is deployed separately as an external contract.
This is the main code of a mutable token contract.
The Router component is the mutable part and it can be re-routed should there be any code updates.
Any othe... | externalContracts["updateTotalSupply"]==msg.sender,"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateTotalSupply' contract" | 281,028 | externalContracts["updateTotalSupply"]==msg.sender |
"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateCurrentSupply' contract" | /*
Please note, there are 3 native components to this token design. Token, Router, and Core.
Each component is deployed separately as an external contract.
This is the main code of a mutable token contract.
The Router component is the mutable part and it can be re-routed should there be any code updates.
Any othe... | externalContracts["updateCurrentSupply"]==msg.sender,"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateCurrentSupply' contract" | 281,028 | externalContracts["updateCurrentSupply"]==msg.sender |
"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateJointSupply' contract" | /*
Please note, there are 3 native components to this token design. Token, Router, and Core.
Each component is deployed separately as an external contract.
This is the main code of a mutable token contract.
The Router component is the mutable part and it can be re-routed should there be any code updates.
Any othe... | externalContracts["updateJointSupply"]==msg.sender,"at: router.sol | contract: Router | function: extrenalRouterCall | message: Must be called by the registered external 'updateJointSupply' contract" | 281,028 | externalContracts["updateJointSupply"]==msg.sender |
"The contract did not receive enough Ethereum" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// import statements
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.s... | nftPrice.mul(numberOfTokens)<=msg.value,"The contract did not receive enough Ethereum" | 281,089 | nftPrice.mul(numberOfTokens)<=msg.value |
"The contract can only mint up to 5 tokens at a time" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// import statements
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.s... | (balanceOf(msg.sender)<nftPerAddressLimit)&&(numberOfTokens<=(nftPerAddressLimit.sub(balanceOf(msg.sender)))),"The contract can only mint up to 5 tokens at a time" | 281,089 | (balanceOf(msg.sender)<nftPerAddressLimit)&&(numberOfTokens<=(nftPerAddressLimit.sub(balanceOf(msg.sender)))) |
Errors.INSUFFICIENT_FLASH_LOAN_BALANCE | // SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is dist... | (preLoanBalances[i]>=amount,Errors.INSUFFICIENT_FLASH_LOAN_BALANCE | 281,109 | preLoanBalances[i]>=amount |
Errors.TOKENS_MISMATCH | // SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is dist... | (actualTokens[i]==expectedTokens[i],Errors.TOKENS_MISMATCH | 281,116 | actualTokens[i]==expectedTokens[i] |
"Deposited value is not an allowed denomination." | pragma solidity ^0.6.12;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use th... | checkDepositValue(msg.value),"Deposited value is not an allowed denomination." | 281,195 | checkDepositValue(msg.value) |
"REG: Address invalid NFT" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | INft(_nft).isActive(),"REG: Address invalid NFT" | 281,261 | INft(_nft).isActive() |
"REG: Cannot set HUB to existing" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | address(hubInstance_)!=_newHub,"REG: Cannot set HUB to existing" | 281,261 | address(hubInstance_)!=_newHub |
"REG: HUB implementation error" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | newHub.isAuctionHubImplementation(),"REG: HUB implementation error" | 281,261 | newHub.isAuctionHubImplementation() |
"REG: HUB could not be init" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | IHub(_newHub).init(),"REG: HUB could not be init" | 281,261 | IHub(_newHub).init() |
"REG: Cannot set ROY to existing" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | address(royaltiesInstance_)!=_newRoyalties,"REG: Cannot set ROY to existing" | 281,261 | address(royaltiesInstance_)!=_newRoyalties |
"REG: ROY could not be init" | //SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
// Registry managed contracts
import "../auctions/IHub.sol";
import "../royalties/IRoyalties.sol";
import "../nft/INft.sol";
contract Registry is Ownable... | IRoyalties(_newRoyalties).init(),"REG: ROY could not be init" | 281,261 | IRoyalties(_newRoyalties).init() |
"checkHowManyOwners: owner already voted for the operation" | pragma solidity ^0.5.0;
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its a... | (votesMaskByOperation[operation]&(2**ownerIndex))==0,"checkHowManyOwners: owner already voted for the operation" | 281,314 | (votesMaskByOperation[operation]&(2**ownerIndex))==0 |
"cancelPending: operation not found for this user" | pragma solidity ^0.5.0;
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its a... | (votesMaskByOperation[operation]&(2**ownerIndex))!=0,"cancelPending: operation not found for this user" | 281,314 | (votesMaskByOperation[operation]&(2**ownerIndex))!=0 |
"transferOwnershipWithHowMany: owners array contains zero" | pragma solidity ^0.5.0;
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its a... | newOwners[i]!=address(0),"transferOwnershipWithHowMany: owners array contains zero" | 281,314 | newOwners[i]!=address(0) |
"transferOwnershipWithHowMany: owners array contains duplicates" | pragma solidity ^0.5.0;
/**
* @dev Collection of functions related to the address type,
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* This test is non-exhaustive, and there may be false-negatives: during the
* execution of a contract's constructor, its a... | ownersIndices[newOwners[i]]==0,"transferOwnershipWithHowMany: owners array contains duplicates" | 281,314 | ownersIndices[newOwners[i]]==0 |
"Can only be called once a day" | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | block.timestamp.sub(lastDateDistribution)>1days,"Can only be called once a day" | 281,593 | block.timestamp.sub(lastDateDistribution)>1days |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | erc20.transfer(tokenOwners[i],sendingAmount) | 281,593 | erc20.transfer(tokenOwners[i],sendingAmount) |
"Account is already excluded" | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | !_isExcludedFromReflection[account],"Account is already excluded" | 281,645 | !_isExcludedFromReflection[account] |
"Cannot exclude more than 50 accounts. Include a previously excluded address." | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _excludedFromReflection.length+1<=50,"Cannot exclude more than 50 accounts. Include a previously excluded address." | 281,645 | _excludedFromReflection.length+1<=50 |
"Account is not excluded from reflection" | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _isExcludedFromReflection[account],"Account is not excluded from reflection" | 281,645 | _isExcludedFromReflection[account] |
null | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _msgSender()==_ikcAddress | 281,645 | _msgSender()==_ikcAddress |
null | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _msgSender()==_ikcAddress||_msgSender()==_mktgAddress | 281,645 | _msgSender()==_ikcAddress||_msgSender()==_mktgAddress |
"Must keep buy taxes below 25%" | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _reflectionFeeOnBuy+_taxFeeOnBuy<=25,"Must keep buy taxes below 25%" | 281,645 | _reflectionFeeOnBuy+_taxFeeOnBuy<=25 |
"Must keep buy taxes below 25%" | /**
Inter-Kongz Capital: $IKC
-Whose Kongz is that? I think I know.
Its owner is quite happy though.
Full of joy like a vivid rainbow,
I watch him laugh. I cry hello.
He gives his Kongz a shake,
And laughs until her belly aches.
The only other sound's the break,
Of distant waves and birds awake.
The Kongz is ... | _reflectionFeeOnSell+_taxFeeOnSell<=25,"Must keep buy taxes below 25%" | 281,645 | _reflectionFeeOnSell+_taxFeeOnSell<=25 |
'only 1 mint per wallet address' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
contract tokenGarden is ERC721, Ownable {
us... | minted[msg.sender]<mintsPerAddress,'only 1 mint per wallet address' | 281,646 | minted[msg.sender]<mintsPerAddress |
"NOT_STAKED" | // SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2021, Offchain Labs, Inc.
*
* 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
*
* ... | node.stakers(staker),"NOT_STAKED" | 281,673 | node.stakers(staker) |
"Exceeds Max Mint amount" | pragma solidity ^0.8.7;
contract ToonsOG is ERC721A, Ownable {
using Strings for uint256;
address breedingContract;
string public baseApiURI;
bytes32 private whitelistRoot;
//General Settings
uint16 public maxMintAmountPerTransaction = 1;
uint16 public maxMintAmountPerWallet = 1;
... | (whitelistedMints[msg.sender]+_mintAmount)<=maxMintAmountPerWhitelist,"Exceeds Max Mint amount" | 281,824 | (whitelistedMints[msg.sender]+_mintAmount)<=maxMintAmountPerWhitelist |
"Insuffient funds" | pragma solidity ^0.8.7;
contract ToonsOG is ERC721A, Ownable {
using Strings for uint256;
address breedingContract;
string public baseApiURI;
bytes32 private whitelistRoot;
//General Settings
uint16 public maxMintAmountPerTransaction = 1;
uint16 public maxMintAmountPerWallet = 1;
... | msg.value>=(whitelistCost*_mintAmount),"Insuffient funds" | 281,824 | msg.value>=(whitelistCost*_mintAmount) |
"You cant mint on Presale" | pragma solidity ^0.8.7;
contract ToonsOG is ERC721A, Ownable {
using Strings for uint256;
address breedingContract;
string public baseApiURI;
bytes32 private whitelistRoot;
//General Settings
uint16 public maxMintAmountPerTransaction = 1;
uint16 public maxMintAmountPerWallet = 1;
... | !whiteListingSale,"You cant mint on Presale" | 281,824 | !whiteListingSale |
"already sold" | pragma solidity ^0.5.10;
contract MolochLike {
function updateDelegateKey(address) external;
function submitVote(uint256, uint8) external;
function submitProposal(address, uint256, uint256, string calldata) external;
function processProposal(uint256) external;
function getProposalQueueLength()... | !sold,"already sold" | 281,856 | !sold |
"No more tokens available" | pragma solidity ^0.8.0;
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
}
funct... | availableTokenCount()>0,"No more tokens available" | 281,865 | availableTokenCount()>0 |
"Requested number of tokens not available" | pragma solidity ^0.8.0;
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
}
funct... | availableTokenCount()>=amount,"Requested number of tokens not available" | 281,865 | availableTokenCount()>=amount |
"!voted" | pragma solidity ^0.5.0;
contract LPTokenWrapper {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 public vote = IERC20(0xa279dab6ec190eE4Efce7Da72896EB58AD533262);
uint256 private _totalSupply;
mapping(address => uint256) private _balances;
function totalSupply() public vie... | voteLock[msg.sender]>block.number,"!voted" | 281,916 | voteLock[msg.sender]>block.number |
"Max supply reached" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./ERC721Enumerable.sol";
import "./OpenSea.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
contract LarvaLarms is ERC721Enumerable,... | supply+count<MAX_SUPPLY,"Max supply reached" | 281,925 | supply+count<MAX_SUPPLY |
"Invalid funds provided." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./ERC721Enumerable.sol";
import "./OpenSea.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
contract LarvaLarms is ERC721Enumerable,... | payCount*price==msg.value,"Invalid funds provided." | 281,925 | payCount*price==msg.value |
null | /**
* @title ICHX token contract.
*/
contract ICHXToken is BaseICOToken, SelfDestructible, Withdrawal {
using SafeMath for uint;
string public constant name = "IceChain";
string public constant symbol = "ICHX";
uint8 public constant decimals = 18;
uint internal constant ONE_TOKEN = 1e18;
... | isValidICOInvestment(to_,amount) | 281,940 | isValidICOInvestment(to_,amount) |
null | pragma solidity ^0.4.19;
/**
* Virtual Cash (VCA) Token
*
* This is a very simple token with the following properties:
* - 20.000.000 tokens maximum supply
* - 15.000.000 crowdsale allocation
* - 5.000.000 initial supply to be use for Bonus, Airdrop, Marketing, Ads, Bounty, Future Dev, Reserved tokens
... | totalSupply+tokens*UNIT<=maxSupply | 281,996 | totalSupply+tokens*UNIT<=maxSupply |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | stk(tkn,amount,msg.sender) | 282,044 | stk(tkn,amount,msg.sender) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | modules[msg.sender] | 282,044 | modules[msg.sender] |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | stk(tkn,amount,staker) | 282,044 | stk(tkn,amount,staker) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | token.transferFrom(staker,address(this),amount) | 282,044 | token.transferFrom(staker,address(this),amount) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | unstk(tkn,msg.sender) | 282,044 | unstk(tkn,msg.sender) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | unstk(tkn,unstaker) | 282,044 | unstk(tkn,unstaker) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | stake[unstaker]>0 | 282,044 | stake[unstaker]>0 |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | token.transfer(unstaker,stake[unstaker]) | 282,044 | token.transfer(unstaker,stake[unstaker]) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | token.transfer(gifted,amount) | 282,044 | token.transfer(gifted,amount) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | staker.status()==1 | 282,044 | staker.status()==1 |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | staker.stakeNow(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD,amount,msg.sender) | 282,044 | staker.stakeNow(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD,amount,msg.sender) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | gifter.gift(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD,amount*multiplier/100,msg.sender) | 282,044 | gifter.gift(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD,amount*multiplier/100,msg.sender) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | staker.stake(msg.sender)>0 | 282,044 | staker.stake(msg.sender)>0 |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | gifter.gift(berry,1,msg.sender) | 282,044 | gifter.gift(berry,1,msg.sender) |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | staker.status()==2 | 282,044 | staker.status()==2 |
null | /*
* MultitokenPeriodicStaker
* VERSION: 1.0
*
*/
contract ERC20{
function allowance(address owner, address spender) external view returns (uint256){}
function transfer(address recipient, uint256 amount) external returns (bool){}
function transferFrom(address sender, address recipient, uint25... | ERC20(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD).transfer(msg.sender,30000000000000000000/(tot*1000/s)*1000) | 282,044 | ERC20(0x801F90f81786dC72B4b9d51Ab613fbe99e5E4cCD).transfer(msg.sender,30000000000000000000/(tot*1000/s)*1000) |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) o... | frozenAccount[_from]<now | 282,047 | frozenAccount[_from]<now |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) o... | frozenAccount[_from]==0 | 282,047 | frozenAccount[_from]==0 |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) o... | balanceOf[msg.sender]>=_qty | 282,047 | balanceOf[msg.sender]>=_qty |
null | pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) o... | frozenAccount[msg.sender]<now | 282,047 | frozenAccount[msg.sender]<now |
'not-a-signer' | // SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import '@sphynxswap/sphynx-swap-lib/contracts/access/Manageable.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/BEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/to... | signers[msg.sender],'not-a-signer' | 282,332 | signers[msg.sender] |
"SPHYNX: Account is already the value of 'isGetFee'" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import '@sphynxswap/sphynx-swap-lib/contracts/access/Manageable.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/BEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/to... | _isGetFees[account]!=isGetFee,"SPHYNX: Account is already the value of 'isGetFee'" | 282,332 | _isGetFees[account]!=isGetFee |
'already-sign' | // SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import '@sphynxswap/sphynx-swap-lib/contracts/access/Manageable.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/BEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/to... | !stopTradeSign[msg.sender],'already-sign' | 282,332 | !stopTradeSign[msg.sender] |
'trade-stopped' | // SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import '@sphynxswap/sphynx-swap-lib/contracts/access/Manageable.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/BEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/to... | !stopTrade,'trade-stopped' | 282,332 | !stopTrade |
null | pragma solidity ^0.5.9;
contract sproof {
event lockHashEvent(address indexed from, bytes32 indexed hash);
address payable owner;
mapping(address => bool) sproofAccounts;
uint costToLockHash = 0;
constructor() public {
}
function addSproofAccount(address _addr) public{
}
... | ecrecover(hash,v,r,s)==_addr | 282,352 | ecrecover(hash,v,r,s)==_addr |
null | pragma solidity ^0.5.9;
contract sproof {
event lockHashEvent(address indexed from, bytes32 indexed hash);
address payable owner;
mapping(address => bool) sproofAccounts;
uint costToLockHash = 0;
constructor() public {
}
function addSproofAccount(address _addr) public{
}
... | ecrecover(hashes[i],vs[i],rs[i],ss[i])==_addresses[i] | 282,352 | ecrecover(hashes[i],vs[i],rs[i],ss[i])==_addresses[i] |
"eth_not_deposited" | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | WETH.balanceOf(address(this))>=ETHAmount,"eth_not_deposited" | 282,410 | WETH.balanceOf(address(this))>=ETHAmount |
'delta_pos' | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | (amount0Delta>0)||(amount1Delta>0),'delta_pos' | 282,410 | (amount0Delta>0)||(amount1Delta>0) |
'owner_oooo_bal' | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | uint256(quadoAmount)<=balanceOf(swapData.account),'owner_oooo_bal' | 282,410 | uint256(quadoAmount)<=balanceOf(swapData.account) |
'contract_weth_bal' | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | WETH.balanceOf(address(this))>=uint256(ethAmount),'contract_weth_bal' | 282,410 | WETH.balanceOf(address(this))>=uint256(ethAmount) |
"fees_to_owner" | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | payowner.send(msg.value),"fees_to_owner" | 282,410 | payowner.send(msg.value) |
null | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | (poolImmu.token0()==address(this))||(poolImmu.token1()==address(this)) | 282,410 | (poolImmu.token0()==address(this))||(poolImmu.token1()==address(this)) |
'no_send' | pragma solidity >=0.5.0;
/**
@title Quado: The Holobots Coin
@dev ERC20 Token to be used as in-world money for the Holobots.world.
* Supports UniSwap to ETH and off-chain deposit/cashout.
* Pre-mints locked funds for liquidity pool bootstrap, developer incentives and infrastructure coverage.
* Approves payout ... | msg.sender.send(amount),'no_send' | 282,410 | msg.sender.send(amount) |
'Insufficient Balance' | //SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/af7ec04b78c2b5dec330153de90682b13f17a1bb/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV... | _balances[msg.sender]>=numberTokens,'Insufficient Balance' | 282,438 | _balances[msg.sender]>=numberTokens |
'Insufficient Balance' | //SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/af7ec04b78c2b5dec330153de90682b13f17a1bb/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV... | _balances[msg.sender]>=numTokens&&numTokens>0,'Insufficient Balance' | 282,438 | _balances[msg.sender]>=numTokens&&numTokens>0 |
"Exceeds maximum Unicorns supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Enumerable.sol";
import "./Ownable.sol";
contract TiredUnicorns is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
string _metadataExtension = "";
string public METADATA_PROVENANCE_HASH = "";
str... | supply+num<MAX_UNICORNS-_reserved,"Exceeds maximum Unicorns supply" | 282,604 | supply+num<MAX_UNICORNS-_reserved |
"Not whitelisted" | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | IStrategy(strategy).isWhitelisted(msg.sender),"Not whitelisted" | 282,613 | IStrategy(strategy).isWhitelisted(msg.sender) |
"Only voting system" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | isVotingSystem(msg.sender),"Only voting system" | 282,702 | isVotingSystem(msg.sender) |
"Only exchange factory" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | isExchangeFactory(msg.sender),"Only exchange factory" | 282,702 | isExchangeFactory(msg.sender) |
"Only exchange factory or voting" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | isExchangeFactory(msg.sender)||isVotingSystem(msg.sender),"Only exchange factory or voting" | 282,702 | isExchangeFactory(msg.sender)||isVotingSystem(msg.sender) |
"requires wallet access" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | getRegistry().hasWalletAccess(msg.sender),"requires wallet access" | 282,702 | getRegistry().hasWalletAccess(msg.sender) |
"only MessageProcessor" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | getRegistry().getMessageProcessorAddress()==msg.sender,"only MessageProcessor" | 282,702 | getRegistry().getMessageProcessorAddress()==msg.sender |
"Only exchange" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | getRegistry().isExchange(msg.sender),"Only exchange" | 282,702 | getRegistry().isExchange(msg.sender) |
"only registry" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | getRegistryAddress()==msg.sender,"only registry" | 282,702 | getRegistryAddress()==msg.sender |
"only oracle" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | isValidOracleAddress(msg.sender),"only oracle" | 282,702 | isValidOracleAddress(msg.sender) |
"only incentives" | pragma solidity ^0.5.17;
// Base class for objects that need to know about other objects in the system
// This allows us to share modifiers and have a unified way of looking up other objects.
contract KnowsRegistry is IRegistryUpdateConsumer {
RegistryHolder private registryHolder;
modifier onlyVotingSyste... | getRegistry().hasLiquidityTokensnapshotAccess(msg.sender),"only incentives" | 282,702 | getRegistry().hasLiquidityTokensnapshotAccess(msg.sender) |
"!= 1" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | _liquidityPayoutMultiplier.add(_traderPayoutMultiplier).add(_referralPayoutMultiplier)==1ether,"!= 1" | 282,703 | _liquidityPayoutMultiplier.add(_traderPayoutMultiplier).add(_referralPayoutMultiplier)==1ether |
"exchange should not exists" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | exchangeDataByExchangeAddress[_exchange].exchangeAddress==address(0),"exchange should not exists" | 282,703 | exchangeDataByExchangeAddress[_exchange].exchangeAddress==address(0) |
"Exchange is removed" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | !data.isRemoved,"Exchange is removed" | 282,703 | !data.isRemoved |
"Epoch should be active" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | epochEntry.isActiveEpoch,"Epoch should be active" | 282,703 | epochEntry.isActiveEpoch |
"Already paid out" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | !epochEntry.paidOutLiquidityByAddress[_target],"Already paid out" | 282,703 | !epochEntry.paidOutLiquidityByAddress[_target] |
"epoch can not be withdrawn yet" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | !epochEntry.isActiveEpoch,"epoch can not be withdrawn yet" | 282,703 | !epochEntry.isActiveEpoch |
"Exchange does not exist" | pragma solidity ^0.5.17;
contract Incentives is KnowsRegistry, IIncentives {
using SafeMath for uint256;
// A structure containin all data about an exchange
struct ExchangeData {
address exchangeAddress;
// The liquidity token of the exchange
ERC20Snapshot liquidityToken;
... | address(exchangeDataByExchangeAddress[exchangeAddress].exchangeAddress)!=address(0),"Exchange does not exist" | 282,703 | address(exchangeDataByExchangeAddress[exchangeAddress].exchangeAddress)!=address(0) |
"Insufficient Balance" | /// note.sol -- the `note' modifier, for logging calls as events
// Copyright (C) 2017 DappHub, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
//
// Unless required by applicable law or agreed to in writing, software
... | _balances[_sender]>=wad,"Insufficient Balance" | 282,870 | _balances[_sender]>=wad |
"LinearDutchAuction: incorrect reserve" | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import "./Seller.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
/// @notice A Seller with a linearly decreasing price.
abstract contract LinearDutchAuction is Seller {... | config.startPrice-config.decreaseSize*config.numDecreases==expectedReserve,"LinearDutchAuction: incorrect reserve" | 282,911 | config.startPrice-config.decreaseSize*config.numDecreases==expectedReserve |
"CollateralMarket::changeDepositary: 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::changeDepositary: collateral depositary is not allowed" | 282,961 | issuer.hasDepositary(_depositary) |
"CollateralMarket::buy: token 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";
... | _allowedTokens.contains(address(token)),"CollateralMarket::buy: token is not allowed" | 282,961 | _allowedTokens.contains(address(token)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.