comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
null | pragma solidity ^0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uin... | _totalsupply>(SafeMath.add(_premined,_mined)) | 301,629 | _totalsupply>(SafeMath.add(_premined,_mined)) |
null | pragma solidity ^0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uin... | mintingTime[_customerAddress]==0 | 301,629 | mintingTime[_customerAddress]==0 |
null | pragma solidity ^0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uin... | mintingTime[_customerAddress]>0 | 301,629 | mintingTime[_customerAddress]>0 |
'input yfie fail' | pragma solidity >=0.4.22 <0.6.0;
contract FIE_NEW_MINER
{
constructor ()public{
}
FIE_NEW_MINER public yfie = FIE_NEW_MINER(0xA1B3E61c15b97E85febA33b8F15485389d7836Db);
FIE_NEW_MINER public old_fie=FIE_NEW_MINER(0x301416B8792B9c2adE82D9D87773251C8AD8c89e);
FIE_NEW_MINER public old_lock=FIE_NE... | yfie.transferFrom(msg.sender,address(this),value),'input yfie fail' | 301,632 | yfie.transferFrom(msg.sender,address(this),value) |
null | pragma solidity >=0.4.22 <0.6.0;
contract FIE_NEW_MINER
{
constructor ()public{
}
FIE_NEW_MINER public yfie = FIE_NEW_MINER(0xA1B3E61c15b97E85febA33b8F15485389d7836Db);
FIE_NEW_MINER public old_fie=FIE_NEW_MINER(0x301416B8792B9c2adE82D9D87773251C8AD8c89e);
FIE_NEW_MINER public old_lock=FIE_NE... | yfie.transferFrom(address(this),msg.sender,user.lock_yfie) | 301,632 | yfie.transferFrom(address(this),msg.sender,user.lock_yfie) |
"ERC20FlashMint: invalid return value" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../../interfaces/IERC3156.sol";
import "../ERC20.sol";
/**
* @dev Implementation of the ERC3156 Flash loans extension, as defined in
* https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
*
* Adds the {flashLoan} method, which provides flash loan supp... | receiver.onFlashLoan(msg.sender,token,amount,fee,data)==_RETURN_VALUE,"ERC20FlashMint: invalid return value" | 301,732 | receiver.onFlashLoan(msg.sender,token,amount,fee,data)==_RETURN_VALUE |
"Cannot Mint more than maximum supply" | pragma solidity 0.5.16; /*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
|/ |/ /___)... | _totalSupply.add(mintedAmount)<=maxSupply,"Cannot Mint more than maximum supply" | 301,853 | _totalSupply.add(mintedAmount)<=maxSupply |
'user claimed air drop already' | pragma solidity 0.5.16; /*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
|/ |/ /___)... | !airdropClaimed[airdropClaimedIndex][msg.sender],'user claimed air drop already' | 301,853 | !airdropClaimed[airdropClaimedIndex][msg.sender] |
null | pragma solidity 0.5.16; /*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
|/ |/ /___)... | address(this).balance>=etherAmount | 301,853 | address(this).balance>=etherAmount |
"Insufficient DUNG!" | contract InventoryERC1155 is ERC1155, Ownable {
using Strings for uint256;
using SafeMath for uint256;
uint256 constant public TOOL_TYPE_COUNT = 6;
enum InventoryType {Hat, Pipe, Moonshine, Shovel, Rake, Pitchfork}
struct Inventory {
InventoryType itype;
uint256 priceDung;
... | IERC20(dungERC20).balanceOf(msg.sender)>=_amount.mul(inventoryProperties[_item].priceDung),"Insufficient DUNG!" | 301,903 | IERC20(dungERC20).balanceOf(msg.sender)>=_amount.mul(inventoryProperties[_item].priceDung) |
"max NFT per address exceeded for presale" | pragma solidity >=0.7.0 <0.9.0;
contract FatApeClub is ERC721Enumerable, Ownable {
using Strings for uint256;
string private baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public preSaleCost = 0.1 ether;
uint256 public cost = 0.3 ether;
uint256 ... | _ownerMintedCount+_mintAmount<=nftPerAddressLimitPresale,"max NFT per address exceeded for presale" | 301,912 | _ownerMintedCount+_mintAmount<=nftPerAddressLimitPresale |
"max NFT presale limit exceeded" | pragma solidity >=0.7.0 <0.9.0;
contract FatApeClub is ERC721Enumerable, Ownable {
using Strings for uint256;
string private baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public preSaleCost = 0.1 ether;
uint256 public cost = 0.3 ether;
uint256 ... | _supply+_mintAmount<=preSaleMaxSupply,"max NFT presale limit exceeded" | 301,912 | _supply+_mintAmount<=preSaleMaxSupply |
"max NFT per address exceeded" | pragma solidity >=0.7.0 <0.9.0;
contract FatApeClub is ERC721Enumerable, Ownable {
using Strings for uint256;
string private baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public preSaleCost = 0.1 ether;
uint256 public cost = 0.3 ether;
uint256 ... | _ownerMintedCount+_mintAmount<=nftPerAddressLimit,"max NFT per address exceeded" | 301,912 | _ownerMintedCount+_mintAmount<=nftPerAddressLimit |
'MAX_REACHED' | /*
8 888888888o. ,o888888o. b. 8 8 8888 88 8888888 8888888888 d888888o.
8 8888 `^888. . 8888 `88. 888o. 8 8 8888 88 8 8888 .`8888:' `88.
8 8888 `88. ,8 8888 `8b Y88888o. 8 8 8888 88 8 8888 8.`8888. Y8
8 8888 ... | _cinnamonRollIdCounter.current()+1<=maxCinnamonRollId,'MAX_REACHED' | 301,994 | _cinnamonRollIdCounter.current()+1<=maxCinnamonRollId |
'MAX_REACHED' | /*
8 888888888o. ,o888888o. b. 8 8 8888 88 8888888 8888888888 d888888o.
8 8888 `^888. . 8888 `88. 888o. 8 8 8888 88 8 8888 .`8888:' `88.
8 8888 `88. ,8 8888 `8b Y88888o. 8 8 8888 88 8 8888 8.`8888. Y8
8 8888 ... | _sprinkleIdCounter.current()+1<=maxSprinkleId,'MAX_REACHED' | 301,994 | _sprinkleIdCounter.current()+1<=maxSprinkleId |
'MAX_REACHED' | /*
8 888888888o. ,o888888o. b. 8 8 8888 88 8888888 8888888888 d888888o.
8 8888 `^888. . 8888 `88. 888o. 8 8 8888 88 8 8888 .`8888:' `88.
8 8888 `88. ,8 8888 `8b Y88888o. 8 8 8888 88 8 8888 8.`8888. Y8
8 8888 ... | _plainIdCounter.current()+1<=maxPlainId,'MAX_REACHED' | 301,994 | _plainIdCounter.current()+1<=maxPlainId |
null | /*
This contract is for on-chain governance of Autonomous System Research (ASResearch). All the fundings and benefits of ASResearch will be managed by this multi-signed smart contract and distributed per its on-chain governance rules. Learn more about ASResearch at https://asresearch.io/
*/
pragma solidity >=0.4.21... | !shareholder_exists(account) | 302,056 | !shareholder_exists(account) |
null | /*
This contract is for on-chain governance of Autonomous System Research (ASResearch). All the fundings and benefits of ASResearch will be managed by this multi-signed smart contract and distributed per its on-chain governance rules. Learn more about ASResearch at https://asresearch.io/
*/
pragma solidity >=0.4.21... | shareholder_exists(account) | 302,056 | shareholder_exists(account) |
null | pragma solidity ^0.5.0;
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract MultisigVaultERC20 {
using SafeMath for uint256;
struct Approval {
uint256 nonce;
uint256 coincieded;
address[] coinciedeParties;
}
uint256 priva... | parties[msg.sender] | 302,057 | parties[msg.sender] |
null | pragma solidity ^0.5.0;
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract MultisigVaultERC20 {
using SafeMath for uint256;
struct Approval {
uint256 nonce;
uint256 coincieded;
address[] coinciedeParties;
}
uint256 priva... | !coinciedeParties | 302,057 | !coinciedeParties |
null | /**
This is the source of a special time-locked token for the FTV Coin Deluxe.
If you hold a balance of the token and you wan to convert it to the FTV token, wait until the lockup period is over
and then transfer any amount to yourself.
it will convert the token to the real FTV Token at 0xf91254fe7e6e9f5986a0b41d... | releaseTimes[_holder]==0 | 302,082 | releaseTimes[_holder]==0 |
"release time is not met yet" | /**
This is the source of a special time-locked token for the FTV Coin Deluxe.
If you hold a balance of the token and you wan to convert it to the FTV token, wait until the lockup period is over
and then transfer any amount to yourself.
it will convert the token to the real FTV Token at 0xf91254fe7e6e9f5986a0b41d... | releaseTimes[_holder]<now,"release time is not met yet" | 302,082 | releaseTimes[_holder]<now |
"Minter: Can't set Mintable contract twice" | pragma solidity =0.6.11;
contract Minter is Ownable {
event Claimed(
uint256 index,
bytes32 sig,
address account,
uint256 count
);
bytes32 public immutable merkleRoot;
Mintable public mintable;
mapping(uint256 => bool) public claimed;
uint256 public nex... | address(mintable)==address(0),"Minter: Can't set Mintable contract twice" | 302,115 | address(mintable)==address(0) |
"Minter: Must have a mintable set" | pragma solidity =0.6.11;
contract Minter is Ownable {
event Claimed(
uint256 index,
bytes32 sig,
address account,
uint256 count
);
bytes32 public immutable merkleRoot;
Mintable public mintable;
mapping(uint256 => bool) public claimed;
uint256 public nex... | address(mintable)!=address(0),"Minter: Must have a mintable set" | 302,115 | address(mintable)!=address(0) |
"Minter: Can't claim a drop that's already been claimed" | pragma solidity =0.6.11;
contract Minter is Ownable {
event Claimed(
uint256 index,
bytes32 sig,
address account,
uint256 count
);
bytes32 public immutable merkleRoot;
Mintable public mintable;
mapping(uint256 => bool) public claimed;
uint256 public nex... | !claimed[index],"Minter: Can't claim a drop that's already been claimed" | 302,115 | !claimed[index] |
"Minter: merkle verification failed" | pragma solidity =0.6.11;
contract Minter is Ownable {
event Claimed(
uint256 index,
bytes32 sig,
address account,
uint256 count
);
bytes32 public immutable merkleRoot;
Mintable public mintable;
mapping(uint256 => bool) public claimed;
uint256 public nex... | merkleVerify(node,proof),"Minter: merkle verification failed" | 302,115 | merkleVerify(node,proof) |
"NOT_ROLLOVER_ROLE" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | hasRole(ROLLOVER_ROLE,_msgSender()),"NOT_ROLLOVER_ROLE" | 302,201 | hasRole(ROLLOVER_ROLE,_msgSender()) |
"NOT_MID_CYCLE_ROLE" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | hasRole(MID_CYCLE_ROLE,_msgSender()),"NOT_MID_CYCLE_ROLE" | 302,201 | hasRole(MID_CYCLE_ROLE,_msgSender()) |
"ReentrancyGuard: reentrant call" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | !_entered,"ReentrancyGuard: reentrant call" | 302,201 | !_entered |
"CONTROLLER_EXISTS" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | !controllerIds.contains(id),"CONTROLLER_EXISTS" | 302,201 | !controllerIds.contains(id) |
"INVALID_CONTROLLER" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | controllerIds.contains(id),"INVALID_CONTROLLER" | 302,201 | controllerIds.contains(id) |
"POOL_EXISTS" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | !pools.contains(pool),"POOL_EXISTS" | 302,201 | !pools.contains(pool) |
"INVALID_POOL" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | pools.contains(pool),"INVALID_POOL" | 302,201 | pools.contains(pool) |
"PREMATURE_EXECUTION" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | block.number>(currentCycle.add(cycleDuration)),"PREMATURE_EXECUTION" | 302,201 | block.number>(currentCycle.add(cycleDuration)) |
"INVALID_POOL" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | pools.contains(params.poolData[i].pool),"INVALID_POOL" | 302,201 | pools.contains(params.poolData[i].pool) |
"INVALID_POOL" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "../interfaces/IManager.sol";
import "../interfaces/ILiquidityPool.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import {IERC20Upgradeable as... | pools.contains(params.poolsForWithdraw[y]),"INVALID_POOL" | 302,201 | pools.contains(params.poolsForWithdraw[y]) |
"Max Podz Reached" | pragma solidity ^0.7.0;
/**
* @title BoredApeYachtClub contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoPodz is ERC721, Ownable {
using SafeMath for uint256;
string public PODZ_PROVENANCE = "";
uint256 public constant podzPrice = 250000000000000000... | totalSupply().add(numberOfTokens)<=MAX_PODZ,"Max Podz Reached" | 302,299 | totalSupply().add(numberOfTokens)<=MAX_PODZ |
"Can mint 2" | pragma solidity ^0.7.0;
/**
* @title BoredApeYachtClub contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoPodz is ERC721, Ownable {
using SafeMath for uint256;
string public PODZ_PROVENANCE = "";
uint256 public constant podzPrice = 250000000000000000... | balanceOf(msg.sender).add(numberOfTokens)<=maxPodzPerPerson,"Can mint 2" | 302,299 | balanceOf(msg.sender).add(numberOfTokens)<=maxPodzPerPerson |
"Incorrect Eth" | pragma solidity ^0.7.0;
/**
* @title BoredApeYachtClub contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoPodz is ERC721, Ownable {
using SafeMath for uint256;
string public PODZ_PROVENANCE = "";
uint256 public constant podzPrice = 250000000000000000... | podzPrice.mul(numberOfTokens)<=msg.value,"Incorrect Eth" | 302,299 | podzPrice.mul(numberOfTokens)<=msg.value |
"Not whitelisted" | pragma solidity ^0.7.0;
/**
* @title BoredApeYachtClub contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoPodz is ERC721, Ownable {
using SafeMath for uint256;
string public PODZ_PROVENANCE = "";
uint256 public constant podzPrice = 250000000000000000... | whitelistedAddresses[msg.sender]==true,"Not whitelisted" | 302,299 | whitelistedAddresses[msg.sender]==true |
"Soldout!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"... | totalToken()<=MAX_ELEMENTS,"Soldout!" | 302,315 | totalToken()<=MAX_ELEMENTS |
"Max limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"... | total+_tokenAmount<=MAX_ELEMENTS,"Max limit" | 302,315 | total+_tokenAmount<=MAX_ELEMENTS |
"Max limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"... | total+totalQuantity<=MAX_ELEMENTS,"Max limit" | 302,315 | total+totalQuantity<=MAX_ELEMENTS |
"SignedSafeMath: multiplication overflow" | pragma solidity ^0.6.0;
library SignedSafeMath {
int256 constant private _INT256_MIN = -2**255;
/**
* @dev Multiplies two signed integers, reverts on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
// Gas optimization: this is cheaper than requiring 'a' not being ze... | !(a==-1&&b==_INT256_MIN),"SignedSafeMath: multiplication overflow" | 302,410 | !(a==-1&&b==_INT256_MIN) |
"SignedSafeMath: division overflow" | pragma solidity ^0.6.0;
library SignedSafeMath {
int256 constant private _INT256_MIN = -2**255;
/**
* @dev Multiplies two signed integers, reverts on overflow.
*/
function mul(int256 a, int256 b) internal pure returns (int256) {
}
/**
* @dev Integer division of two signed integers truncating... | !(b==-1&&a==_INT256_MIN),"SignedSafeMath: division overflow" | 302,410 | !(b==-1&&a==_INT256_MIN) |
null | pragma solidity 0.6.6;
/**
* @title PreCoordinator is a contract that builds on-chain service agreements
* using the current architecture of 1 request to 1 oracle contract.
* @dev This contract accepts requests as service agreement IDs and loops over
* the corresponding list of oracles to create distinct reque... | hasAccess(_sender,_data) | 302,412 | hasAccess(_sender,_data) |
"Nonce already in-use" | pragma solidity 0.6.6;
/**
* @title PreCoordinator is a contract that builds on-chain service agreements
* using the current architecture of 1 request to 1 oracle contract.
* @dev This contract accepts requests as service agreement IDs and loops over
* the corresponding list of oracles to create distinct reque... | requesters[callbackRequestId].sender==address(0),"Nonce already in-use" | 302,412 | requesters[callbackRequestId].sender==address(0) |
"Unable to transfer" | pragma solidity 0.6.6;
/**
* @title PreCoordinator is a contract that builds on-chain service agreements
* using the current architecture of 1 request to 1 oracle contract.
* @dev This contract accepts requests as service agreement IDs and loops over
* the corresponding list of oracles to create distinct reque... | _link.transfer(msg.sender,_link.balanceOf(address(this))),"Unable to transfer" | 302,412 | _link.transfer(msg.sender,_link.balanceOf(address(this))) |
"Unable to transfer" | pragma solidity 0.6.6;
/**
* @title PreCoordinator is a contract that builds on-chain service agreements
* using the current architecture of 1 request to 1 oracle contract.
* @dev This contract accepts requests as service agreement IDs and loops over
* the corresponding list of oracles to create distinct reque... | _link.transfer(req.sender,_payment),"Unable to transfer" | 302,412 | _link.transfer(req.sender,_payment) |
"Already is a controller" | pragma solidity >=0.4.23;
contract Math {
function add(uint x, uint y) internal pure returns (uint z) {
}
function sub(uint x, uint y) internal pure returns(uint z) {
}
}
contract Owable {
address private owner;
constructor() public {
}
modifier isOwable() {
}
functi... | !controllers[_newController],"Already is a controller" | 302,593 | !controllers[_newController] |
"Not a controller" | pragma solidity >=0.4.23;
contract Math {
function add(uint x, uint y) internal pure returns (uint z) {
}
function sub(uint x, uint y) internal pure returns(uint z) {
}
}
contract Owable {
address private owner;
constructor() public {
}
modifier isOwable() {
}
functi... | controllers[_controller],"Not a controller" | 302,593 | controllers[_controller] |
"ERC20: Tx not allowed yet." | /**
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
interface IERC20 {
function totalSupply() exte... | _buyInfo[from]==0||_buyInfo[from].add(_timeLimitFromLastBuy)<now,"ERC20: Tx not allowed yet." | 302,626 | _buyInfo[from]==0||_buyInfo[from].add(_timeLimitFromLastBuy)<now |
'ERC20: current balance exceeds the max limit.' | /**
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
}
function _msgData() internal view virtual returns (bytes memory) {
}
}
interface IERC20 {
function totalSupply() exte... | balanceOf(to)<=txLimitAmount,'ERC20: current balance exceeds the max limit.' | 302,626 | balanceOf(to)<=txLimitAmount |
"wake too much" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @creator: functionofmazes
/// @author: manifold.xyz
//////////////////////////////////////////////////////////////////////////////////////////
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //
// @@@@@@@@@@@@@@@@@@@@... | totalmaze+_times<=totalCount,"wake too much" | 302,632 | totalmaze+_times<=totalCount |
'X' | pragma solidity ^0.5.0;
contract TellorWrapper {
function balanceOf(address _user) external view returns (uint256);
function transfer(address _to, uint256 _amount) external returns (bool);
function withdrawStake() external;
function getUintVar(bytes32 _data) public view returns (uint256);
}
contr... | gasleft()>1000000||TellorWrapper(tellor).getUintVar(slotProgress)<4,'X' | 302,638 | gasleft()>1000000||TellorWrapper(tellor).getUintVar(slotProgress)<4 |
"funding failed at loan contract" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | loanContract.onFundingReceived(msg.sender,newFundingAmount),"funding failed at loan contract" | 302,663 | loanContract.onFundingReceived(msg.sender,newFundingAmount) |
"erc20 transfer failed" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | transfer(loanAddress,newFundingAmount,tokenAddress),"erc20 transfer failed" | 302,663 | transfer(loanAddress,newFundingAmount,tokenAddress) |
"repayment failed at loan contract" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | loanContract.onRepaymentReceived(msg.sender,repaymentAmount),"repayment failed at loan contract" | 302,663 | loanContract.onRepaymentReceived(msg.sender,repaymentAmount) |
"erc20 repayment failed" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | transfer(loanAddress,repaymentAmount,tokenAddress),"erc20 repayment failed" | 302,663 | transfer(loanAddress,repaymentAmount,tokenAddress) |
"funding not approved" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | ERC20Wrapper.allowance(tokenAddress,msg.sender,address(this))>=amount,"funding not approved" | 302,663 | ERC20Wrapper.allowance(tokenAddress,msg.sender,address(this))>=amount |
"failed at transferFrom" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | ERC20Wrapper.transferFrom(tokenAddress,msg.sender,loanAddress,amount),"failed at transferFrom" | 302,663 | ERC20Wrapper.transferFrom(tokenAddress,msg.sender,loanAddress,amount) |
"user does not have KYC" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | auth.isKYCConfirmed(msg.sender),"user does not have KYC" | 302,663 | auth.isKYCConfirmed(msg.sender) |
"user does not have a deposit" | pragma solidity 0.5.12;
contract DAIProxy is IDAIProxy, Ownable {
IAuthorization auth;
address public administrator;
bool public hasToDeposit;
event AuthAddressUpdated(address newAuthAddress, address administrator);
event AdministratorUpdated(address newAdministrator);
event HasToDeposit(... | auth.hasDeposited(msg.sender),"user does not have a deposit" | 302,663 | auth.hasDeposited(msg.sender) |
"Input length error" | // SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
// CHIP Utility Token
//
// Symbol : CHIP
// Name : CHIP Utility Token
// Initial supply: 100,000,000.000000
// Decimals : 6
// ---------------------------------------------------... | msg.data.length==(((4+length256)*32)+4),"Input length error" | 302,684 | msg.data.length==(((4+length256)*32)+4) |
"PartialIdleV1.burn: IDLE_MONEY_MARKET_NOT_LIQUID" | pragma solidity 0.5.11;
library PartialIdleV1 {
using SafeMath for uint256;
function burn(address _idleTokenAddress, uint256 _amount) internal {
IIdleV1 idleToken = IIdleV1(_idleTokenAddress);
uint256 idleTokenAmount = Utils.balanceOrAmount(IERC20(_idleTokenAddress), _amount);
uint... | IERC20(idleToken.token()).balanceOf(address(this))>=(expectedAmount-1),"PartialIdleV1.burn: IDLE_MONEY_MARKET_NOT_LIQUID" | 302,801 | IERC20(idleToken.token()).balanceOf(address(this))>=(expectedAmount-1) |
null | /// @title Clock auction for non-fungible tokens.
contract ClockAuction is Pausable, ClockAuctionBase {
/// @dev Constructor creates a reference to the NFT ownership contract
/// and verifies the owner cut is in the valid range.
/// @param _nftAddress - address of a deployed contract implementing
... | _isOnAuction(auction) | 302,861 | _isOnAuction(auction) |
null | /**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract 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 ... | (_value>0)&&(_value<=fromBalance) | 302,959 | (_value>0)&&(_value<=fromBalance) |
"address already bound" | pragma solidity ^0.4.25;
contract MyWishEosRegister {
event RegisterAdd(address indexed, string, bytes32);
mapping(address => bytes32) private register;
function put(string _eosAccountName) external {
require(<FILL_ME>)
bytes memory byteString = bytes(_eosAccountName);
require... | register[msg.sender]==0,"address already bound" | 303,015 | register[msg.sender]==0 |
"wrong symbol" | pragma solidity ^0.4.25;
contract MyWishEosRegister {
event RegisterAdd(address indexed, string, bytes32);
mapping(address => bytes32) private register;
function put(string _eosAccountName) external {
require(register[msg.sender] == 0, "address already bound");
bytes memory byteString ... | (b>=48&&b<=53)||(b>=97&&b<=122),"wrong symbol" | 303,015 | (b>=48&&b<=53)||(b>=97&&b<=122) |
"Further minting would exceed max supply" | // SPDX-License-Identifier: MIT
/**
█▀▀ █░█ ▄▀█ █▀█ █▄█ █▀ █▀▄▀█ ▄▀█ █▀
█▄▄ █▀█ █▀█ █▀▄ ░█░ ▄█ █░▀░█ █▀█ ▄█
**/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.... | supply.add(numberOfMints)<=MAX_SUPPLY,"Further minting would exceed max supply" | 303,033 | supply.add(numberOfMints)<=MAX_SUPPLY |
"Ether value sent is not correct" | // SPDX-License-Identifier: MIT
/**
█▀▀ █░█ ▄▀█ █▀█ █▄█ █▀ █▀▄▀█ ▄▀█ █▀
█▄▄ █▀█ █▀█ █▀▄ ░█░ ▄█ █░▀░█ █▀█ ▄█
**/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.... | price.mul(numberOfMints)==msg.value,"Ether value sent is not correct" | 303,033 | price.mul(numberOfMints)==msg.value |
"Insufficient balance to mint" | // SPDX-License-Identifier: MIT
/**
█▀▀ █░█ ▄▀█ █▀█ █▄█ █▀ █▀▄▀█ ▄▀█ █▀
█▄▄ █▀█ █▀█ █▀▄ ░█░ ▄█ █░▀░█ █▀█ ▄█
**/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.... | address(this).balance>=msg.value,"Insufficient balance to mint" | 303,033 | address(this).balance>=msg.value |
"Pausable: shutdown" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "@openzeppelin/contracts/utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
*/
contract Pausable is Context {
event Paused(address account)... | !stopEverything,"Pausable: shutdown" | 303,040 | !stopEverything |
"Selector for the provided account already exists." | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
interface ITypes {
struct Call {
address to;
uint96 value;
bytes data;
}
struct CallReturn {
bool ok;
bytes returnData;
}
}
interface IActionRegistry {
// events
event AddedSelector(address account, bytes4 selector);
... | _functionSelectorIndices[account][selector]==0,"Selector for the provided account already exists." | 303,060 | _functionSelectorIndices[account][selector]==0 |
"Spender for the provided account already exists." | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
interface ITypes {
struct Call {
address to;
uint96 value;
bytes data;
}
struct CallReturn {
bool ok;
bytes returnData;
}
}
interface IActionRegistry {
// events
event AddedSelector(address account, bytes4 selector);
... | _spenderIndices[account][spender]==0,"Spender for the provided account already exists." | 303,060 | _spenderIndices[account][spender]==0 |
"!authorized" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
contract AccessControl {
event GrantRole(bytes32 indexed role, address indexed addr);
event RevokeRole(bytes32 indexed role, address indexed addr);
mapping(bytes32 => mapping(address => bool)) public hasRole;
modifier onlyAuthorized(b... | hasRole[_role][msg.sender],"!authorized" | 303,129 | hasRole[_role][msg.sender] |
"limit must be divisible by size" | pragma solidity 0.5.11;
contract IPackFour {
struct Purchase {
uint16 current;
uint16 count;
address user;
uint randomness;
uint64 commit;
}
function purchases(uint p) public view returns (
uint16 current,
uint16 count,
address user,
ui... | _newLimit%size==0,"limit must be divisible by size" | 303,142 | _newLimit%size==0 |
"V1: must be migrating from an approved pack" | pragma solidity 0.5.11;
contract IPackFour {
struct Purchase {
uint16 current;
uint16 count;
address user;
uint randomness;
uint64 commit;
}
function purchases(uint p) public view returns (
uint16 current,
uint16 count,
address user,
ui... | canMigrate[address(pack)],"V1: must be migrating from an approved pack" | 303,142 | canMigrate[address(pack)] |
'This transaction would exceed max length of whitelist' | 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... | totalWhitelist+addresses.length<=maxWhitelistLength,'This transaction would exceed max length of whitelist' | 303,179 | totalWhitelist+addresses.length<=maxWhitelistLength |
'This transaction would exceed max length of whitelist' | 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... | totalWhitelist+1<=maxWhitelistLength,'This transaction would exceed max length of whitelist' | 303,179 | totalWhitelist+1<=maxWhitelistLength |
'This transaction would exceed max supply of NFTs' | 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... | supply+_mintCount<=maxSupply,'This transaction would exceed max supply of NFTs' | 303,179 | supply+_mintCount<=maxSupply |
null | 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... | paymentAddress.send(msg.value) | 303,179 | paymentAddress.send(msg.value) |
'Public sale is not active' | 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... | isPublicSaleActive||isRaffleSaleActive,'Public sale is not active' | 303,179 | isPublicSaleActive||isRaffleSaleActive |
"Not enough tokens to sell!" | // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the toke... | currentIndex+amount<=maxSupply+1,"Not enough tokens to sell!" | 303,306 | currentIndex+amount<=maxSupply+1 |
"Incorrect amount!" | // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the toke... | _minted[msg.sender]+amount<=maxPerWallet,"Incorrect amount!" | 303,306 | _minted[msg.sender]+amount<=maxPerWallet |
null | pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(u... | (msg.sender!=partnersWallet&&now>=publicLockEnd)||now>=partnersLockEnd | 303,419 | (msg.sender!=partnersWallet&&now>=publicLockEnd)||now>=partnersLockEnd |
null | pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(u... | (_from!=partnersWallet&&now>=publicLockEnd)||now>=partnersLockEnd | 303,419 | (_from!=partnersWallet&&now>=publicLockEnd)||now>=partnersLockEnd |
null | pragma solidity ^0.4.19;
contract ETHRoyale {
address devAccount = 0x50334D202f61F80384C065BE6537DD3d609FF9Ab; //Dev address to send dev fee (0.75%) to.
uint masterBalance; //uint var for total real balance of contract
uint masterApparentBalance; //var for total apparent balance of contract (real balanc... | !isDisabled&&_amt>=10000000000000000&&isNotContract(_owner) | 303,420 | !isDisabled&&_amt>=10000000000000000&&isNotContract(_owner) |
null | pragma solidity ^0.4.19;
contract ETHRoyale {
address devAccount = 0x50334D202f61F80384C065BE6537DD3d609FF9Ab; //Dev address to send dev fee (0.75%) to.
uint masterBalance; //uint var for total real balance of contract
uint masterApparentBalance; //var for total apparent balance of contract (real balanc... | accountBalance[_owner]>0&&_amt>0&&isNotContract(_owner) | 303,420 | accountBalance[_owner]>0&&_amt>0&&isNotContract(_owner) |
null | pragma solidity 0.4.24;
/**
* @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 OwnershipRenounced(address indexed previousOwne... | isWhitelist(_participant) | 303,458 | isWhitelist(_participant) |
null | pragma solidity 0.4.24;
/**
* @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 OwnershipRenounced(address indexed previousOwne... | balances[msg.sender]<=_value | 303,458 | balances[msg.sender]<=_value |
"ERC721: transfer of token that is not own" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
import "./ERC165.sol";
import "./IERC721.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./IERC721Receiver.sol";
/*************************
* @author: Squeebo *
* @license: BSD-3-Clause *
**********... | ERC721B.ownerOf(tokenId)==from,"ERC721: transfer of token that is not own" | 303,638 | ERC721B.ownerOf(tokenId)==from |
'next token id is not rare' | pragma solidity ^0.6.12;
contract UniV3NFT is Ownable{
using SafeERC20 for IERC20;
address public positionManager=address(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
address public factory=address(0x1F98431c8aD98523631AE4a59f267346ea31F984);
uint256[] public tokenIds;
function approve(address token,uin... | debug||isRare(curTokenId+1,pool),'next token id is not rare' | 303,723 | debug||isRare(curTokenId+1,pool) |
'mint token id is not rare' | pragma solidity ^0.6.12;
contract UniV3NFT is Ownable{
using SafeERC20 for IERC20;
address public positionManager=address(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
address public factory=address(0x1F98431c8aD98523631AE4a59f267346ea31F984);
uint256[] public tokenIds;
function approve(address token,uin... | debug||isRare(tokenId,pool),'mint token id is not rare' | 303,723 | debug||isRare(tokenId,pool) |
"Exceeded total supply" | /*
Copyright 2021 Project Galaxy.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | totalSupply.sub(starCount)>0,"Exceeded total supply" | 303,726 | totalSupply.sub(starCount)>0 |
"Exceeded total supply" | /*
Copyright 2021 Project Galaxy.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | totalSupply.sub(starCount)>=amount,"Exceeded total supply" | 303,726 | totalSupply.sub(starCount)>=amount |
"!timestamp" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import "./IERC20.sol";
import "./SafeERC20.sol";
import "./SafeMath.sol";
import "./AccessControl.sol";
import "./IUniswapV2.sol";
import "./IWETH.sol";
import "./IBasket.sol";
import "./BDIMarketMaker.sol";
contract DelayedBurner is MarketMakerBurner {
using ... | _canBurn(timestampWhenDeposited[msg.sender]),"!timestamp" | 303,772 | _canBurn(timestampWhenDeposited[msg.sender]) |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
contract ERC20Interface {
// ERC Token Standard #223 Interface
// https://github.com/ethereum/EIPs/issues/223
string public symbol;
string public name;
uint8 public decimals;
functio... | operatorAddress[msg.sender]||msg.sender==owner | 303,804 | operatorAddress[msg.sender]||msg.sender==owner |
null | // SPDX-License-Identifier: UNLICENSED
pragma solidity =0.6.11;
//
/**
* @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... | IERC20(token).transfer(owner,IERC20(token).balanceOf(address(this))) | 303,824 | IERC20(token).transfer(owner,IERC20(token).balanceOf(address(this))) |
"Signer has reached the tx limit" | pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an address access to this role
*/
function add(Role... | signersBacklog[signer].nonce<TX_PER_SIGNER_LIMIT,"Signer has reached the tx limit" | 303,866 | signersBacklog[signer].nonce<TX_PER_SIGNER_LIMIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.