comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
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))&&(addTiers==true)
57,263
((msg.sender==owner)||(msg.sender==tierAdmin))&&(addTiers==true)
"Not enough tokens left to mint that many"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.s...
numberMintedPublic+numberOfTokens<=maxTokensPublic,"Not enough tokens left to mint that many"
57,312
numberMintedPublic+numberOfTokens<=maxTokensPublic
"You are not on the presale wallet list or have already minted"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.s...
presaleWalletList[msg.sender]==true,"You are not on the presale wallet list or have already minted"
57,312
presaleWalletList[msg.sender]==true
"Not enough tokens left to mint that many"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.s...
numberMintedPresale+numberOfTokens<=maxTokensPresale,"Not enough tokens left to mint that many"
57,312
numberMintedPresale+numberOfTokens<=maxTokensPresale
"You are not on the free wallet list or have already minted"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.s...
freeWalletList[msg.sender]==true,"You are not on the free wallet list or have already minted"
57,312
freeWalletList[msg.sender]==true
null
pragma solidity ^0.4.25; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function add(uint256 a, u...
blacklist[investor]==false
57,319
blacklist[investor]==false
null
pragma solidity ^0.4.21; 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) internal pure...
saleWasSet&&!tokenSaleHalted&&now>=startTime&&now<=endTime&&remainingTokens>0
57,590
saleWasSet&&!tokenSaleHalted&&now>=startTime&&now<=endTime&&remainingTokens>0
null
pragma solidity ^0.4.21; 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) internal pure...
!saleWasSet
57,590
!saleWasSet
"Not enough NFTs left to mint"
contract Demonzv2 is ERC721Enumerable, Ownable { using Strings for uint256; uint256 public MAX_TOKENS = 2000; uint256 public MAX_PER_WALLET = 50; uint256 public CURRENT_TOKEN_ID = 0; // for testing string public BEGINNING_URI = "https://api.cryptodemonz.com/"; string public ENDING_URI = "...
totalSupply()+_amount<=MAX_TOKENS,"Not enough NFTs left to mint"
57,645
totalSupply()+_amount<=MAX_TOKENS
"Invalid list"
contract Demonzv2 is ERC721Enumerable, Ownable { using Strings for uint256; uint256 public MAX_TOKENS = 2000; uint256 public MAX_PER_WALLET = 50; uint256 public CURRENT_TOKEN_ID = 0; // for testing string public BEGINNING_URI = "https://api.cryptodemonz.com/"; string public ENDING_URI = "...
_ids.length%3==0&&_ids.length<=9,"Invalid list"
57,645
_ids.length%3==0&&_ids.length<=9
"Not enough NFTs left to mint"
contract Demonzv2 is ERC721Enumerable, Ownable { using Strings for uint256; uint256 public MAX_TOKENS = 2000; uint256 public MAX_PER_WALLET = 50; uint256 public CURRENT_TOKEN_ID = 0; // for testing string public BEGINNING_URI = "https://api.cryptodemonz.com/"; string public ENDING_URI = "...
totalSupply()+_ids.length<=MAX_TOKENS,"Not enough NFTs left to mint"
57,645
totalSupply()+_ids.length<=MAX_TOKENS
"Exceeds wallet max allowed balance"
contract Demonzv2 is ERC721Enumerable, Ownable { using Strings for uint256; uint256 public MAX_TOKENS = 2000; uint256 public MAX_PER_WALLET = 50; uint256 public CURRENT_TOKEN_ID = 0; // for testing string public BEGINNING_URI = "https://api.cryptodemonz.com/"; string public ENDING_URI = "...
balanceOf(msg.sender)+_ids.length<=MAX_PER_WALLET,"Exceeds wallet max allowed balance"
57,645
balanceOf(msg.sender)+_ids.length<=MAX_PER_WALLET
"Sender is not owner"
contract Demonzv2 is ERC721Enumerable, Ownable { using Strings for uint256; uint256 public MAX_TOKENS = 2000; uint256 public MAX_PER_WALLET = 50; uint256 public CURRENT_TOKEN_ID = 0; // for testing string public BEGINNING_URI = "https://api.cryptodemonz.com/"; string public ENDING_URI = "...
demonzv1.ownerOf(_ids[i])==msg.sender,"Sender is not owner"
57,645
demonzv1.ownerOf(_ids[i])==msg.sender
null
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to...
getStartTime()>0
57,678
getStartTime()>0
"GOV balance not enought"
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to...
IERC20(gov).balanceOf(address(this))>=totalReward,"GOV balance not enought"
57,678
IERC20(gov).balanceOf(address(this))>=totalReward
"bad gem"
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to...
checkGem(gem),"bad gem"
57,678
checkGem(gem)
"duplicate name"
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to...
pairNameToGem[name]==address(0)||pairNameToGem[name]==gem,"duplicate name"
57,678
pairNameToGem[name]==address(0)||pairNameToGem[name]==gem
null
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to...
address(holder)==msg.sender
57,678
address(holder)==msg.sender
null
pragma solidity ^0.4.23; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256 c) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, ...
alreadyWithdraw[msg.sender]==0
57,703
alreadyWithdraw[msg.sender]==0
"RefundableCrowdsale: not finalized"
/** * @title RefundableCrowdsale * @dev Extension of `FinalizableCrowdsale` contract that adds a funding goal, and the possibility of users * getting a refund if goal is not met. * * Deprecated, use `RefundablePostDeliveryCrowdsale` instead. Note that if you allow tokens to be traded before the goal * is me...
finalized(),"RefundableCrowdsale: not finalized"
57,718
finalized()
"Bank account dont exist!"
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.6.8; import "./SafeMath.sol"; contract Bank { struct Account { uint amount; uint received; uint percentage; bool exists; } uint internal constant ENTRY_ENABLED = 1; uint internal constant ENTRY_DISABLED = 2; mapping(address...
accountStorage[_account].exists,"Bank account dont exist!"
57,725
accountStorage[_account].exists
"Not enough funds"
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.6.8; import "./SafeMath.sol"; contract Bank { struct Account { uint amount; uint received; uint percentage; bool exists; } uint internal constant ENTRY_ENABLED = 1; uint internal constant ENTRY_DISABLED = 2; mapping(address...
accountStorage[msg.sender].amount>=_amount&&_amount>0,"Not enough funds"
57,725
accountStorage[msg.sender].amount>=_amount&&_amount>0
"withdraw already succeeded"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./libraries/PbPool.sol"; import "./Signers.sol"; import "./Pau...
withdraws[wdId]==false,"withdraw already succeeded"
57,738
withdraws[wdId]==false
"Caller is not governor"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./libraries/PbPool.sol"; import "./Signers.sol"; import "./Pau...
isGovernor(msg.sender),"Caller is not governor"
57,738
isGovernor(msg.sender)
"Account is already governor"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./libraries/PbPool.sol"; import "./Signers.sol"; import "./Pau...
!isGovernor(_account),"Account is already governor"
57,738
!isGovernor(_account)
"Account is not governor"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./libraries/PbPool.sol"; import "./Signers.sol"; import "./Pau...
isGovernor(_account),"Account is not governor"
57,738
isGovernor(_account)
null
pragma solidity ^0.4.11; // zeppelin-solidity: 1.8.0 /** * @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 OwnershipTransfer...
!fused
57,878
!fused
"Max limit"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./ERC721Enumerable.sol"; import "./ERC721Burnable.sol"; import "./Ownable.sol"; import "./SafeMath.sol"; import "./Counters.sol"; import "./ERC721Pausable.sol"; contract KnowMansLand is ERC721Enumerable, Ownable, ERC721Burna...
total+_count<=AVAILABLE_TO_MINT,"Max limit"
57,944
total+_count<=AVAILABLE_TO_MINT
"bad value"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./ERC721Enumerable.sol"; import "./ERC721Burnable.sol"; import "./Ownable.sol"; import "./SafeMath.sol"; import "./Counters.sol"; import "./ERC721Pausable.sol"; contract KnowMansLand is ERC721Enumerable, Ownable, ERC721Burna...
_totalSupply()<newLimit,"bad value"
57,944
_totalSupply()<newLimit
"TheSevens: max supply exceeded"
pragma solidity =0.8.7; contract TheSevens is ERC721Enumerable, Ownable { using ECDSA for bytes32; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged(address whitelistSigner, uint32 startTime, uint32 endTime); event SaleConfigChanged(uint32 s...
_nextTokenId+count<=maxSupply,"TheSevens: max supply exceeded"
58,048
_nextTokenId+count<=maxSupply
"TheSevens: max reserve count exceeded"
pragma solidity =0.8.7; contract TheSevens is ERC721Enumerable, Ownable { using ECDSA for bytes32; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged(address whitelistSigner, uint32 startTime, uint32 endTime); event SaleConfigChanged(uint32 s...
tokensReserved+count<=reserveCount,"TheSevens: max reserve count exceeded"
58,048
tokensReserved+count<=reserveCount
"TheSevens: incorrect Ether value"
pragma solidity =0.8.7; contract TheSevens is ERC721Enumerable, Ownable { using ECDSA for bytes32; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged(address whitelistSigner, uint32 startTime, uint32 endTime); event SaleConfigChanged(uint32 s...
tokenPrice*count==msg.value,"TheSevens: incorrect Ether value"
58,048
tokenPrice*count==msg.value
"TheSevens: presale max count exceeded"
pragma solidity =0.8.7; contract TheSevens is ERC721Enumerable, Ownable { using ECDSA for bytes32; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged(address whitelistSigner, uint32 startTime, uint32 endTime); event SaleConfigChanged(uint32 s...
presaleBoughtCounts[msg.sender]+count<=maxCount,"TheSevens: presale max count exceeded"
58,048
presaleBoughtCounts[msg.sender]+count<=maxCount
"TheSevens: max count per tx exceeded"
pragma solidity =0.8.7; contract TheSevens is ERC721Enumerable, Ownable { using ECDSA for bytes32; using SafeCast for uint256; event TokenPriceChanged(uint256 newTokenPrice); event PresaleConfigChanged(address whitelistSigner, uint32 startTime, uint32 endTime); event SaleConfigChanged(uint32 s...
count<=(block.timestamp>=_saleConfig.maxCountUnlockTime?_saleConfig.unlockedMaxCount:_saleConfig.initMaxCount),"TheSevens: max count per tx exceeded"
58,048
count<=(block.timestamp>=_saleConfig.maxCountUnlockTime?_saleConfig.unlockedMaxCount:_saleConfig.initMaxCount)
null
pragma solidity ^0.4.24; contract VerityToken { function totalSupply() public constant returns (uint); function balanceOf(address tokenOwner) public constant returns (uint balance); function allowance(address tokenOwner, address spender) public constant returns (uint remaining); function transfer(a...
_tokens==(_nodes*nodePrice)
58,051
_tokens==(_nodes*nodePrice)
null
pragma solidity ^0.4.24; contract VerityToken { function totalSupply() public constant returns (uint); function balanceOf(address tokenOwner) public constant returns (uint balance); function allowance(address tokenOwner, address spender) public constant returns (uint remaining); function transfer(a...
VerityToken(tokenAddress).transferFrom(msg.sender,address(this),_tokens)
58,051
VerityToken(tokenAddress).transferFrom(msg.sender,address(this),_tokens)
"Not seller"
//"SPDX-License-Identifier: UNLICENSED" pragma solidity 0.6.6; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/cont...
idToOffer[offerId].fromAddress==msg.sender,"Not seller"
58,072
idToOffer[offerId].fromAddress==msg.sender
"Offer is not for swap"
//"SPDX-License-Identifier: UNLICENSED" pragma solidity 0.6.6; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/cont...
idToOffer[offerId].status==STATUS_CREATED,"Offer is not for swap"
58,072
idToOffer[offerId].status==STATUS_CREATED
"Not buyer"
//"SPDX-License-Identifier: UNLICENSED" pragma solidity 0.6.6; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/cont...
idToOffer[offerId].toAddress==msg.sender,"Not buyer"
58,072
idToOffer[offerId].toAddress==msg.sender
"cannot mint more than MAX_TOKENS"
pragma solidity ^0.7.1; contract SFII is ERC20 { using SafeERC20 for IERC20; address public governance; address public SFI_minter; uint256 public MAX_TOKENS = 20000 ether; constructor (string memory name, string memory symbol) ERC20(name, symbol) { } function mint_SFI(address to, uint256 amount) p...
this.totalSupply()+amount<MAX_TOKENS,"cannot mint more than MAX_TOKENS"
58,107
this.totalSupply()+amount<MAX_TOKENS
"Reverted"
// SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity ^0.7.1; import "../interfaces/IAaveLendingPool.sol"; import "./MockToken.sol"; contract MockAToken is MockToken { IERC20 public token; address public underlyingAssetAddress; bool public revertRedeem; constructor(a...
!revertRedeem,"Reverted"
58,157
!revertRedeem
"Vesting: Something went wrong with token transfer"
pragma solidity 0.8.4; contract Vesting is Ownable, ReentrancyGuard { using SafeMath for uint256; event TokensClaimed(address indexed beneficient, uint256 amount); IERC20 private _token; uint256 private _vestingLaunchBlock; uint256 private _numberOfParts; mapping(address => uint256) priva...
_token.transfer(msg.sender,tokensToClaim),"Vesting: Something went wrong with token transfer"
58,207
_token.transfer(msg.sender,tokensToClaim)
"MoonieIDOPayments: Something went wrong with ERC20 withdrawal"
pragma solidity 0.8.4; contract Vesting is Ownable, ReentrancyGuard { using SafeMath for uint256; event TokensClaimed(address indexed beneficient, uint256 amount); IERC20 private _token; uint256 private _vestingLaunchBlock; uint256 private _numberOfParts; mapping(address => uint256) priva...
IERC20(token).transfer(recipent,IERC20(token).balanceOf(address(this))),"MoonieIDOPayments: Something went wrong with ERC20 withdrawal"
58,207
IERC20(token).transfer(recipent,IERC20(token).balanceOf(address(this)))
"WhitelistAdminRole: caller does not have the WhitelistAdmin role"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
isWhitelistAdmin(_msgSender())||isOwner(),"WhitelistAdminRole: caller does not have the WhitelistAdmin role"
58,213
isWhitelistAdmin(_msgSender())||isOwner()
"invalid invite code"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
!compareStr(inviteCode,"")&&bytes(inviteCode).length==6,"invalid invite code"
58,213
!compareStr(inviteCode,"")&&bytes(inviteCode).length==6
"invite code is used"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
!isCodeUsed(inviteCode),"invite code is used"
58,213
!isCodeUsed(inviteCode)
"invite code not exist"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
isCodeUsed(beInvitedCode),"invite code not exist"
58,213
isCodeUsed(beInvitedCode)
"invite code can't be self"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
pCodexAddr[beInvitedCode]!=msg.sender,"invite code can't be self"
58,213
pCodexAddr[beInvitedCode]!=msg.sender
"can not beyond 256 eth"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
invest.amount.add(inAmount)<=256.mul(ethWei),"can not beyond 256 eth"
58,213
invest.amount.add(inAmount)<=256.mul(ethWei)
"player not exist"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
player.isVaild,"player not exist"
58,213
player.isVaild
"player not exist"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
pAddrxPid[msg.sender]!=0,"player not exist"
58,213
pAddrxPid[msg.sender]!=0
"The password is wrong"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
compareStr(password,transferPwd),"The password is wrong"
58,213
compareStr(password,transferPwd)
"It's not running yet"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
playerRound.isVaild,"It's not running yet"
58,213
playerRound.isVaild
"has been running"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
!rIDxPlayerRound[rid].isVaild,"has been running"
58,213
!rIDxPlayerRound[rid].isVaild
"must be greater than the current time"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
startTime>(now+1hours),"must be greater than the current time"
58,213
startTime>(now+1hours)
"contract balance must be lower than 1 ether"
pragma solidity ^0.5.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { } ...
address(this).balance<=0ether,"contract balance must be lower than 1 ether"
58,213
address(this).balance<=0ether
"UniswapOracle: pair not supported"
pragma solidity ^0.6.12; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256...
pairs[_pair].token0!=address(0),"UniswapOracle: pair not supported"
58,346
pairs[_pair].token0!=address(0)
"UniswapOracle: too early"
pragma solidity ^0.6.12; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256...
isUpdateRequired(_pair),"UniswapOracle: too early"
58,346
isUpdateRequired(_pair)
"Exceed Limit"
pragma solidity ^0.7.3; contract GLY is ERC20Burnable, AccessControl { using SafeMath for uint256; uint256 public INITIAL_SUPPLY = 1000000000 * 10**18; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); constructor() ERC20("Glyph", "GLY") { } /** * @dev grants minter ro...
totalSupply().add(_amount)<=INITIAL_SUPPLY,"Exceed Limit"
58,355
totalSupply().add(_amount)<=INITIAL_SUPPLY
"Exceeds maximum wallet token amount"
/** Excalibur - Sword of King Arthur //Excalibur Rules ▶ If you make the biggest buy (in tokens) you will hold the Excalibur for one hour, and collect 6% fees (in ETH). ‍Once the hour is finished, the counter will be reset and everyone will be able to compete again for the Excalibur. ▶ If you sell any tokens at al...
contractBalanceRecipient+amount<=_maxWalletAmount,"Exceeds maximum wallet token amount"
58,533
contractBalanceRecipient+amount<=_maxWalletAmount
"Don't cheat"
/** Excalibur - Sword of King Arthur //Excalibur Rules ▶ If you make the biggest buy (in tokens) you will hold the Excalibur for one hour, and collect 6% fees (in ETH). ‍Once the hour is finished, the counter will be reset and everyone will be able to compete again for the Excalibur. ▶ If you sell any tokens at al...
!isWalletToWallet(sender,recipient),"Don't cheat"
58,533
!isWalletToWallet(sender,recipient)
"not enough eth to cover deposit and fee"
// contracts/BloxStaking.sol pragma solidity ^0.6.2; contract BloxStaking { address public cdt; address public deposit_contract; address public exchange; uint256 internal total_staked; event DepositedValidator(bytes pubkey, bytes withdrawal_credentials, uint256 amount, uint256 updated_total_s...
msg.value==(32ether+fee_amount_eth),"not enough eth to cover deposit and fee"
58,620
msg.value==(32ether+fee_amount_eth)
null
pragma solidity ^0.4.13; contract BtzReceiver { using SafeMath for *; // BTZReceiver state variables BtzToken BTZToken; address public tokenAddress = 0x0; address public owner; uint numUsers; // Struct to store user info struct UserInfo { uint totalDepositAmount; ...
prebridge&&balances[msg.sender]>=_value
58,655
prebridge&&balances[msg.sender]>=_value
"Max investment allowed is 1 ether"
pragma solidity ^0.6.0; // SPDX-License-Identifier: MIT library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function ...
usersInvestments[msg.sender].add(msg.value)<=1ether,"Max investment allowed is 1 ether"
58,726
usersInvestments[msg.sender].add(msg.value)<=1ether
null
pragma solidity ^0.4.24; /********************************************************************************* ********************************************************************************* * * Name of the project: JeiCoin Gold Token * BiJust * Ethernity.live * * v1.5 * *******************************...
Token.transfer(_to,_value)
58,834
Token.transfer(_to,_value)
'ContractGuard: one block, one function'
// SPDX-License-Identifier: CC-BY-NC-SA-2.5 //@code0x2 pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { } function checkSameSenderReentranted() internal view returns...
!checkSameOriginReentranted(),'ContractGuard: one block, one function'
58,848
!checkSameOriginReentranted()
'ContractGuard: one block, one function'
// SPDX-License-Identifier: CC-BY-NC-SA-2.5 //@code0x2 pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { } function checkSameSenderReentranted() internal view returns...
!checkSameSenderReentranted(),'ContractGuard: one block, one function'
58,848
!checkSameSenderReentranted()
'Boardroom: The director does not exist'
// SPDX-License-Identifier: CC-BY-NC-SA-2.5 //@code0x2 pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { } function checkSameSenderReentranted() internal view returns...
balanceOf(msg.sender)>0,'Boardroom: The director does not exist'
58,848
balanceOf(msg.sender)>0
"Boardroom: Cannot withdraw yet"
// SPDX-License-Identifier: CC-BY-NC-SA-2.5 //@code0x2 pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { } function checkSameSenderReentranted() internal view returns...
withdrawalEpoch[msg.sender]<=ITreasury(treasury).getCurrentEpoch(),"Boardroom: Cannot withdraw yet"
58,848
withdrawalEpoch[msg.sender]<=ITreasury(treasury).getCurrentEpoch()
'Boardroom: Cannot allocate when totalSupply is 0'
// SPDX-License-Identifier: CC-BY-NC-SA-2.5 //@code0x2 pragma solidity ^0.6.12; contract ContractGuard { mapping(uint256 => mapping(address => bool)) private _status; function checkSameOriginReentranted() internal view returns (bool) { } function checkSameSenderReentranted() internal view returns...
totalSupply()>0,'Boardroom: Cannot allocate when totalSupply is 0'
58,848
totalSupply()>0
"Incorrect Ether value."
pragma solidity ^0.8.0; contract DankDecks is ERC721Enumerable, Ownable { uint256 public constant MAX_NFT_SUPPLY = 10420; uint public constant MAX_PURCHASABLE = 30; uint256 public DECK_PRICE = 50000000000000000; // 0.05 ETH string public PROVENANCE_HASH = ""; bool public saleStarted = false; ...
DECK_PRICE*amountToMint==msg.value,"Incorrect Ether value."
58,877
DECK_PRICE*amountToMint==msg.value
'RefundSponsor: nothing to refund'
// SPDX-License-Identifier: --🦉-- pragma solidity =0.7.0; contract RefundSponsor { address public refundSponsor; address public sponsoredContract; bool public isPaused; uint256 public flushNonce; uint256 public payoutPercent; mapping (bytes32 => uint256) public refundAmount; mappin...
refundAmount[sender]>0,'RefundSponsor: nothing to refund'
58,882
refundAmount[sender]>0
"HarvestMarket: An input address is not a contract"
pragma solidity 0.5.17; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "../IMoneyMar...
_vault.isContract()&&_rewards.isContract()&&_stakingPool.isContract()&&_stablecoin.isContract(),"HarvestMarket: An input address is not a contract"
58,981
_vault.isContract()&&_rewards.isContract()&&_stakingPool.isContract()&&_stablecoin.isContract()
"HarvestMarket: not contract"
pragma solidity 0.5.17; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "../IMoneyMar...
newValue.isContract(),"HarvestMarket: not contract"
58,981
newValue.isContract()
"Purchase would exceed max supply of tokens!"
pragma solidity ^0.8.9 <0.9.0; contract EggPass is ERC1155Supply, Ownable , ERC1155Pausable { bool public saleIsActive; uint constant TOKEN_ID = 1; uint constant NUM_RESERVED_TOKENS = 2000; uint constant MAX_TOKENS = 2000; // one too high to get cheaper gas comparison! address private constan...
totalSupply(TOKEN_ID)+1<MAX_TOKENS,"Purchase would exceed max supply of tokens!"
59,001
totalSupply(TOKEN_ID)+1<MAX_TOKENS
"you can only mint ONE pass per wallet!"
pragma solidity ^0.8.9 <0.9.0; contract EggPass is ERC1155Supply, Ownable , ERC1155Pausable { bool public saleIsActive; uint constant TOKEN_ID = 1; uint constant NUM_RESERVED_TOKENS = 2000; uint constant MAX_TOKENS = 2000; // one too high to get cheaper gas comparison! address private constan...
balanceOf(msg.sender,TOKEN_ID)==0,"you can only mint ONE pass per wallet!"
59,001
balanceOf(msg.sender,TOKEN_ID)==0
"not the correct index or address"
pragma solidity 0.5.4; contract DSAuthority { function canCall( address src, address dst, bytes4 sig ) public view returns (bool); } contract DSAuthEvents { event LogSetAuthority (address indexed authority); event LogSetOwner (address indexed owner); event OwnerUpdate (addre...
ths[_index].targetHandlerAddr==_targetHandlerAddr,"not the correct index or address"
59,010
ths[_index].targetHandlerAddr==_targetHandlerAddr
"must drain all balance in the target handler"
pragma solidity 0.5.4; contract DSAuthority { function canCall( address src, address dst, bytes4 sig ) public view returns (bool); } contract DSAuthEvents { event LogSetAuthority (address indexed authority); event LogSetOwner (address indexed owner); event OwnerUpdate (addre...
getTHPrinciple(_index)==0,"must drain all balance in the target handler"
59,010
getTHPrinciple(_index)==0
null
pragma solidity ^ 0.5.16; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external vie...
Governance(_governance).receiveApproval(sender,to)
59,021
Governance(_governance).receiveApproval(sender,to)
null
pragma solidity 0.4.26; import "./SafeMath.sol"; import "./Ownable.sol"; import "./SlrsToken.sol"; contract SlrsTokenItoContract is Ownable{ using SafeMath for uint256; SlrsToken public slrs; uint public startTime; address public vestingAddress; address public heliosEnergy; addres...
slrs.owner()==msg.sender
59,034
slrs.owner()==msg.sender
null
pragma solidity 0.4.26; import "./SafeMath.sol"; import "./Ownable.sol"; import "./SlrsToken.sol"; contract SlrsTokenItoContract is Ownable{ using SafeMath for uint256; SlrsToken public slrs; uint public startTime; address public vestingAddress; address public heliosEnergy; addres...
isAdminlisted[msg.sender]==true||msg.sender==owner
59,034
isAdminlisted[msg.sender]==true||msg.sender==owner
null
pragma solidity 0.4.26; import "./SafeMath.sol"; import "./Ownable.sol"; import "./SlrsToken.sol"; contract SlrsTokenItoContract is Ownable{ using SafeMath for uint256; SlrsToken public slrs; uint public startTime; address public vestingAddress; address public heliosEnergy; addres...
isWhitelisted[msg.sender]==true
59,034
isWhitelisted[msg.sender]==true
null
pragma solidity 0.4.26; import "./SafeMath.sol"; import "./Ownable.sol"; import "./SlrsToken.sol"; contract SlrsTokenItoContract is Ownable{ using SafeMath for uint256; SlrsToken public slrs; uint public startTime; address public vestingAddress; address public heliosEnergy; addres...
isWhitelisted[beneficiary]==true
59,034
isWhitelisted[beneficiary]==true
"onlyOwnerOrSelf"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
_msgSender()==owner()||_msgSender()==account,"onlyOwnerOrSelf"
59,055
_msgSender()==owner()||_msgSender()==account
"token must be non-zero address"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
address(token_)!=address(0),"token must be non-zero address"
59,055
address(token_)!=address(0)
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
token().transfer(beneficiary,amount)
59,055
token().transfer(beneficiary,amount)
"new claimed amount must be <= total grant amount"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
_tokenGrants[beneficiary].claimedAmount.add(amount)<=_tokenGrants[beneficiary].amount,"new claimed amount must be <= total grant amount"
59,055
_tokenGrants[beneficiary].claimedAmount.add(amount)<=_tokenGrants[beneficiary].amount
"invalid cliff/duration for interval"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
duration%interval==0&&cliffDuration%interval==0,"invalid cliff/duration for interval"
59,055
duration%interval==0&&cliffDuration%interval==0
"grant already exists"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
!_tokenGrants[beneficiary].isActive,"grant already exists"
59,055
!_tokenGrants[beneficiary].isActive
"no active grant"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
grant.isActive,"no active grant"
59,055
grant.isActive
"irrevocable"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @title Contract for token vesting schedules * * @dev Contract which gives the ability to act as a pool of funds for allocating * tokens to any number of other addresses. Token grants support the ability to vest over time in * accordance a pre...
vesting.isRevocable,"irrevocable"
59,055
vesting.isRevocable
"Achitects have been fully constructed."
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //--------------------------------------------------------------------------------------------------------------------------------------------------// // @@@ .&@@& ,,, ...
totalSupply()<=MAX_ArchitectSUPPLY,"Achitects have been fully constructed."
59,148
totalSupply()<=MAX_ArchitectSUPPLY
"Total Architects supply has been exceeded."
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //--------------------------------------------------------------------------------------------------------------------------------------------------// // @@@ .&@@& ,,, ...
totalSupply()+_count<=MAX_ArchitectSUPPLY,"Total Architects supply has been exceeded."
59,148
totalSupply()+_count<=MAX_ArchitectSUPPLY
"All Architects have been minted"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //--------------------------------------------------------------------------------------------------------------------------------------------------// // @@@ .&@@& ,,, ...
totalSupply()<MAX_ArchitectSUPPLY,"All Architects have been minted"
59,148
totalSupply()<MAX_ArchitectSUPPLY
"Purchase exceeds max allowed Architects"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //--------------------------------------------------------------------------------------------------------------------------------------------------// // @@@ .&@@& ,,, ...
_allowListClaimed[msg.sender]+_count<=allowListMaxMint,"Purchase exceeds max allowed Architects"
59,148
_allowListClaimed[msg.sender]+_count<=allowListMaxMint
"SOLD OUT!"
pragma solidity 0.8.10; /// SPDX-License-Identifier: UNLICENSED contract BCCC is ERC721, Ownable, ReentrancyGuard { using Strings for uint256; using Counters for Counters.Counter; string public baseURI; string public baseExtension = ".json"; uint8 public maxTx = 10; uint256 public maxSup...
totalToken()<maxSupply,"SOLD OUT!"
59,151
totalToken()<maxSupply
"Failed to enter compound token market"
/** * @title CompoundPool * @author Nate Welch <github.com/flyging> * @notice Based on Zefram Lou's implementation https://github.com/ZeframLou/pooled-cdai * @dev A bank that will pool compound tokens and allows the beneficiary to withdraw */ contract CompoundPool is ERC20, ERC20Detailed, Ownable { usin...
errors[0]==0,"Failed to enter compound token market"
59,243
errors[0]==0
"CompoundPool::withdrawInterest: Compound redeem failed"
/** * @title CompoundPool * @author Nate Welch <github.com/flyging> * @notice Based on Zefram Lou's implementation https://github.com/ZeframLou/pooled-cdai * @dev A bank that will pool compound tokens and allows the beneficiary to withdraw */ contract CompoundPool is ERC20, ERC20Detailed, Ownable { usin...
compoundToken.redeemUnderlying(_amount)==0,"CompoundPool::withdrawInterest: Compound redeem failed"
59,243
compoundToken.redeemUnderlying(_amount)==0
"CompoundPool::withdrawInterest: Not enough excess deposit token"
/** * @title CompoundPool * @author Nate Welch <github.com/flyging> * @notice Based on Zefram Lou's implementation https://github.com/ZeframLou/pooled-cdai * @dev A bank that will pool compound tokens and allows the beneficiary to withdraw */ contract CompoundPool is ERC20, ERC20Detailed, Ownable { usin...
depositTokenStoredBalance()>=totalSupply(),"CompoundPool::withdrawInterest: Not enough excess deposit token"
59,243
depositTokenStoredBalance()>=totalSupply()
"CompoundPool::deposit: Transfer failed"
/** * @title CompoundPool * @author Nate Welch <github.com/flyging> * @notice Based on Zefram Lou's implementation https://github.com/ZeframLou/pooled-cdai * @dev A bank that will pool compound tokens and allows the beneficiary to withdraw */ contract CompoundPool is ERC20, ERC20Detailed, Ownable { usin...
depositToken.transferFrom(msg.sender,address(this),_amount),"CompoundPool::deposit: Transfer failed"
59,243
depositToken.transferFrom(msg.sender,address(this),_amount)