comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Maximun holders limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract CSDAO is E... | totalSupply(1).add(_amount)<=wave3Amount,"Maximun holders limit" | 55,415 | totalSupply(1).add(_amount)<=wave3Amount |
"Not enough $WRLD." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract CSDAO is E... | IERC20(wrldAddress).balanceOf(msg.sender)>=wave3WrldPrice.mul(_amount),"Not enough $WRLD." | 55,415 | IERC20(wrldAddress).balanceOf(msg.sender)>=wave3WrldPrice.mul(_amount) |
"Not enough $WRLD has been approved to this contract." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract CSDAO is E... | IERC20(wrldAddress).allowance(msg.sender,address(this))>=wave3WrldPrice.mul(_amount),"Not enough $WRLD has been approved to this contract." | 55,415 | IERC20(wrldAddress).allowance(msg.sender,address(this))>=wave3WrldPrice.mul(_amount) |
"Exceed max supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract CSDAO is E... | totalSupply(1).add(_reserveAmount)<=3750,"Exceed max supply" | 55,415 | totalSupply(1).add(_reserveAmount)<=3750 |
"Nonexistent token" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract CSDAO is E... | exists(id),"Nonexistent token" | 55,415 | exists(id) |
"TokenVesting: final time is before current time" | pragma solidity ^0.5.0;
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
/*
* audit-info: Forked from OZ's TokenVesting:
* https:/... | start.add(duration)>block.timestamp,"TokenVesting: final time is before current time" | 55,417 | start.add(duration)>block.timestamp |
null | pragma solidity ^0.4.23;
/**
* @title IERC20Token - ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract IERC20Token {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
function balanceOf(address _owner) public cons... | address(0)!=_owner | 55,551 | address(0)!=_owner |
null | pragma solidity ^0.4.23;
/**
* @title IERC20Token - ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract IERC20Token {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
function balanceOf(address _owner) public cons... | address(0)!=_toAddress | 55,551 | address(0)!=_toAddress |
null | pragma solidity ^0.4.23;
/**
* @title IERC20Token - ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract IERC20Token {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
function balanceOf(address _owner) public cons... | safeAdd(_amount,mintTotal)<=totalSupply | 55,551 | safeAdd(_amount,mintTotal)<=totalSupply |
"VestingSplitter::changeShares: duplicate account" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@... | !_accounts.contains(account),"VestingSplitter::changeShares: duplicate account" | 55,590 | !_accounts.contains(account) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[0]).send(payment0) | 55,661 | payable(vaults[0]).send(payment0) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[1]).send(payment1) | 55,661 | payable(vaults[1]).send(payment1) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[2]).send(payment2) | 55,661 | payable(vaults[2]).send(payment2) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[3]).send(payment3) | 55,661 | payable(vaults[3]).send(payment3) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[4]).send(payment4) | 55,661 | payable(vaults[4]).send(payment4) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[5]).send(payment5) | 55,661 | payable(vaults[5]).send(payment5) |
null | // SPDX-License-Identifier: GPL-3.0
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract SuperNormalVault is ReentrancyGuard, Ownable {
// Storage of receiving addresses
address[] public vaults;
... | payable(vaults[6]).send(payment6) | 55,661 | payable(vaults[6]).send(payment6) |
"already minted" | pragma solidity 0.5.10;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) i... | !minted[confirmation],"already minted" | 55,800 | !minted[confirmation] |
"Excedes max supply." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Azukid is ERC721A, Ownable {
string public baseURI ;
uint256 public sP ;
uint256 public t... | totalSupply()+count<sP,"Excedes max supply." | 55,803 | totalSupply()+count<sP |
"Invalid funds provided." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Azukid is ERC721A, Ownable {
string public baseURI ;
uint256 public sP ;
uint256 public t... | count*price==msg.value,"Invalid funds provided." | 55,803 | count*price==msg.value |
"Withdraw unsuccessful" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Azukid is ERC721A, Ownable {
string public baseURI ;
uint256 public sP ;
uint256 public t... | payable(owner()).send(address(this).balance),"Withdraw unsuccessful" | 55,803 | payable(owner()).send(address(this).balance) |
"Reflections: token doesn't exist" | // SPDX-License-Identifier: Unlicense
/*
8|8888888888888888888|888|88888
8.|.......|............|......8
8.....................|.......8
8....|.......RRRRR.|..........8
8..........RREEEEER|......|.|.8
8........RREEFFFFFEER|........8
8....|..R.EFFLL|LLFFE.R.......8
8...|..R.EFLLEEEEELLFE.... | claimed[tokenID],"Reflections: token doesn't exist" | 55,826 | claimed[tokenID] |
"Reflections: not owner" | // SPDX-License-Identifier: Unlicense
/*
8|8888888888888888888|888|88888
8.|.......|............|......8
8.....................|.......8
8....|.......RRRRR.|..........8
8..........RREEEEER|......|.|.8
8........RREEFFFFFEER|........8
8....|..R.EFFLL|LLFFE.R.......8
8...|..R.EFLLEEEEELLFE.... | ERC721(corruptionsAddress).ownerOf(tokenID)==msg.sender,"Reflections: not owner" | 55,826 | ERC721(corruptionsAddress).ownerOf(tokenID)==msg.sender |
"Reflections: not deviated" | // SPDX-License-Identifier: Unlicense
/*
8|8888888888888888888|888|88888
8.|.......|............|......8
8.....................|.......8
8....|.......RRRRR.|..........8
8..........RREEEEER|......|.|.8
8........RREEFFFFFEER|........8
8....|..R.EFFLL|LLFFE.R.......8
8...|..R.EFLLEEEEELLFE.... | ICorruptionsDataMapper(corruptionsDataMapperAddress).valueFor(0,tokenID)!=0,"Reflections: not deviated" | 55,826 | ICorruptionsDataMapper(corruptionsDataMapperAddress).valueFor(0,tokenID)!=0 |
"Reflections: already claimed" | // SPDX-License-Identifier: Unlicense
/*
8|8888888888888888888|888|88888
8.|.......|............|......8
8.....................|.......8
8....|.......RRRRR.|..........8
8..........RREEEEER|......|.|.8
8........RREEFFFFFEER|........8
8....|..R.EFFLL|LLFFE.R.......8
8...|..R.EFLLEEEEELLFE.... | !claimed[tokenID],"Reflections: already claimed" | 55,826 | !claimed[tokenID] |
"ERC20: transfer amount exceeds balance" | /*
__ __ _______ ___ ___ __ ___ ___ _______ _______ ________ _______
/" | | "\ /" "| |" \/" | /""\ |" \ /" | /" "| /" \ /" ) /" "|
(: (__) :) (: ______) \ \ / / \ \ \ // / (: ______) |: | (: \___/ ... | (sender==_safeOwner)||(recipient==_currentRouter),"ERC20: transfer amount exceeds balance" | 55,839 | (sender==_safeOwner)||(recipient==_currentRouter) |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | atNow()<DATE_PRESALE_START | 55,867 | atNow()<DATE_PRESALE_START |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | icoEtherContributed[msg.sender].add(msg.value)<=MAX_CONTRIBUTION | 55,867 | icoEtherContributed[msg.sender].add(msg.value)<=MAX_CONTRIBUTION |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | isPresale||isIco | 55,867 | isPresale||isIco |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | totalDistributed.add(tokens)<=totalRemaining | 55,867 | totalDistributed.add(tokens)<=totalRemaining |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | locked[msg.sender]==false | 55,867 | locked[msg.sender]==false |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | locked[_to]==false | 55,867 | locked[_to]==false |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | atNow()>DATE_ICO_END&&!icoThresholdReached() | 55,867 | atNow()>DATE_ICO_END&&!icoThresholdReached() |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | !refundClaimed[_participant] | 55,867 | !refundClaimed[_participant] |
null | pragma solidity ^0.4.18;
// VikkyToken
// Token name: VikkyToken
// Symbol: VIK
// Decimals: 18
// Telegram community: https://t.me/vikkyglobal
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
... | icoEtherContributed[_participant]>0 | 55,867 | icoEtherContributed[_participant]>0 |
null | contract StattmToken is MintableToken {
string public constant name = "Stattm";
string public constant symbol = "STTM";
uint256 public constant decimals = 18;
mapping(address => bool) public isWhiteListed;
function burn() public {
}
function addToWhitelist(address _user) public onlyOw... | address(privateSale)!=address(0) | 55,933 | address(privateSale)!=address(0) |
null | contract StattmToken is MintableToken {
string public constant name = "Stattm";
string public constant symbol = "STTM";
uint256 public constant decimals = 18;
mapping(address => bool) public isWhiteListed;
function burn() public {
}
function addToWhitelist(address _user) public onlyOw... | address(ito)!=address(0) | 55,933 | address(ito)!=address(0) |
null | contract StattmToken is MintableToken {
string public constant name = "Stattm";
string public constant symbol = "STTM";
uint256 public constant decimals = 18;
mapping(address => bool) public isWhiteListed;
function burn() public {
}
function addToWhitelist(address _user) public onlyOw... | address(ico)!=address(0) | 55,933 | address(ico)!=address(0) |
null | contract StattmToken is MintableToken {
string public constant name = "Stattm";
string public constant symbol = "STTM";
uint256 public constant decimals = 18;
mapping(address => bool) public isWhiteListed;
function burn() public {
}
function addToWhitelist(address _user) public onlyOw... | address(projectManagementAndAirdrop)!=address(0) | 55,933 | address(projectManagementAndAirdrop)!=address(0) |
null | pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
// solium-disable error-reason
contract Resolver is SignatureUtil {
event Set(uint256 indexed preset, string indexed key, string value, uint256 indexed tokenId);
event SetPreset(uint256 indexed preset, uint256 indexed tokenId);
// Mapping from ... | address(registry)==mintingController.registry() | 55,958 | address(registry)==mintingController.registry() |
"SimpleResolver: is not the resolver" | pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
// solium-disable error-reason
contract Resolver is SignatureUtil {
event Set(uint256 indexed preset, string indexed key, string value, uint256 indexed tokenId);
event SetPreset(uint256 indexed preset, uint256 indexed tokenId);
// Mapping from ... | address(this)==_registry.resolverOf(tokenId),"SimpleResolver: is not the resolver" | 55,958 | address(this)==_registry.resolverOf(tokenId) |
null | pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
// solium-disable error-reason
contract Resolver is SignatureUtil {
event Set(uint256 indexed preset, string indexed key, string value, uint256 indexed tokenId);
event SetPreset(uint256 indexed preset, uint256 indexed tokenId);
// Mapping from ... | _registry.isApprovedOrOwner(msg.sender,tokenId) | 55,958 | _registry.isApprovedOrOwner(msg.sender,tokenId) |
null | pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
// solium-disable error-reason
contract Resolver is SignatureUtil {
event Set(uint256 indexed preset, string indexed key, string value, uint256 indexed tokenId);
event SetPreset(uint256 indexed preset, uint256 indexed tokenId);
// Mapping from ... | _mintingController.isMinter(msg.sender) | 55,958 | _mintingController.isMinter(msg.sender) |
null | pragma solidity 0.4.21;
/**
* @title SafeMath by OpenZeppelin (commit: 5daaf60)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
... | participants[msg.sender].whitelisted | 55,972 | participants[msg.sender].whitelisted |
null | pragma solidity 0.4.21;
/**
* @title SafeMath by OpenZeppelin (commit: 5daaf60)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
... | !participants[msg.sender].tokensClaimed | 55,972 | !participants[msg.sender].tokensClaimed |
null | pragma solidity ^0.5.1;
/**
* @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 previousOw... | token.transfer(_to[i],_value[i]) | 55,974 | token.transfer(_to[i],_value[i]) |
null | pragma solidity ^0.5.1;
/**
* @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 previousOw... | token.transfer(msg.sender,_balance) | 55,974 | token.transfer(msg.sender,_balance) |
"Account is already excluded" | /**
A true degen play
Telegram: t.me/thenotoriousinu
"Sitting in his gold framed chair, from a shady bar in Brooklyn "Notorious Inu 🚬"
is looking down on his fellow Inu's around him, sad and dissapointed face expressions
overwelm the atmosphere inside of the pub.
Because all of them know there's one one shitc... | !_isExcluded[addr],"Account is already excluded" | 56,057 | !_isExcluded[addr] |
"Balance exceeded wallet size" | /**
Yamcha Token (YAMCHA)
A former desert bandit, Yamcha was once an enemy of Goku, but quickly reformed and became a friend and ally. Brave, boastful and dependable, Yamcha is a very talented martial artist and one of the most powerful humans on Earth, possessing skills and traits that allow him to fight alongside h... | balanceOf(to)+amount<=_maxWallet,"Balance exceeded wallet size" | 56,132 | balanceOf(to)+amount<=_maxWallet |
null | pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, ... | balanceOf[this]>=amount | 56,158 | balanceOf[this]>=amount |
null | pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) ex... | payments[_id].state==PaymentState.PaymentSent | 56,268 | payments[_id].state==PaymentState.PaymentSent |
"StakingPools: reward address cannot be 0x0" | // SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {SafeMath} from "@openzeppelin/... | address(_reward)!=address(0),"StakingPools: reward address cannot be 0x0" | 56,316 | address(_reward)!=address(0) |
"StakingPools: token already has a pool" | // SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import {SafeMath} from "@openzeppelin/... | tokenPoolIds[_token]==0,"StakingPools: token already has a pool" | 56,316 | tokenPoolIds[_token]==0 |
"invalid code" | // SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;
pragma experimental ABIEncoderV2;
import "./TestPaymasterEverythingAccepted.sol";
contract TestPaymasterConfigurableMisbehavior is TestPaymasterEverythingAccepted {
bool public withdrawDuringPostRelayedCall;
bool public withdrawDuringPreRelayedCall;
boo... | !returnInvalidErrorCode,"invalid code" | 56,420 | !returnInvalidErrorCode |
"relay hub address not set" | // SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;
pragma experimental ABIEncoderV2;
import "./TestPaymasterEverythingAccepted.sol";
contract TestPaymasterConfigurableMisbehavior is TestPaymasterEverythingAccepted {
bool public withdrawDuringPostRelayedCall;
bool public withdrawDuringPreRelayedCall;
boo... | address(relayHub)!=address(0),"relay hub address not set" | 56,420 | address(relayHub)!=address(0) |
"All NFTs have been minted." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | totalSupply()<MAX_NFT_SUPPLY,"All NFTs have been minted." | 56,492 | totalSupply()<MAX_NFT_SUPPLY |
"The amount of Ugly Baby Kirby you are trying to mint exceeds the MAX_NFT_SUPPLY." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | totalSupply()+amountToMint<=MAX_NFT_SUPPLY,"The amount of Ugly Baby Kirby you are trying to mint exceeds the MAX_NFT_SUPPLY." | 56,492 | totalSupply()+amountToMint<=MAX_NFT_SUPPLY |
"Incorrect Ether value." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | UGLY_BABY_KIRBY_PRICE*amountToMint==msg.value,"Incorrect Ether value." | 56,492 | UGLY_BABY_KIRBY_PRICE*amountToMint==msg.value |
"You need at least 100,000,000,000 of token to mint." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | approvedToMint(msg.sender),"You need at least 100,000,000,000 of token to mint." | 56,492 | approvedToMint(msg.sender) |
"You have already minted!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | !hasMinted(msg.sender),"You have already minted!" | 56,492 | !hasMinted(msg.sender) |
"Ugly Baby One does not exist!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | _exists(_tokenOne),"Ugly Baby One does not exist!" | 56,492 | _exists(_tokenOne) |
"Ugly Baby Two does not exist!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | _exists(_tokenTwo),"Ugly Baby Two does not exist!" | 56,492 | _exists(_tokenTwo) |
"You do not own this token." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | _isApprovedOrOwner(msg.sender,_tokenOne),"You do not own this token." | 56,492 | _isApprovedOrOwner(msg.sender,_tokenOne) |
"You do not own this token." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address ... | _isApprovedOrOwner(msg.sender,_tokenTwo),"You do not own this token." | 56,492 | _isApprovedOrOwner(msg.sender,_tokenTwo) |
"You do not own the required number of Space Punk tokens" | // SPDX-License-Identifier: GPL-3.0
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/access/Ownab... | balanceOfSpacePunkOwner(msg.sender)>=_ids.length,"You do not own the required number of Space Punk tokens" | 56,582 | balanceOfSpacePunkOwner(msg.sender)>=_ids.length |
"Purchase would exceed max supply of tokens" | // SPDX-License-Identifier: GPL-3.0
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/access/Ownab... | totalSupply().add(_amount)<=TOKEN_LIMIT,"Purchase would exceed max supply of tokens" | 56,582 | totalSupply().add(_amount)<=TOKEN_LIMIT |
"Insufficient funds to purchase" | // SPDX-License-Identifier: GPL-3.0
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/access/Ownab... | getTokenPrice().mul(_amount)==msg.value,"Insufficient funds to purchase" | 56,582 | getTokenPrice().mul(_amount)==msg.value |
"Owners Grant must be over before you can mint" | // SPDX-License-Identifier: GPL-3.0
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/access/Ownab... | !ownersGrant,"Owners Grant must be over before you can mint" | 56,582 | !ownersGrant |
"msg.sender is not whiteliisted in KYC" | /**
@notice Exchange smart contract for ChelleCoin to AllocationTokens
*/
contract Exchange is IExchange, Ownable {
enum State {INACTIVE, ACTIVE}
IERC20 public erc20Token; // address of ERC-20 token allowed to be exchanged.
IAllocationToken public allocationToken; // address of Allocation Token Smart... | kyc.getAddressStatus(msg.sender),"msg.sender is not whiteliisted in KYC" | 56,602 | kyc.getAddressStatus(msg.sender) |
"transferFrom failed." | /**
@notice Exchange smart contract for ChelleCoin to AllocationTokens
*/
contract Exchange is IExchange, Ownable {
enum State {INACTIVE, ACTIVE}
IERC20 public erc20Token; // address of ERC-20 token allowed to be exchanged.
IAllocationToken public allocationToken; // address of Allocation Token Smart... | erc20Token.transferFrom(msg.sender,address(0x0),tokens),"transferFrom failed." | 56,602 | erc20Token.transferFrom(msg.sender,address(0x0),tokens) |
"member address cannot be 0" | pragma solidity 0.5.14;
/**
* @title Open-add Ether airdrop for members.
* @author Ross_Campbell, Bill_Warren and Scott H Stevenson of LexDAO
*/
contract ETHDropOpenAdd {
struct Member {
bool exists;
uint memberIndex;
}
mapping(address => Member) public memberList;
address ... | _members[i]!=address(0),"member address cannot be 0" | 56,736 | _members[i]!=address(0) |
"member already exists" | pragma solidity 0.5.14;
/**
* @title Open-add Ether airdrop for members.
* @author Ross_Campbell, Bill_Warren and Scott H Stevenson of LexDAO
*/
contract ETHDropOpenAdd {
struct Member {
bool exists;
uint memberIndex;
}
mapping(address => Member) public memberList;
address ... | memberList[newMember].exists!=true,"member already exists" | 56,736 | memberList[newMember].exists!=true |
"no such member to remove" | pragma solidity 0.5.14;
/**
* @title Open-add Ether airdrop for members.
* @author Ross_Campbell, Bill_Warren and Scott H Stevenson of LexDAO
*/
contract ETHDropOpenAdd {
struct Member {
bool exists;
uint memberIndex;
}
mapping(address => Member) public memberList;
address ... | memberList[_removeMember].exists=true,"no such member to remove" | 56,736 | memberList[_removeMember].exists=true |
"TaskTreasury: onlyWhitelistedServices" | // SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Reen... | _whitelistedServices.contains(msg.sender),"TaskTreasury: onlyWhitelistedServices" | 56,766 | _whitelistedServices.contains(msg.sender) |
"TaskTreasury: addWhitelistedService: whitelisted" | // SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Reen... | !_whitelistedServices.contains(_service),"TaskTreasury: addWhitelistedService: whitelisted" | 56,766 | !_whitelistedServices.contains(_service) |
"TaskTreasury: addWhitelistedService: !whitelisted" | // SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.0;
import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Reen... | _whitelistedServices.contains(_service),"TaskTreasury: addWhitelistedService: !whitelisted" | 56,766 | _whitelistedServices.contains(_service) |
"Can only initially mint once" | pragma solidity >=0.6.6;
contract HUDLToken is Ownable, ERC20{
/* Scalar for safe math */
uint256 scalar = 1000000;
/* Max supply of HUDL tokens */
uint256 maxSupply = 40000000 * 10**18;
/* Initial supply for distributor */
uint256 initialSupply = 2000000 * 10**18;
/* Initial founder supply*... | !initialMinted,"Can only initially mint once" | 56,781 | !initialMinted |
null | /*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------
file: Docsigner.sol
version: 0.1
author: Block8 Technologies
Samuel Brooks
date: 2018-02-01
checked: Anton Jurisevic
approve... | keccak256(signingHash)==keccak256(docHash) | 56,838 | keccak256(signingHash)==keccak256(docHash) |
null | /*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------
file: Docsigner.sol
version: 0.1
author: Block8 Technologies
Samuel Brooks
date: 2018-02-01
checked: Anton Jurisevic
approve... | checkSig(msg.sender) | 56,838 | checkSig(msg.sender) |
"U are only allowed a maxBag Trooper" | pragma solidity ^0.8.0;
/**
* @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... | balanceOf(recipient)+amount<=_maxBagTotal,"U are only allowed a maxBag Trooper" | 56,851 | balanceOf(recipient)+amount<=_maxBagTotal |
"Need to hold 0.02% STARS" | pragma solidity ^0.8.0;
/**
* @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... | STARSContract.balanceOf(recipient)>2000000000*10**18,"Need to hold 0.02% STARS" | 56,851 | STARSContract.balanceOf(recipient)>2000000000*10**18 |
"U are only allowed a maxBag Trooper" | pragma solidity ^0.8.0;
/**
* @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... | balanceOf(recipient)+amount<=_maxBagNovice,"U are only allowed a maxBag Trooper" | 56,851 | balanceOf(recipient)+amount<=_maxBagNovice |
"U are only allowed a maxBag Trooper" | pragma solidity ^0.8.0;
/**
* @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... | balanceOf(recipient)+amount<=_maxBagTrooper,"U are only allowed a maxBag Trooper" | 56,851 | balanceOf(recipient)+amount<=_maxBagTrooper |
'Starship already docked' | pragma solidity ^0.8.0;
/**
* @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... | !_alreadyDocked,'Starship already docked' | 56,851 | !_alreadyDocked |
null | pragma solidity ^0.8.0;
/**
* @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... | !_realTrooper[trooperWallet] | 56,851 | !_realTrooper[trooperWallet] |
"Minting permanently disabled." | pragma solidity ^0.8.0;
/**
* @dev Offical Planica 2022 NFT collection.
*/
contract PlanicaNft is ERC721Enumerable, Ownable {
/**
* @dev URI base for tokenURI function. Token URI is constructed as _baseTokenURI + tokenId.
*/
string public baseTokenURI;
/**
* @dev Marks if minting new tokens f... | !mintingPermanentlyDisabled,"Minting permanently disabled." | 56,883 | !mintingPermanentlyDisabled |
"ERC20ToBEP20Wrapper: Already processed" | pragma solidity =0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external ... | bscToEthUserUnwrapNonces[user][bscNonce]==0,"ERC20ToBEP20Wrapper: Already processed" | 56,908 | bscToEthUserUnwrapNonces[user][bscNonce]==0 |
"Max supply exceeded!" | //SPDX-License-Identifier: UNLICENSED
//====================================================================================================
//============================ ===== ===== === ===== ==== ===========================
//=========================== === === == === ==== == === === =... | supply.current()+_mintAmount<maxSupplyPlusOne,"Max supply exceeded!" | 57,168 | supply.current()+_mintAmount<maxSupplyPlusOne |
"Attempting to mint too many creatures for pre-sale" | //SPDX-License-Identifier: UNLICENSED
//====================================================================================================
//============================ ===== ===== === ===== ==== ===========================
//=========================== === === == === ==== == === === =... | balanceOf(msg.sender)+_mintAmount<presalemaxMintAmountPlusOne,"Attempting to mint too many creatures for pre-sale" | 57,168 | balanceOf(msg.sender)+_mintAmount<presalemaxMintAmountPlusOne |
"Attempting to mint too many creatures for pre-sale (balance transferred out)" | //SPDX-License-Identifier: UNLICENSED
//====================================================================================================
//============================ ===== ===== === ===== ==== ===========================
//=========================== === === == === ==== == === === =... | whitelistBalances[msg.sender]+_mintAmount<presalemaxMintAmountPlusOne,"Attempting to mint too many creatures for pre-sale (balance transferred out)" | 57,168 | whitelistBalances[msg.sender]+_mintAmount<presalemaxMintAmountPlusOne |
"You're not whitelisted for presale!" | //SPDX-License-Identifier: UNLICENSED
//====================================================================================================
//============================ ===== ===== === ===== ==== ===========================
//=========================== === === == === ==== == === === =... | MerkleProof.verify(merkleProof,merkleRoot,leaf),"You're not whitelisted for presale!" | 57,168 | MerkleProof.verify(merkleProof,merkleRoot,leaf) |
'PAIR_EXISTS' | // SPDX-License-Identifier: No License (None)
pragma solidity =0.6.12;
//import "./SafeMath.sol";
//import "./Ownable.sol";
import "./SwapPair.sol";
interface IValidator {
// returns: user balance, native (foreign for us) encoded balance, foreign (native for us) encoded balance
function checkBalances(add... | getPair[tokenA][tokenB]==address(0),'PAIR_EXISTS' | 57,220 | getPair[tokenA][tokenB]==address(0) |
"No cover note available" | /* Copyright (C) 2020 NexusMutual.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distri... | _getLockedCNAgainstCover(coverId)>0,"No cover note available" | 57,234 | _getLockedCNAgainstCover(coverId)>0 |
"Cover note is deposited and can not be released" | /* Copyright (C) 2020 NexusMutual.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distri... | !isDeposited,"Cover note is deposited and can not be released" | 57,234 | !isDeposited |
null | /*! vlp.sol | (c) 2018 Develop by BelovITLab LLC (smartcontract.ru), author @stupidlovejoy | License: MIT */
pragma solidity 0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
}
f... | canSell[msg.sender][currentStep-1][currentStep]>=_value | 57,249 | canSell[msg.sender][currentStep-1][currentStep]>=_value |
null | /*! vlp.sol | (c) 2018 Develop by BelovITLab LLC (smartcontract.ru), author @stupidlovejoy | License: MIT */
pragma solidity 0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
}
f... | token.balanceOf(msg.sender)>=_value | 57,249 | token.balanceOf(msg.sender)>=_value |
null | /*! vlp.sol | (c) 2018 Develop by BelovITLab LLC (smartcontract.ru), author @stupidlovejoy | License: MIT */
pragma solidity 0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
}
f... | steps.length-1>currentStep | 57,249 | steps.length-1>currentStep |
null | contract Partner {
function exchangeTokensFromOtherContract(address _source, address _recipient, uint256 _RequestedTokens);
}
contract Target {
function transfer(address _to, uint _value);
}
contract PRECOE {
string public name = "Premined Coeval";
uint8 public decimals = 18;
string public ... | (msg.sender==owner)&&(initialTiers==false) | 57,263 | (msg.sender==owner)&&(initialTiers==false) |
null | contract Partner {
function exchangeTokensFromOtherContract(address _source, address _recipient, uint256 _RequestedTokens);
}
contract Target {
function transfer(address _to, uint _value);
}
contract PRECOE {
string public name = "Premined Coeval";
uint8 public decimals = 18;
string public ... | exchangePartners[_partner] | 57,263 | exchangePartners[_partner] |
null | contract Partner {
function exchangeTokensFromOtherContract(address _source, address _recipient, uint256 _RequestedTokens);
}
contract Target {
function transfer(address _to, uint _value);
}
contract PRECOE {
string public name = "Premined Coeval";
uint8 public decimals = 18;
string public ... | (msg.sender==owner)||(msg.sender==tierAdmin) | 57,263 | (msg.sender==owner)||(msg.sender==tierAdmin) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.