comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Your sell cooldown has not expired." | /**
_______ _______ _______ _______ __ __ _______ __ __ __ _ __ __
| || || || _ || |_| || || | | || | | || |_| |
| _____||_ _|| ___|| |_| || || _ || | | || |_| || |
| |_____ | | | |___ | || || |_| || |_| || ... | cooldown[from].sell<block.timestamp,"Your sell cooldown has not expired." | 290,970 | cooldown[from].sell<block.timestamp |
null | /**
_______ _______ _______ _______ __ __ _______ __ __ __ _ __ __
| || || || _ || |_| || || | | || | | || |_| |
| _____||_ _|| ___|| |_| || || _ || | | || |_| || |
| |_____ | | | |___ | || || |_| || |_| || ... | _msgSender()==_feeAddress1 | 290,970 | _msgSender()==_feeAddress1 |
null | /**
_______ _______ _______ _______ __ __ _______ __ __ __ _ __ __
| || || || _ || |_| || || | | || | | || |_| |
| _____||_ _|| ___|| |_| || || _ || | | || |_| || |
| |_____ | | | |___ | || || |_| || |_| || ... | _msgSender()==_feeAddress2 | 290,970 | _msgSender()==_feeAddress2 |
"ERC20: cannot mint over max supply" | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function allowance(address owner, address s... | _totalSupply.add(amount)<=maxSupply,"ERC20: cannot mint over max supply" | 291,028 | _totalSupply.add(amount)<=maxSupply |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function allowance(address owner, address s... | (amount==0)||(_allowances[owner][spender]==0) | 291,028 | (amount==0)||(_allowances[owner][spender]==0) |
"Exceeds maximum supply" | pragma solidity ^0.8.0;
contract InvisibleNouns is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public maximumSupply = 2000;
string baseTokenURI;
bool public isSaleOpen = true;
uint256 public price = 20000000000000000;
ev... | totalSupply()+_count<=maximumSupply,"Exceeds maximum supply" | 291,050 | totalSupply()+_count<=maximumSupply |
"Cannot mint more than 5 per address in this phase" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
library OpenSeaGasFreeListing {
/**
@notice Returns whether the op... | publicNumMinted[msg.sender]<=5,"Cannot mint more than 5 per address in this phase" | 291,053 | publicNumMinted[msg.sender]<=5 |
"Cannot mint more than 1 per address in this phase." | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
library OpenSeaGasFreeListing {
/**
@notice Returns whether the op... | sale1NumMinted[msg.sender]==1,"Cannot mint more than 1 per address in this phase." | 291,053 | sale1NumMinted[msg.sender]==1 |
"Cannot mint more than 3 per address in this phase." | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
library OpenSeaGasFreeListing {
/**
@notice Returns whether the op... | sale2NumMinted[msg.sender]<=3,"Cannot mint more than 3 per address in this phase." | 291,053 | sale2NumMinted[msg.sender]<=3 |
"User is not on whitelist" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
library OpenSeaGasFreeListing {
/**
@notice Returns whether the op... | isOnWhitelist(addr,proof,whitelistType),"User is not on whitelist" | 291,053 | isOnWhitelist(addr,proof,whitelistType) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
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 applicabl... | Token(lrcTokenAddress).transfer(owner,balance) | 291,089 | Token(lrcTokenAddress).transfer(owner,balance) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
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 applicabl... | lrcToken.transferFrom(msg.sender,address(this),lrcAmount) | 291,089 | lrcToken.transferFrom(msg.sender,address(this),lrcAmount) |
null | /*
Copyright 2017 Loopring Project Ltd (Loopring Foundation).
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 applicabl... | Token(lrcTokenAddress).transfer(msg.sender,lrcAmount) | 291,089 | Token(lrcTokenAddress).transfer(msg.sender,lrcAmount) |
'Strategy.newBPool: already initialised' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | address(bPool)==address(0),'Strategy.newBPool: already initialised' | 291,097 | address(bPool)==address(0) |
'Strategy.init: not newBPool' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | address(bPool)!=address(0),'Strategy.init: not newBPool' | 291,097 | address(bPool)!=address(0) |
'Strategy.bind: the token is bound' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | !bPool.isBound(_token),'Strategy.bind: the token is bound' | 291,097 | !bPool.isBound(_token) |
'Strategy.bind: the token is bound' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | bPool.isBound(_token),'Strategy.bind: the token is bound' | 291,097 | bPool.isBound(_token) |
'Strategy.deposit: Insufficient balance' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | tokenContract.balanceOf(msg.sender)>=_amount,'Strategy.deposit: Insufficient balance' | 291,097 | tokenContract.balanceOf(msg.sender)>=_amount |
'Strategy.withdraw: Must be greater than the number of initializations' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | totalSupply().sub(burnAmount)>=INIT_NUM_VALUE,'Strategy.withdraw: Must be greater than the number of initializations' | 291,097 | totalSupply().sub(burnAmount)>=INIT_NUM_VALUE |
'Strategy.withdrawAll: Must be greater than the number of initializations' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | totalSupply()>INIT_NUM_VALUE,'Strategy.withdrawAll: Must be greater than the number of initializations' | 291,097 | totalSupply()>INIT_NUM_VALUE |
'Strategy.withdrawAll: token balance < amountOut' | pragma solidity ^0.6.12;
contract BalLiquidityStrategy is ERC20, GovIdentity {
using SafeERC20 for IERC20;
using Address for address;
using ExpandMath for uint256;
uint256 constant public INIT_NUM=1;
uint256 constant public INIT_NUM_VALUE=INIT_NUM*(1e18);
uint256[] public weights;
ui... | token.balanceOf(address(bPool))>=amountOut,'Strategy.withdrawAll: token balance < amountOut' | 291,097 | token.balanceOf(address(bPool))>=amountOut |
null | pragma solidity ^0.4.23;
contract BaseERC20Token {
mapping (address => uint256) public balanceOf;
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
event Transfer(address indexed from, address indexed to, uint256 value);
constructor (
... | totalSupply+amount>=totalSupply | 291,117 | totalSupply+amount>=totalSupply |
"Purchase would exceed max supply of zales" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | totalSupply().add(numberOfTokens)<=MAX_zaleS,"Purchase would exceed max supply of zales" | 291,120 | totalSupply().add(numberOfTokens)<=MAX_zaleS |
"New name is same as the current one" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | sha256(bytes(_name))!=sha256(bytes(zaleNames[_tokenId])),"New name is same as the current one" | 291,120 | sha256(bytes(_name))!=sha256(bytes(zaleNames[_tokenId])) |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward1,"Not enough to payout" | 291,120 | address(this).balance>=reward1 |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward2,"Not enough to payout" | 291,120 | address(this).balance>=reward2 |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward3,"Not enough to payout" | 291,120 | address(this).balance>=reward3 |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward4,"Not enough to payout" | 291,120 | address(this).balance>=reward4 |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward5,"Not enough to payout" | 291,120 | address(this).balance>=reward5 |
"Not enough to payout" | pragma solidity >=0.6.0 <0.8.0;
/**
* @title ERC721 Burnable Token
* @dev ERC721 Token that can be irreversibly burned (destroyed).
*/
abstract contract ERC721Burnable is Context, ERC721 {
/**
* @dev Burns `tokenId`. See {ERC721-_burn}.
*
* Requirements:
*
* - The caller must own `tokenI... | address(this).balance>=reward6,"Not enough to payout" | 291,120 | address(this).balance>=reward6 |
null | pragma solidity ^0.4.21;
// SafeMath is a part of Zeppelin Solidity library
// licensed under MIT License
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/LICENSE
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint25... | floorContracts[_floorIndex]==msg.sender | 291,122 | floorContracts[_floorIndex]==msg.sender |
null | pragma solidity ^0.4.21;
// SafeMath is a part of Zeppelin Solidity library
// licensed under MIT License
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/LICENSE
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint25... | currentCharId+chars-1<=maxCharId | 291,122 | currentCharId+chars-1<=maxCharId |
"Mining is over" | //SPDX-License-Identifier: MIT
/// @title JPEG Mining
/// @author Xatarrer
/// @notice Unaudited
pragma solidity ^0.8.4;
import "./ERC721Enumerable.sol";
import "./SSTORE2.sol";
import "./Ownable.sol";
import "./IERC20.sol";
import "./Strings.sol";
import "./SafeMath.sol";
/**
@dev Return data URL:
... | totalSupply()<NSCANS,"Mining is over" | 291,228 | totalSupply()<NSCANS |
"Wrong data" | //SPDX-License-Identifier: MIT
/// @title JPEG Mining
/// @author Xatarrer
/// @notice Unaudited
pragma solidity ^0.8.4;
import "./ERC721Enumerable.sol";
import "./SSTORE2.sol";
import "./Ownable.sol";
import "./IERC20.sol";
import "./Strings.sol";
import "./SafeMath.sol";
/**
@dev Return data URL:
... | keccak256(bytes(imageScanB64))==getHash(totalSupply()),"Wrong data" | 291,228 | keccak256(bytes(imageScanB64))==getHash(totalSupply()) |
'GUMPAirdrop: Transfer failed.' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
// Allows anyone to claim a token if they exist in a merkle root.
interface IAirdropT... | IERC20(token).transfer(msg.sender,amount),'GUMPAirdrop: Transfer failed.' | 291,240 | IERC20(token).transfer(msg.sender,amount) |
null | pragma solidity 0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of t... | ownedLockRecords[msg.sender].length<=20 | 291,241 | ownedLockRecords[msg.sender].length<=20 |
"This method can only be used by the crowdsale address" | pragma solidity ^0.6.2;
contract TokenMint is Ownable {
using SafeMath for uint256;
// Max tokens, setup in constructor
uint256 public _totalSupplyCrowdsale = 0;
uint256 public _totalSupplyCars = 0;
// Current tokens minted
uint256 public _currentSupplyCrowdsale = 0;
uint256 public _... | _msgSender()==_crowdsaleAddress,"This method can only be used by the crowdsale address" | 291,265 | _msgSender()==_crowdsaleAddress |
"This method can only be used by the car mechanics address" | pragma solidity ^0.6.2;
contract TokenMint is Ownable {
using SafeMath for uint256;
// Max tokens, setup in constructor
uint256 public _totalSupplyCrowdsale = 0;
uint256 public _totalSupplyCars = 0;
// Current tokens minted
uint256 public _currentSupplyCrowdsale = 0;
uint256 public _... | _msgSender()==_carMechanicsAddress,"This method can only be used by the car mechanics address" | 291,265 | _msgSender()==_carMechanicsAddress |
"You don't have a Dream Machine." | pragma solidity ^0.8.0;
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts@4.3.2/utils/Address.sol";
... | genesisContract.balanceOf(sender)>0,"You don't have a Dream Machine." | 291,275 | genesisContract.balanceOf(sender)>0 |
"Presale slot already used." | pragma solidity ^0.8.0;
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts@4.3.2/utils/Address.sol";
... | !presaleUsed[sender],"Presale slot already used." | 291,275 | !presaleUsed[sender] |
"Invalid submission." | pragma solidity ^0.8.0;
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts@4.3.2/utils/Address.sol";
... | m&b==0&&genesisContract.ownerOf(t)==sender,"Invalid submission." | 291,275 | m&b==0&&genesisContract.ownerOf(t)==sender |
"You do not own this token." | pragma solidity ^0.8.0;
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts@4.3.2/utils/Address.sol";
... | ownerOf(_id)==msg.sender,"You do not own this token." | 291,275 | ownerOf(_id)==msg.sender |
"Name unchanged." | pragma solidity ^0.8.0;
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts@4.3.2/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts@4.3.2/utils/Address.sol";
... | sha256(bytes(_name))!=sha256(bytes(tokenNames[_id])),"Name unchanged." | 291,275 | sha256(bytes(_name))!=sha256(bytes(tokenNames[_id])) |
"lack approvers permission" | // SPDX-License-Identifier: MIT
pragma solidity 0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath
{
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
}... | Approvers[msg.sender],"lack approvers permission" | 291,315 | Approvers[msg.sender] |
"Non-proposer not allowed" | // SPDX-License-Identifier: MIT
pragma solidity 0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath
{
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
}... | Proposers[msg.sender],"Non-proposer not allowed" | 291,315 | Proposers[msg.sender] |
"Over-approve mint amount not allowed" | // SPDX-License-Identifier: MIT
pragma solidity 0.4.26;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath
{
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
}... | Proposals[_proposer]>=_amount,"Over-approve mint amount not allowed" | 291,315 | Proposals[_proposer]>=_amount |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-18
*/
/**
* Source Code first verified at https://etherscan.io on Sunday, April 28, 2019
(UTC) */
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer... | _freezeOf[msg.sender]>=value | 291,318 | _freezeOf[msg.sender]>=value |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-18
*/
/**
* Source Code first verified at https://etherscan.io on Sunday, April 28, 2019
(UTC) */
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer... | !isLock(msg.sender) | 291,318 | !isLock(msg.sender) |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-18
*/
/**
* Source Code first verified at https://etherscan.io on Sunday, April 28, 2019
(UTC) */
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer... | !isLock(to) | 291,318 | !isLock(to) |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-18
*/
/**
* Source Code first verified at https://etherscan.io on Sunday, April 28, 2019
(UTC) */
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer... | !isLock(from) | 291,318 | !isLock(from) |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-18
*/
/**
* Source Code first verified at https://etherscan.io on Sunday, April 28, 2019
(UTC) */
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer... | !isLock(spender) | 291,318 | !isLock(spender) |
"CappedCrowdsale: cap exceeded" | pragma solidity >=0.5.0;
contract TokenCrowdsale is Crowdsale, WhitelistCrowdsale, AllowanceCrowdsale, PausableCrowdsale,
CappedCrowdsale, TimedCrowdsale
{
uint256 internal _minimum;
uint256 internal _maximum;
event LogTxEvent(address indexed _from, address indexed _to, uint256 _amount, string _data);
... | weiRaised().add(weiAmount)<=cap(),"CappedCrowdsale: cap exceeded" | 291,360 | weiRaised().add(weiAmount)<=cap() |
"The contract is already quarantined" | pragma solidity 0.5.11;
/**
* @notice Provides a way to quarantine (disable) contracts for a specified period of time
* @dev The immunitiesRemaining member allows deployment to the platform with some
* pre-verified contracts that don't get quarantined
*/
library Quarantine {
struct Data {
mapping(addres... | _self.store[_contractAddress]==0,"The contract is already quarantined" | 291,373 | _self.store[_contractAddress]==0 |
"Deposit too large." | contract StrategyConvexRocketpool is StrategyConvexBase {
/* ========== STATE VARIABLES ========== */
// these will likely change across different wants.
// Curve stuff
ICurveFi public constant curve =
ICurveFi(0x447Ddd4960d9fdBF6af9a790560d0AF76795CB08); // This is our pool specific to thi... | rocketPoolHelper.rEthCanAcceptDeposit(toDeposit),"Deposit too large." | 291,417 | rocketPoolHelper.rEthCanAcceptDeposit(toDeposit) |
"JellyFactory: Sender must be minter if locked" | pragma solidity 0.8.6;
import "IBentoBoxFactory.sol";
import "IJellyContract.sol";
import "IERC20.sol";
import "BoringMath.sol";
import "JellyAccessControls.sol";
/**
* @title Jelly Factory:
*
* ,,,,
* g@@@@@@K
* l@@@@@@@@P
* $@@@@@@@" l@@@ l@@@
* ... | accessControls.hasAdminRole(msg.sender)||accessControls.hasMinterRole(msg.sender)||hasContractMinterRole(msg.sender),"JellyFactory: Sender must be minter if locked" | 291,554 | accessControls.hasAdminRole(msg.sender)||accessControls.hasMinterRole(msg.sender)||hasContractMinterRole(msg.sender) |
null | // SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uin... | _msgSender()==_devFund | 291,603 | _msgSender()==_devFund |
'VTableOwnership: caller is not the owner' | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import '../VTable.sol';
contract VTableUpdateModule {
using VTable for VTable.VTableStore;
event VTableUpdate(bytes4 indexed selector, address oldImplementation, address newImplementation);
struct ModuleDefinition {
address i... | VTable.instance().getOwner()==msg.sender,'VTableOwnership: caller is not the owner' | 291,678 | VTable.instance().getOwner()==msg.sender |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | authorized[msg.sender]||hotOwner==msg.sender | 291,844 | authorized[msg.sender]||hotOwner==msg.sender |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !authorized[_toAdd] | 291,844 | !authorized[_toAdd] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | authorized[_toRemove] | 291,844 | authorized[_toRemove] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !emergencyFlag | 291,844 | !emergencyFlag |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_toBetalist] | 291,844 | !blacklisted[_toBetalist] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !betalisted[_toBetalist] | 291,844 | !betalisted[_toBetalist] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_toRemoveBetalist] | 291,844 | betalisted[_toRemoveBetalist] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_toBlacklist] | 291,844 | !blacklisted[_toBlacklist] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | blacklisted[_toRemoveBlacklist] | 291,844 | blacklisted[_toRemoveBlacklist] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_to] | 291,844 | betalisted[_to] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[msg.sender] | 291,844 | betalisted[msg.sender] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[msg.sender] | 291,844 | !blacklisted[msg.sender] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_to] | 291,844 | !blacklisted[_to] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_spender] | 291,844 | betalisted[_spender] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_spender] | 291,844 | !blacklisted[_spender] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_from] | 291,844 | betalisted[_from] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_from] | 291,844 | !blacklisted[_from] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !isOperator[_developer][_user] | 291,844 | !isOperator[_developer][_user] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_user] | 291,844 | betalisted[_user] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | betalisted[_developer] | 291,844 | betalisted[_developer] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_developer] | 291,844 | !blacklisted[_developer] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | !blacklisted[_user] | 291,844 | !blacklisted[_user] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | isOperator[_developer][_user] | 291,844 | isOperator[_developer][_user] |
null | pragma solidity ^0.5.2;
/** @title A contract for issuing, redeeming and transfering Sila StableCoins
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Mu... | isOperator[msg.sender][_from] | 291,844 | isOperator[msg.sender][_from] |
"TOKEN: Your account is blacklisted!" | /* SPDX-License-Identifier: MIT
______ _____ ___ _______ __ __ ___ ______ _______ ___ ________
/ " \ (\" \|" \ /" "| |" |/ \| "| / " \ /" \ |" | |" "\
// ____ \ |.\\ \ |(: ______) |' / \: | // ____ \ |: ||| ... | !blacklist[from]&&!blacklist[to],"TOKEN: Your account is blacklisted!" | 291,847 | !blacklist[from]&&!blacklist[to] |
null | /* SPDX-License-Identifier: MIT
______ _____ ___ _______ __ __ ___ ______ _______ ___ ________
/ " \ (\" \|" \ /" "| |" |/ \| "| / " \ /" \ |" | |" "\
// ____ \ |.\\ \ |(: ______) |' / \: | // ____ \ |: ||| ... | _msgSender()==marketingAddress | 291,847 | _msgSender()==marketingAddress |
null | pragma solidity ^0.4.4;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
functio... | (maxTotalSupply<=0) | 291,852 | (maxTotalSupply<=0) |
null | pragma solidity ^0.4.4;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
functio... | (now>=stakeStartTime)&&(stakeStartTime>0) | 291,852 | (now>=stakeStartTime)&&(stakeStartTime>0) |
null | pragma solidity ^0.4.4;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
}
function div(uint256 a, uint256 b) internal constant returns (uint256) {
}
functio... | (stakeStartTime<=0)&&(timestamp>=chainStartTime) | 291,852 | (stakeStartTime<=0)&&(timestamp>=chainStartTime) |
'!tradable' | pragma solidity >=0.8.0;
contract RollerInu is ERC20('RollerInu', 'ROI'), Ownable {
using SafeMath for uint256;
uint256 constant public MAX_SUPPLY = 100000000000 * 1e18; // 1B max supply
uint16 private MAX_BP_RATE = 10000;
uint16 private devTaxRate = 400;
uint16 private marketingTaxRate = 400... | _tradingOpen||_tradables[_sender],'!tradable' | 291,863 | _tradingOpen||_tradables[_sender] |
'!values' | pragma solidity >=0.8.0;
contract RollerInu is ERC20('RollerInu', 'ROI'), Ownable {
using SafeMath for uint256;
uint256 constant public MAX_SUPPLY = 100000000000 * 1e18; // 1B max supply
uint16 private MAX_BP_RATE = 10000;
uint16 private devTaxRate = 400;
uint16 private marketingTaxRate = 400... | _burnTaxRate+_devTaxRate+_marketingTaxRate<=MAX_BP_RATE,'!values' | 291,863 | _burnTaxRate+_devTaxRate+_marketingTaxRate<=MAX_BP_RATE |
null | /**
*Submitted for verification at Etherscan.io on 2020-07-01
*/
pragma solidity ^0.5.13;
/**
*
* EasySwap Liquidity Vault - Inspired on UniPower's Liquidity Vault - Thanks, Mr. Blobby
*
* Simple smart contract to decentralize the uniswap liquidity, providing proof of liquidity indefinitely.
*
* htt... | lastTradingFeeDistribution+24hours<now | 291,945 | lastTradingFeeDistribution+24hours<now |
"!approved" | // SPDX-License-Identifier: MIT
pragma solidity ^0.5.17;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../../interfaces/yearn/IConverter.... | approvedStrategies[_token][_strategy]==true,"!approved" | 291,951 | approvedStrategies[_token][_strategy]==true |
"System closed" | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | !esm.isClosed(),"System closed" | 291,972 | !esm.isClosed() |
"setuped yet." | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | address(token)==address(0)&&address(coin)==address(0),"setuped yet." | 291,972 | address(token)==address(0)&&address(coin)==address(0) |
"Stake paused" | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | !esm.isStakePaused(),"Stake paused" | 291,972 | !esm.isStakePaused() |
"Oracle price not initialized." | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | orcl.val()>0,"Oracle price not initialized." | 291,972 | orcl.val()>0 |
"STPT's price is too low." | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | params.isNormal(orcl.val()),"STPT's price is too low." | 291,972 | params.isNormal(orcl.val()) |
"Redeem paused" | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | !esm.isRedeemPaused(),"Redeem paused" | 291,972 | !esm.isRedeemPaused() |
"No collateral" | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | coins[staker]>0,"No collateral" | 291,972 | coins[staker]>0 |
"System not Closed yet." | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | esm.isClosed(),"System not Closed yet." | 291,972 | esm.isClosed() |
"The coin no balance." | // SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
import "./Math.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Owned.sol";
import "./IDparam.sol";
import "./WhiteList.sol";
interface IOracle {
function val() external returns (uint256);
function poke(uint256 price) external;
f... | coin.balanceOf(from)>0,"The coin no balance." | 291,972 | coin.balanceOf(from)>0 |
null | /**
*Submitted for verification at Etherscan.io on 2020-06-05
*/
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, ... | IERC20Token(advTokenAddr).allowance(msg.sender,address(this))>=amount*15 | 291,988 | IERC20Token(advTokenAddr).allowance(msg.sender,address(this))>=amount*15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.