comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"Presale already active."
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract TSSNFT is ERC721Enumerable, Ownable { using SafeMath for uint...
!hasPreSaleStarted,"Presale already active."
294,695
!hasPreSaleStarted
"DENORM_MIN"
pragma solidity 0.6.12; contract PowerIndexPoolController is PowerIndexWrappedController { using SafeERC20 for IERC20; /* ========== Storage ========== */ /** @dev Signature to execute bind in pool. */ bytes4 public constant BIND_SIG = bytes4(keccak256(bytes("bind(address,uint256,uint256,uint256,uint256)...
pool.getDenormalizedWeight(_token)==pool.getMinWeight(),"DENORM_MIN"
294,763
pool.getDenormalizedWeight(_token)==pool.getMinWeight()
"The value of controllers[msg.sender] must be non-zero"
/** * Copyright CENTRE SECZ 2018 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, d...
controllers[msg.sender]!=address(0),"The value of controllers[msg.sender] must be non-zero"
294,811
controllers[msg.sender]!=address(0)
"Worker must be a non-zero address"
/** * Copyright CENTRE SECZ 2018 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, d...
controllers[_controller]!=address(0),"Worker must be a non-zero address"
294,811
controllers[_controller]!=address(0)
"ERC721SlimApe: transfer to non ERC721Receiver implementer"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IE...
_checkOnERC721Received(address(0),to,startId,""),"ERC721SlimApe: transfer to non ERC721Receiver implementer"
294,845
_checkOnERC721Received(address(0),to,startId,"")
"ERC721SlimApe: transfer from incorrect owner"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IE...
ERC721SlimApe.ownerOf(tokenId)==from,"ERC721SlimApe: transfer from incorrect owner"
294,845
ERC721SlimApe.ownerOf(tokenId)==from
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
_owns(msg.sender,tokenId)
294,857
_owns(msg.sender,tokenId)
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
!_owns(to,tokenId)
294,857
!_owns(to,tokenId)
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
_approvedFor(msg.sender,tokenId)
294,857
_approvedFor(msg.sender,tokenId)
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
_owns(from,tokenId)
294,857
_owns(from,tokenId)
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
!contributorComplete[contributor]
294,857
!contributorComplete[contributor]
null
pragma solidity 0.4.24; contract ERC20 { function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); function transferFrom(address _from, address _to, uint _value) external returns (bool); } contract Ownable { address public owner = 0x345...
isBox(item)
294,857
isBox(item)
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
address(_uniswapFactory)!=0
294,859
address(_uniswapFactory)!=0
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
isValidTokens(src,dest)
294,859
isValidTokens(src,dest)
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
isValidTokens(srcToken,destToken)
294,859
isValidTokens(srcToken,destToken)
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
srcToken.transferFrom(msg.sender,address(this),srcAmount)
294,859
srcToken.transferFrom(msg.sender,address(this),srcAmount)
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
address(token)!=0
294,859
address(token)!=0
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
token.approve(uniswapExchange,2**255)
294,859
token.approve(uniswapExchange,2**255)
null
interface UniswapExchange { function ethToTokenSwapInput( uint256 min_tokens, uint256 deadline ) external payable returns (uint256 tokens_bought); function tokenToEthSwapInput( uint256 tokens_sold, uint256 min_eth, uint256 deadline ...
tokenExchange[token]!=0
294,859
tokenExchange[token]!=0
"Sent ether value is incorrect"
pragma solidity ^0.8.0; contract ThePlanetOfHares is ERC721Enumerable, Ownable { using Address for address; using Strings for uint256; address public multiSigWallet; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant NFT_PRICE_PRESALE = 60000000000000000; // 0.06 ETH uint...
NFT_PRICE_PRESALE*numberOfTokens<=msg.value,"Sent ether value is incorrect"
294,873
NFT_PRICE_PRESALE*numberOfTokens<=msg.value
"Purchase would exceed max supply of Hares"
pragma solidity ^0.8.0; contract ThePlanetOfHares is ERC721Enumerable, Ownable { using Address for address; using Strings for uint256; address public multiSigWallet; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant NFT_PRICE_PRESALE = 60000000000000000; // 0.06 ETH uint...
totalSupply()+numberOfTokens<=MAX_SUPPLY-hareReserve,"Purchase would exceed max supply of Hares"
294,873
totalSupply()+numberOfTokens<=MAX_SUPPLY-hareReserve
"Sent ether value is incorrect"
pragma solidity ^0.8.0; contract ThePlanetOfHares is ERC721Enumerable, Ownable { using Address for address; using Strings for uint256; address public multiSigWallet; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant NFT_PRICE_PRESALE = 60000000000000000; // 0.06 ETH uint...
NFT_PRICE*numberOfTokens<=msg.value,"Sent ether value is incorrect"
294,873
NFT_PRICE*numberOfTokens<=msg.value
"Metadata is locked"
pragma solidity ^0.8.0; contract ThePlanetOfHares is ERC721Enumerable, Ownable { using Address for address; using Strings for uint256; address public multiSigWallet; uint256 public constant MAX_SUPPLY = 10000; uint256 public constant NFT_PRICE_PRESALE = 60000000000000000; // 0.06 ETH uint...
!isMetadataLocked,"Metadata is locked"
294,873
!isMetadataLocked
null
pragma solidity ^0.5.0; contract Root is Ownable, Controllable { bytes32 constant private ROOT_NODE = bytes32(0); bytes4 constant private INTERFACE_META_ID = bytes4(keccak256("supportsInterface(bytes4)")); event TLDLocked(bytes32 indexed label); ENS public ens; mapping(bytes32=>bool) public lo...
!locked[label]
294,878
!locked[label]
"Supply limit"
/* ╔═╗┌─┐┌─┐┌─┐┌┐┌┬ ╔═╗┌─┐┌┐┌┌─┐┬─┐┌─┐┌┬┐┬┬ ┬┌─┐ ╚═╗├─┤│ │ │││││ ║ ╦├┤ │││├┤ ├┬┘├─┤ │ │└┐┌┘├┤ ╚═╝┴ ┴└─┘└─┘┘└┘┴ ╚═╝└─┘┘└┘└─┘┴└─┴ ┴ ┴ ┴ └┘ └─┘ */ pragma solidity ^0.8.2; contract SaconiHolmovimiento is ERC721, ERC721Enumerable, Ownable { uint256 public constant MAX_SUPPLY = 2000; uint256 public cons...
amount+tokenCounter<MAX_SUPPLY,"Supply limit"
294,919
amount+tokenCounter<MAX_SUPPLY
"AngryApeArmyWeapons::claimByOwner: Token outside valid range."
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface AAAToken { function tokensOfOwner(address _owner) external v...
_tokenIds[i]<MAX_WEAPONS,"AngryApeArmyWeapons::claimByOwner: Token outside valid range."
295,074
_tokenIds[i]<MAX_WEAPONS
"AngryApeArmyWeapons::startDrop: Drop already active."
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface AAAToken { function tokensOfOwner(address _owner) external v...
!hasDropStarted,"AngryApeArmyWeapons::startDrop: Drop already active."
295,074
!hasDropStarted
"AngryApeArmyWeapons::startDrop: Drop has already finished."
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface AAAToken { function tokensOfOwner(address _owner) external v...
!hasDropFinished,"AngryApeArmyWeapons::startDrop: Drop has already finished."
295,074
!hasDropFinished
"Governance::propose: proposer votes below proposal threshold"
/* This contract is provided "as is" and "with all faults." The deployer makes no representations or warranties of any kind concerning the safety, suitability, lack of exploits, inaccuracies, typographical errors, or other harmful components of this contract. There are inherent dangers in the use of any contract,...
VOTER.getPriorVotes(msg.sender,block.number.sub(1))>proposalThreshold(),"Governance::propose: proposer votes below proposal threshold"
295,110
VOTER.getPriorVotes(msg.sender,block.number.sub(1))>proposalThreshold()
"Governance::_queueOrRevert: proposal action already queued at eta"
/* This contract is provided "as is" and "with all faults." The deployer makes no representations or warranties of any kind concerning the safety, suitability, lack of exploits, inaccuracies, typographical errors, or other harmful components of this contract. There are inherent dangers in the use of any contract,...
!queuedTransactions[keccak256(abi.encode(target,value,signature,data,eta))],"Governance::_queueOrRevert: proposal action already queued at eta"
295,110
!queuedTransactions[keccak256(abi.encode(target,value,signature,data,eta))]
"Governance::cancel: proposer above threshold"
/* This contract is provided "as is" and "with all faults." The deployer makes no representations or warranties of any kind concerning the safety, suitability, lack of exploits, inaccuracies, typographical errors, or other harmful components of this contract. There are inherent dangers in the use of any contract,...
VOTER.getPriorVotes(proposal.proposer,block.number.sub(1))<proposalThreshold(),"Governance::cancel: proposer above threshold"
295,110
VOTER.getPriorVotes(proposal.proposer,block.number.sub(1))<proposalThreshold()
"No re-entrancy"
/** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ functio...
!disbursing,"No re-entrancy"
295,183
!disbursing
"not whitelisted"
pragma solidity ^0.6.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint a...
whitelistCapsRound1[msg.sender],"not whitelisted"
295,260
whitelistCapsRound1[msg.sender]
"MoonPlusCrowdsale: bigger than max contribution whitesale."
pragma solidity ^0.6.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint a...
contributions[beneficiary].add(weiAmount)<=MAX_CONTRIBUTION_WHITE,"MoonPlusCrowdsale: bigger than max contribution whitesale."
295,260
contributions[beneficiary].add(weiAmount)<=MAX_CONTRIBUTION_WHITE
"Sorry, you've claimed your freebies for the day."
pragma solidity ^0.8.0; // Importing ERC 721 standard contracts from OpenZeppelin import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counte...
balanceOf(_msgSender())<=3,"Sorry, you've claimed your freebies for the day."
295,303
balanceOf(_msgSender())<=3
"Max Supply Reached"
pragma solidity ^0.8.0; // Importing ERC 721 standard contracts from OpenZeppelin import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counte...
_currentTokenId.add(num)<MAX_SUPPLY,"Max Supply Reached"
295,303
_currentTokenId.add(num)<MAX_SUPPLY
null
pragma solidity ^0.8.0; // Importing ERC 721 standard contracts from OpenZeppelin import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counte...
amountToMint.mul(Discount)<=msg.value
295,303
amountToMint.mul(Discount)<=msg.value
"Max Supply Reached"
pragma solidity ^0.8.0; // Importing ERC 721 standard contracts from OpenZeppelin import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counte...
_currentTokenId.add(amountToMint)<MAX_SUPPLY,"Max Supply Reached"
295,303
_currentTokenId.add(amountToMint)<MAX_SUPPLY
"Max Limit"
pragma solidity ^0.8.0; // Importing ERC 721 standard contracts from OpenZeppelin import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counte...
_currentTokenId+num<MAX_SUPPLY,"Max Limit"
295,303
_currentTokenId+num<MAX_SUPPLY
null
pragma solidity >=0.4.22 <0.7.0; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } contract GTX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; ...
(msg.sender==owner)
295,365
(msg.sender==owner)
"Supply exceeded!"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
supply.add(_num)<_totalAvailableForSale,"Supply exceeded!"
295,465
supply.add(_num)<_totalAvailableForSale
"This Address has not been whitelisted"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
_canTransferBeforeMintingIsEnabled[msg.sender],"This Address has not been whitelisted"
295,465
_canTransferBeforeMintingIsEnabled[msg.sender]
"Max Number of presale mints reached"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
(_amountMintedByAddress[msg.sender].add(_num))<_tokensAllowedPerPresaleAddress,"Max Number of presale mints reached"
295,465
(_amountMintedByAddress[msg.sender].add(_num))<_tokensAllowedPerPresaleAddress
"Reserve has already been minted"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
!_initialReserveMinted,"Reserve has already been minted"
295,465
!_initialReserveMinted
"Already added to list"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
!_canTransferBeforeMintingIsEnabled[accounts[i]],"Already added to list"
295,465
!_canTransferBeforeMintingIsEnabled[accounts[i]]
"Account not whitelisted"
pragma solidity >=0.6.0 <0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
_canTransferBeforeMintingIsEnabled[accounts[i]],"Account not whitelisted"
295,465
_canTransferBeforeMintingIsEnabled[accounts[i]]
null
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
database.boolStorage(keccak256(abi.encodePacked("contract",msg.sender)))
295,525
database.boolStorage(keccak256(abi.encodePacked("contract",msg.sender)))
"Manager percent need to be less than 100"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
(_assetManagerPerc+database.uintStorage(keccak256(abi.encodePacked("platform.percentage"))))<100,"Manager percent need to be less than 100"
295,525
(_assetManagerPerc+database.uintStorage(keccak256(abi.encodePacked("platform.percentage"))))<100
"Asset URI is not unique"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
!database.boolStorage(keccak256(abi.encodePacked("asset.uri",_assetURI))),"Asset URI is not unique"
295,525
!database.boolStorage(keccak256(abi.encodePacked("asset.uri",_assetURI)))
"Failed to set crowdsale values"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
setCrowdsaleValues(assetAddress,_fundingLength,_amountToRaise),"Failed to set crowdsale values"
295,525
setCrowdsaleValues(assetAddress,_fundingLength,_amountToRaise)
"Failed to set asset values"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
setAssetValues(assetAddress,_assetURI,_ipfs,msg.sender,_assetManagerPerc,_amountToRaise,_fundingToken),"Failed to set asset values"
295,525
setAssetValues(assetAddress,_assetURI,_ipfs,msg.sender,_assetManagerPerc,_amountToRaise,_fundingToken)
"Failed to lock ERC20 escrow"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
lockEscrowERC20(msg.sender,assetAddress,_paymentToken,_fundingToken,escrow),"Failed to lock ERC20 escrow"
295,525
lockEscrowERC20(msg.sender,assetAddress,_paymentToken,_fundingToken,escrow)
null
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
paymentToken.approve(address(kyber),estimation)
295,525
paymentToken.approve(address(kyber),estimation)
"Listing fee not paid"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
paymentToken.transfer(platformFundsWallet,listingFee),"Listing fee not paid"
295,525
paymentToken.transfer(platformFundsWallet,listingFee)
null
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
paymentToken.approve(address(kyber),_amount)
295,525
paymentToken.approve(address(kyber),_amount)
null
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
CrowdsaleGeneratorERC20_ERC20(platformTokenAddress).transfer(database.addressStorage(keccak256(abi.encodePacked("contract","EscrowReserve"))),amount)
295,525
CrowdsaleGeneratorERC20_ERC20(platformTokenAddress).transfer(database.addressStorage(keccak256(abi.encodePacked("contract","EscrowReserve"))),amount)
"Not owner"
pragma solidity ^0.4.24; // submitted by dev-xu // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math operations with safety checks that throw on error library SafeMath { // @notice Multiplies two numbers, throw...
database.boolStorage(keccak256(abi.encodePacked("owner",msg.sender))),"Not owner"
295,525
database.boolStorage(keccak256(abi.encodePacked("owner",msg.sender)))
"Transfers aren't enabled"
// // // // @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@...
transfersEnabled||_msgSender()==owner(),"Transfers aren't enabled"
295,531
transfersEnabled||_msgSender()==owner()
"DirectBonus: must have direct bonus manager role to set direct bonus fee"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./AccountStorage.sol"; abstract contract DirectBonus is AccountStorage { using SafeMath for uint256; uint256 private DIRECT_BONUS_FEE = 10; uint256 private MINIMUM_...
hasRole(DIRECT_BONUS_MANAGER_ROLE,msg.sender),"DirectBonus: must have direct bonus manager role to set direct bonus fee"
295,536
hasRole(DIRECT_BONUS_MANAGER_ROLE,msg.sender)
"Founder: must have founder manager role set investment cap bonus for founders"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./DirectBonus.sol"; abstract contract Founder is AccountStorage { using EnumerableSet for EnumerableSet.AddressSet; uint256 private FOUNDER_INVESTMENT_CAP_BONUS = ...
hasRole(FOUNDER_MANAGER_ROLE,msg.sender),"Founder: must have founder manager role set investment cap bonus for founders"
295,538
hasRole(FOUNDER_MANAGER_ROLE,msg.sender)
"Staking: must have staking manager role to set staking fee"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./AccountStorage.sol"; import "./Price.sol"; abstract contract Staking is AccountStorage, Price { using SafeMath for uint256; uint256 private _stakingProfitPerShare; ...
hasRole(STAKING_MANAGER_ROLE,msg.sender),"Staking: must have staking manager role to set staking fee"
295,541
hasRole(STAKING_MANAGER_ROLE,msg.sender)
"Staking: must have loyalty bonus manager role to stake bonuses"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./AccountStorage.sol"; import "./Price.sol"; abstract contract Staking is AccountStorage, Price { using SafeMath for uint256; uint256 private _stakingProfitPerShare; ...
hasRole(LOYALTY_BONUS_MANAGER_ROLE,msg.sender),"Staking: must have loyalty bonus manager role to stake bonuses"
295,541
hasRole(LOYALTY_BONUS_MANAGER_ROLE,msg.sender)
"does not own required token in additional contract"
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/cont...
secondContract.balanceOf(msg.sender)>0,"does not own required token in additional contract"
295,583
secondContract.balanceOf(msg.sender)>0
"sender not owner"
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/cont...
tokenContract.ownerOf(tokenIDs[i])==msg.sender,"sender not owner"
295,583
tokenContract.ownerOf(tokenIDs[i])==msg.sender
"already used for registration"
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6; import "@openzeppelin/contracts/utils/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721Holder.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/cont...
!isRegistered[key],"already used for registration"
295,583
!isRegistered[key]
"Vote: access unauthorized"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
IACL(ACL).accessible(msg.sender,address(this),msg.sig),"Vote: access unauthorized"
295,647
IACL(ACL).accessible(msg.sender,address(this),msg.sig)
"vote is expired"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
data.voteExpired()>now,"vote is expired"
295,647
data.voteExpired()>now
"sender is not a professional rater"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
IPRA(PRA).raters(msg.sender),"sender is not a professional rater"
295,647
IPRA(PRA).raters(msg.sender)
"issuer can't vote for self bond"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
data.issuer()!=msg.sender,"issuer can't vote for self bond"
295,647
data.issuer()!=msg.sender
"proposal is not permissive"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
IConfig(config).ratingCandidates(proposal),"proposal is not permissive"
295,647
IConfig(config).ratingCandidates(proposal)
"sender is a professional rater"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
!IPRA(PRA).raters(who),"sender is a professional rater"
295,647
!IPRA(PRA).raters(who)
"issuer can't vote for self bond"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
data.issuer()!=who,"issuer can't vote for self bond"
295,647
data.issuer()!=who
"vote is not winner"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
data.top()!=address(0),"vote is not winner"
295,647
data.top()!=address(0)
"voting profit withdrawed"
pragma solidity >=0.6.0; interface IPRA { function raters(address who) external view returns (bool); } interface IConfig { function ratingCandidates(address proposal) external view returns (bool); function depositDuration() external view returns (uint256); function professionalRatingWeightRatio()...
data.profits(who)==0,"voting profit withdrawed"
295,647
data.profits(who)==0
"buy: exchange arbitrary call failed"
contract MultiBuyer is CanReclaimToken { using SafeMath for uint256; function buyOnApprove( IMultiToken _mtkn, uint256 _minimumReturn, ERC20 _throughToken, address[] _exchanges, bytes _datas, uint[] _datasIndexes, // including 0 and LENGTH values ...
_exchanges[i].call.value(_values[i])(data),"buy: exchange arbitrary call failed"
295,660
_exchanges[i].call.value(_values[i])(data)
null
contract ExpectedRate is Withdrawable, ExpectedRateInterface, Utils2 { KyberNetwork public kyberNetwork; uint public quantityFactor = 2; uint public worstCaseRateFactorInBps = 50; uint constant UNIT_QTY_FOR_FEE_BURNER = 10 ** 18; ERC20 public knc; function ExpectedRate(KyberNetwork _kyberN...
srcQty*quantityFactor<=MAX_QTY
295,697
srcQty*quantityFactor<=MAX_QTY
"Limit reached"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openze...
currentToken+amountToMint<maxCap,"Limit reached"
295,710
currentToken+amountToMint<maxCap
null
pragma solidity 0.5.7; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error. */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } funct...
_GRBS.RS_referrerOf(beneficiary)!=address(0)
295,724
_GRBS.RS_referrerOf(beneficiary)!=address(0)
null
pragma solidity ^0.4.25; /** * @title SafeMath */ library SafeMath { /** * Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * Integer division of two numbers, truncating the quotient. */ functio...
sold+tokens<=maxPhase1
295,813
sold+tokens<=maxPhase1
null
pragma solidity ^0.4.25; /** * @title SafeMath */ library SafeMath { /** * Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * Integer division of two numbers, truncating the quotient. */ functio...
sold+tokens<=maxPhase2
295,813
sold+tokens<=maxPhase2
null
pragma solidity ^0.4.25; /** * @title SafeMath */ library SafeMath { /** * Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * Integer division of two numbers, truncating the quotient. */ functio...
sold+tokens<=maxPhase3
295,813
sold+tokens<=maxPhase3
null
// ___ _ ___ _ // | _ ) _ _ __| | __ _ __ __ ___ | _ \ ___ ___ | |_ // | _ \ | || | / _` | / _` | \ V / (_-< | _/ / -_) (_-< | _| // |___/ \_,_| \__,_| \__,_| \_/ /__/ |_| \___| /__/ \__| // Buda vs Pest // the most ridiculous Rock-Sci...
candidate.isRSPScience()
295,832
candidate.isRSPScience()
null
// ___ _ ___ _ // | _ ) _ _ __| | __ _ __ __ ___ | _ \ ___ ___ | |_ // | _ \ | || | / _` | / _` | \ V / (_-< | _/ / -_) (_-< | _| // |___/ \_,_| \__,_| \__,_| \_/ /__/ |_| \___| /__/ \__| // Buda vs Pest // the most ridiculous Rock-Sci...
_tokenBalances[msg.sender]>=amount
295,832
_tokenBalances[msg.sender]>=amount
null
// ___ _ ___ _ // | _ ) _ _ __| | __ _ __ __ ___ | _ \ ___ ___ | |_ // | _ \ | || | / _` | / _` | \ V / (_-< | _/ / -_) (_-< | _| // |___/ \_,_| \__,_| \__,_| \_/ /__/ |_| \___| /__/ \__| // Buda vs Pest // the most ridiculous Rock-Sci...
_tokenBalances[msg.sender]>=nTokens
295,832
_tokenBalances[msg.sender]>=nTokens
null
// ___ _ ___ _ // | _ ) _ _ __| | __ _ __ __ ___ | _ \ ___ ___ | |_ // | _ \ | || | / _` | / _` | \ V / (_-< | _/ / -_) (_-< | _| // |___/ \_,_| \__,_| \__,_| \_/ /__/ |_| \___| /__/ \__| // Buda vs Pest // the most ridiculous Rock-Sci...
_tokenBalances[this]>=nTokens*2
295,832
_tokenBalances[this]>=nTokens*2
"You must own at least one Samot NFT to participate in the pre-sale."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/Context.sol"; // ██╗ ...
nft.balanceOf(msg.sender)>0,"You must own at least one Samot NFT to participate in the pre-sale."
295,846
nft.balanceOf(msg.sender)>0
"Exceeds limit for pre-sale."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/access/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/Context.sol"; // ██╗ ...
balance.add(numberOfTokens)<=maxToMintPerNFT.mul(nft.balanceOf(msg.sender)),"Exceeds limit for pre-sale."
295,846
balance.add(numberOfTokens)<=maxToMintPerNFT.mul(nft.balanceOf(msg.sender))
"You can not free mint! You do not own enough CRTK tokens"
pragma solidity ^0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed w...
token.balanceOf(msg.sender)>=mintAmount*10**18,"You can not free mint! You do not own enough CRTK tokens"
295,882
token.balanceOf(msg.sender)>=mintAmount*10**18
"too much"
pragma solidity ^0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {tr...
totalDoodleApe+_times<=totalCount,"too much"
295,933
totalDoodleApe+_times<=totalCount
"Mint amount will exceed total collection amount."
pragma solidity ^0.8.0; /** * @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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {tr...
totalDoodleApe+1<=totalCount,"Mint amount will exceed total collection amount."
295,933
totalDoodleApe+1<=totalCount
"card not found"
pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Returns the smallest of two numbe...
cardCosts[card]!=0,"card not found"
295,936
cardCosts[card]!=0
"max cards minted"
pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Returns the smallest of two numbe...
smolStudio.totalSupply(card)<smolStudio.maxSupply(card),"max cards minted"
295,936
smolStudio.totalSupply(card)<smolStudio.maxSupply(card)
null
// SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../interfaces/IAddressProvider.sol"; import "../inter...
address(_addresses)!=address(0)
296,111
address(_addresses)!=address(0)
"Caller is not Manager"
// SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../interfaces/IAddressProvider.sol"; import "../inter...
a.controller().hasRole(a.controller().MANAGER_ROLE(),msg.sender),"Caller is not Manager"
296,111
a.controller().hasRole(a.controller().MANAGER_ROLE(),msg.sender)
null
// SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../libraries/WadRayMath.sol"; import "../governance/interfaces/IGovernanceAddressProvider.sol"; import "./interfaces/IMIMODistributor.sol"; import "./BaseDistributor.sol"...
address(_a)!=address(0)
296,119
address(_a)!=address(0)
null
// SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../libraries/WadRayMath.sol"; import "../governance/interfaces/IGovernanceAddressProvider.sol"; import "./interfaces/IMIMODistributor.sol"; import "./BaseDistributor.sol"...
address(_mimoDistributor)!=address(0)
296,119
address(_mimoDistributor)!=address(0)
"Not Authorised"
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "hardhat/console.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // /$$ /$$ /$$ ...
_isAuthorised[_msgSender()],"Not Authorised"
296,383
_isAuthorised[_msgSender()]
"Cannot remove this week items"
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "hardhat/console.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // /$$ /$$ /$$ ...
getCurrentWeek()<points.length-1,"Cannot remove this week items"
296,383
getCurrentWeek()<points.length-1
null
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; // /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since ...
pool.lpToken.transferFrom(msg.sender,address(this),_amount)
296,418
pool.lpToken.transferFrom(msg.sender,address(this),_amount)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; // /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since ...
pool.lpToken.transfer(msg.sender,_amount)
296,418
pool.lpToken.transfer(msg.sender,_amount)