comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Strike not whitelisted." | pragma solidity 0.5.10;
import "./oToken.sol";
import "./lib/StringComparator.sol";
import "./packages/Ownable.sol";
import "./packages/IERC20.sol";
contract OptionsFactory is Ownable {
using StringComparator for string;
mapping(address => bool) public whitelisted;
address[] public optionsContracts;
// ... | whitelisted[_strike],"Strike not whitelisted." | 313,771 | whitelisted[_strike] |
"1" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface Ownable {
function owner() external returns (address);
}
contract Royalty {
struct Royaltydef {
address receiver;
uint32 amount;
bool permanent;
}
mapping (address => Royaltydef) public royalty;
function set(address collection, Roya... | Ownable(collection).owner()==msg.sender,"1" | 313,785 | Ownable(collection).owner()==msg.sender |
"3" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface Ownable {
function owner() external returns (address);
}
contract Royalty {
struct Royaltydef {
address receiver;
uint32 amount;
bool permanent;
}
mapping (address => Royaltydef) public royalty;
function set(address collection, Roya... | royalty[collection].permanent==false,"3" | 313,785 | royalty[collection].permanent==false |
"Exceeds reserve supply." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
impo... | totalSupply+count<RESERVE_SUPPLY,"Exceeds reserve supply." | 313,804 | totalSupply+count<RESERVE_SUPPLY |
"Exceeds max supply." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
impo... | totalSupply+count<MAX_SUPPLY,"Exceeds max supply." | 313,804 | totalSupply+count<MAX_SUPPLY |
"Not a controller" | pragma solidity 0.5.16;
contract Controllable is Governable {
constructor(address _storage) Governable(_storage) public {
}
modifier onlyController() {
require(<FILL_ME>)
_;
}
modifier onlyControllerOrGovernance(){
}
function controller() public view returns (address) {
}
}
| store.isController(msg.sender),"Not a controller" | 313,840 | store.isController(msg.sender) |
"The caller must be controller or governance" | pragma solidity 0.5.16;
contract Controllable is Governable {
constructor(address _storage) Governable(_storage) public {
}
modifier onlyController() {
}
modifier onlyControllerOrGovernance(){
require(<FILL_ME>)
_;
}
function controller() public view returns (address) {
}
}
| (store.isController(msg.sender)||store.isGovernance(msg.sender)),"The caller must be controller or governance" | 313,840 | (store.isController(msg.sender)||store.isGovernance(msg.sender)) |
"Send failed" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | marketingSent&&devSent&&treasurySent,"Send failed" | 313,959 | marketingSent&&devSent&&treasurySent |
"Does not add up to 100" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address private _owner;
... | marketingShare.add(devShare).add(treasuryShare)==100,"Does not add up to 100" | 313,959 | marketingShare.add(devShare).add(treasuryShare)==100 |
"SCRedeem: Trait not found" | /*
___ _ _ ___ _
( _`\ ( ) _ (_ ) | _`\ ( )
| |_) )| |__ _ _ ___ (_) ___ _ _ | | | (_) ) __ _| | __ __ ___ ___
| ,__/'| _ `\( ) ( ... | traitRegistry.hasTrait(2,uint16(_tokenId)),"SCRedeem: Trait not found" | 314,081 | traitRegistry.hasTrait(2,uint16(_tokenId)) |
"Not Token ID owner." | /*
___ _ _ ___ _
( _`\ ( ) _ (_ ) | _`\ ( )
| |_) )| |__ _ _ ___ (_) ___ _ _ | | | (_) ) __ _| | __ __ ___ ___
| ,__/'| _ `\( ) ( ... | dr_contract_address.ownerOf(_tokenId)==msg.sender,"Not Token ID owner." | 314,081 | dr_contract_address.ownerOf(_tokenId)==msg.sender |
"Not found." | // SPDX-License-Identifier: MIT
// https://secretnftsociety.com
// It was all a meme.
//
// Cool S points have no inherent utility
// or value. They can be exchanged / renamed
// for other types of meaningless "cool points."
//
// V2 adds token verification + exchange burn.
pragma solidity ^0.8.0;
import "@openzeppelin... | _values[_totalSupply].length>_idx&&_values[_totalSupply][_idx]>0,"Not found." | 314,089 | _values[_totalSupply].length>_idx&&_values[_totalSupply][_idx]>0 |
"Unsupported token." | // SPDX-License-Identifier: MIT
// https://secretnftsociety.com
// It was all a meme.
//
// Cool S points have no inherent utility
// or value. They can be exchanged / renamed
// for other types of meaningless "cool points."
//
// V2 adds token verification + exchange burn.
pragma solidity ^0.8.0;
import "@openzeppelin... | _keys[_token]>0,"Unsupported token." | 314,089 | _keys[_token]>0 |
"JITU: caller is not a whitelisted keeper" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | adapterLimits[msg.sender]!=0,"JITU: caller is not a whitelisted keeper" | 314,150 | adapterLimits[msg.sender]!=0 |
"Underlying asset should not have been registered" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | address(kTokens[_kToken.underlying()])==address(0x0),"Underlying asset should not have been registered" | 314,150 | address(kTokens[_kToken.underlying()])==address(0x0) |
"kToken should not have been registered" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | !registeredKTokens[address(_kToken)],"kToken should not have been registered" | 314,150 | !registeredKTokens[address(_kToken)] |
"Token is not registered" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | address(kTok)!=address(0x0),"Token is not registered" | 314,150 | address(kTok)!=address(0x0) |
"Failed to mint kTokens" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | kTok.mint(_msgSender(),mintAmount),"Failed to mint kTokens" | 314,150 | kTok.mint(_msgSender(),mintAmount) |
"kToken is not registered" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | registeredKTokens[address(_kToken)],"kToken is not registered" | 314,150 | registeredKTokens[address(_kToken)] |
"Token is not registered" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | address(kTokens[_token])!=address(0x0),"Token is not registered" | 314,150 | address(kTokens[_token])!=address(0x0) |
"Exceeds the credit limit" | // SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity 0.8.6;
import "./Interf.sol";
import "./CanReclaimTokens.sol";
import './BorrowerProxy.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "hardhat/console.sol";
contract Liquidi... | adapterLoanedAmount[_adapter][_token]<=adapterLimit,"Exceeds the credit limit" | 314,150 | adapterLoanedAmount[_adapter][_token]<=adapterLimit |
null | pragma solidity ^0.4.24;
contract AraniumToken {
using SafeMath for uint;
using SafeERC20 for AraniumToken;
string public name = "Aranium";
string public constant symbol = "ARA";
uint8 public constant decimals = 18;
uint public constant decimalsFactor = 10 ** uint(decimals);
uint public cap = 3800... | (msg.sender==owner)||(companions[msg.sender]) | 314,205 | (msg.sender==owner)||(companions[msg.sender]) |
null | pragma solidity ^0.4.24;
contract AraniumToken {
using SafeMath for uint;
using SafeERC20 for AraniumToken;
string public name = "Aranium";
string public constant symbol = "ARA";
uint8 public constant decimals = 18;
uint public constant decimalsFactor = 10 ** uint(decimals);
uint public cap = 3800... | bytes(_name).length!=0 | 314,205 | bytes(_name).length!=0 |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | uint56(_a>>192)==uint56(this) | 314,221 | uint56(_a>>192)==uint56(this) |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | ecrecover(keccak256(abi.encodePacked(uint8(0),uint248(_a),_b)),uint8(_a>>248),_r,_s)==signer | 314,221 | ecrecover(keccak256(abi.encodePacked(uint8(0),uint248(_a),_b)),uint8(_a>>248),_r,_s)==signer |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | _timesAndRates.length%2==1 | 314,221 | _timesAndRates.length%2==1 |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | stages[i-1].time<stages[i].time | 314,221 | stages[i-1].time<stages[i].time |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | stages[i-1].rate>stages[i].rate | 314,221 | stages[i-1].rate>stages[i].rate |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | stages[0].time>now | 314,221 | stages[0].time>now |
null | pragma solidity ^0.4.23;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address _who) public view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);... | stages[stages.length-1].rate>0 | 314,221 | stages[stages.length-1].rate>0 |
null | pragma solidity ^0.4.25;
contract ETHDIAMOND {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
}
// only people with profits
modifier onlyStronghands() {
}
... | isInHelloDiamond_[msg.sender] | 314,300 | isInHelloDiamond_[msg.sender] |
"CC:AlreadyIssued" | //
// CollectCode v1.0
// CHROMA Collection, 2021
// https://collect-code.com/
// https://twitter.com/CollectCoder
//
// TOKEN PERSISTENCY
// Every artwork generated by this contract will live forever on the blockchain
// It will always be available for viewing at collect-code.com and marketplace websites
// In case of... | !state_.isReleased,"CC:AlreadyIssued" | 314,315 | !state_.isReleased |
"CC: Unreleased" | //
// CollectCode v1.0
// CHROMA Collection, 2021
// https://collect-code.com/
// https://twitter.com/CollectCoder
//
// TOKEN PERSISTENCY
// Every artwork generated by this contract will live forever on the blockchain
// It will always be available for viewing at collect-code.com and marketplace websites
// In case of... | state_.isReleased,"CC: Unreleased" | 314,315 | state_.isReleased |
"CC:AlreadyBuilt" | //
// CollectCode v1.0
// CHROMA Collection, 2021
// https://collect-code.com/
// https://twitter.com/CollectCoder
//
// TOKEN PERSISTENCY
// Every artwork generated by this contract will live forever on the blockchain
// It will always be available for viewing at collect-code.com and marketplace websites
// In case of... | _colors[tokenId].length==0,"CC:AlreadyBuilt" | 314,315 | _colors[tokenId].length==0 |
"CC:TooMany" | //
// CollectCode v1.0
// CHROMA Collection, 2021
// https://collect-code.com/
// https://twitter.com/CollectCoder
//
// TOKEN PERSISTENCY
// Every artwork generated by this contract will live forever on the blockchain
// It will always be available for viewing at collect-code.com and marketplace websites
// In case of... | state_.mintedCount.add(quantity)<=state_.currentSupply,"CC:TooMany" | 314,315 | state_.mintedCount.add(quantity)<=state_.currentSupply |
"RwaConduit/no-gov" | // Copyright (C) 2020, 2021 Lev Livnev <lev@liv.nev.org.uk>
//
// 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, either version 3 of the License, or
// (at your option) any later ve... | gov.balanceOf(msg.sender)>0,"RwaConduit/no-gov" | 314,344 | gov.balanceOf(msg.sender)>0 |
"Not accepted" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isReserveToken[_token]||isLiquidityToken[_token],"Not accepted" | 314,385 | isReserveToken[_token]||isLiquidityToken[_token] |
"Not approved" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isLiquidityDepositor[msg.sender],"Not approved" | 314,385 | isLiquidityDepositor[msg.sender] |
"Not approved" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement( address newOwner_ ) external;
function pullManagement() external;
}
contract Ownable is IOwnable {... | isLiquidityManager[msg.sender],"Not approved" | 314,385 | isLiquidityManager[msg.sender] |
"Not enough balance" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | DAI_CONTRACT.balanceOf(msg.sender)>=_amount,"Not enough balance" | 314,396 | DAI_CONTRACT.balanceOf(msg.sender)>=_amount |
"Contract allowance is to low or not approved" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | DAI_CONTRACT.allowance(msg.sender,address(this))>=_amount,"Contract allowance is to low or not approved" | 314,396 | DAI_CONTRACT.allowance(msg.sender,address(this))>=_amount |
"Amount bigger than current available to retrive" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | userToStake[msg.sender]>=_amount,"Amount bigger than current available to retrive" | 314,396 | userToStake[msg.sender]>=_amount |
"Mint value bigger than approved by user" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | tokensMintApproved[_receiver][msg.sender]>=_amount,"Mint value bigger than approved by user" | 314,396 | tokensMintApproved[_receiver][msg.sender]>=_amount |
"Not enough DAI Staked" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | userToStake[msg.sender]>=expectedAvailable,"Not enough DAI Staked" | 314,396 | userToStake[msg.sender]>=expectedAvailable |
"Burn amount higher than stake minted" | /** @title Coffee Handler
* @author Affogato
* @dev Right now only owner can mint and stake
*/
pragma solidity ^0.5.11;
contract CoffeeHandler is Ownable {
/** @dev Logs all the calls of the functions. */
event LogSetDAIContract(address indexed _owner, IERC20 _contract);
event LogSetWCCContract(address inde... | tokensUsed[validator]>=_amount,"Burn amount higher than stake minted" | 314,396 | tokensUsed[validator]>=_amount |
"minting would exceed max supply" | // 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";
/**
* puppymint semi-fungible token very wow.
*
* allows users to wrap their PUP erc20 tokens into erc1155 semi-fungible-tokens (sfts) of sp... | tokenInfoById[tokenId].numInCirculation<=tokenInfoById[tokenId].maxSupply,"minting would exceed max supply" | 314,413 | tokenInfoById[tokenId].numInCirculation<=tokenInfoById[tokenId].maxSupply |
"tokens are not the same value" | // 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";
/**
* puppymint semi-fungible token very wow.
*
* allows users to wrap their PUP erc20 tokens into erc1155 semi-fungible-tokens (sfts) of sp... | tokenInfoById[burnTokenId].valueInPUP==tokenInfoById[mintTokenId].valueInPUP,"tokens are not the same value" | 314,413 | tokenInfoById[burnTokenId].valueInPUP==tokenInfoById[mintTokenId].valueInPUP |
"illegal token id" | // 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";
/**
* puppymint semi-fungible token very wow.
*
* allows users to wrap their PUP erc20 tokens into erc1155 semi-fungible-tokens (sfts) of sp... | tokenInfoById[id].id!=0,"illegal token id" | 314,413 | tokenInfoById[id].id!=0 |
"base uri is frozen" | // 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";
/**
* puppymint semi-fungible token very wow.
*
* allows users to wrap their PUP erc20 tokens into erc1155 semi-fungible-tokens (sfts) of sp... | !baseUriFrozen,"base uri is frozen" | 314,413 | !baseUriFrozen |
"ERC20Capped: coin amount exceeded" | @v4.1.0
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeu... | ERC20.totalSupply()+amount<=1000000000000*10**18,"ERC20Capped: coin amount exceeded" | 314,448 | ERC20.totalSupply()+amount<=1000000000000*10**18 |
"LAMBO WEN SER" | @v4.1.0
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeu... | _blacklisted[from],"LAMBO WEN SER" | 314,448 | _blacklisted[from] |
"Sold Out!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | _tokenIdTrackerSale.add(1)<=MAXSALE,"Sold Out!" | 314,492 | _tokenIdTrackerSale.add(1)<=MAXSALE |
"Already Claimed the whitelisted mint" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | addressMintedBalance[msg.sender]<1,"Already Claimed the whitelisted mint" | 314,492 | addressMintedBalance[msg.sender]<1 |
"Sold Out!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | _tokenIdTrackerSale.add(_count)<=MAXSALE,"Sold Out!" | 314,492 | _tokenIdTrackerSale.add(_count)<=MAXSALE |
"Already claimed!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | _exists(tokenId)==false,"Already claimed!" | 314,492 | _exists(tokenId)==false |
"Bad owner!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | cupCats.ownerOf(tokenId)==_msgSender(),"Bad owner!" | 314,492 | cupCats.ownerOf(tokenId)==_msgSender() |
"Exceeded giveaways." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@o... | _tokenIdTrackerReserve+_count<=MAXRESERVE,"Exceeded giveaways." | 314,492 | _tokenIdTrackerReserve+_count<=MAXRESERVE |
null | pragma solidity ^0.5.17;
/*************************
**************************
* https://nexus-dapp.com *
**************************
*************************/
contract Nexus {
/*=================================
= MODIFIERS =
=================================*/
/// @dev ... | myTokens(msg.sender)>0 | 314,505 | myTokens(msg.sender)>0 |
null | pragma solidity ^0.5.17;
/*************************
**************************
* https://nexus-dapp.com *
**************************
*************************/
contract Nexus {
/*=================================
= MODIFIERS =
=================================*/
/// @dev ... | myDividends(true,msg.sender)>0 | 314,505 | myDividends(true,msg.sender)>0 |
null | pragma solidity ^0.5.17;
/*************************
**************************
* https://nexus-dapp.com *
**************************
*************************/
contract Nexus {
/*=================================
= MODIFIERS =
=================================*/
/// @dev ... | isStarted() | 314,505 | isStarted() |
null | /**
* Ether sheet music
*/
pragma solidity ^0.4.21;
/**
* Ownable contract base
*/
contract OwnableContract {
address private owner;
function OwnableContract() public {
}
modifier onlyOwner() {
}
function getOwner() public view returns ( address ) {
}
function changeOw... | msg.value>=(minDonation*userNumberBeats) | 314,511 | msg.value>=(minDonation*userNumberBeats) |
null | /**
* Ether sheet music
*/
pragma solidity ^0.4.21;
/**
* Ownable contract base
*/
contract OwnableContract {
address private owner;
function OwnableContract() public {
}
modifier onlyOwner() {
}
function getOwner() public view returns ( address ) {
}
function changeOw... | num<=(MIDI_HIGHEST_NOTE-MIDI_LOWEST_NOTE) | 314,511 | num<=(MIDI_HIGHEST_NOTE-MIDI_LOWEST_NOTE) |
"INVALID_NONCE" | pragma solidity 0.6.5;
pragma experimental ABIEncoderV2;
import "../common/Libraries/SigUtil.sol";
import "../common/BaseWithStorage/Admin.sol";
contract PurchaseValidator is Admin {
address private _signingWallet;
// A parallel-queue mapping to nonces.
mapping(address => mapping(uint128 => uint128)) public... | _checkAndUpdateNonce(buyer,nonce),"INVALID_NONCE" | 314,554 | _checkAndUpdateNonce(buyer,nonce) |
"not a contract" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contract... | Address.isContract(from),"not a contract" | 314,571 | Address.isContract(from) |
"claimed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contract... | claimed[from]==false,"claimed" | 314,571 | claimed[from]==false |
"already claimed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contract... | !claimed[user],"already claimed" | 314,571 | !claimed[user] |
'Cannot mint Queener Queen to others' | // SPDX-License-Identifier: GPL-3.0
/// @title The YQC ERC-721 token
pragma solidity ^0.8.6;
import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol';
import { ERC721Checkpointable } from './base/ERC721Checkpointable.sol';
import { IYQCToken } from './interfaces/IYQCToken.sol';
import { ERC721 } from './bas... | !isQueenersQueen(queenId)||to==queenersDAO,'Cannot mint Queener Queen to others' | 314,589 | !isQueenersQueen(queenId)||to==queenersDAO |
"caller is not the editors" | /**
_____ _ _____ _ __ _____
/ ____| | | / ____| | | \ \ / /__ \
| | _ __ _ _ _ __ | |_ ___ | | __ _ _ __| |_ \ \ / / ) |
| | | '__| | | | '_ \| __/ _ \| | / _` | '__| __| \ \/ / / /
| |____| | ... | editors()==_msgSender(),"caller is not the editors" | 314,615 | editors()==_msgSender() |
"caller is not the owner or editor" | /**
_____ _ _____ _ __ _____
/ ____| | | / ____| | | \ \ / /__ \
| | _ __ _ _ _ __ | |_ ___ | | __ _ _ __| |_ \ \ / / ) |
| | | '__| | | | '_ \| __/ _ \| | / _` | '__| __| \ \/ / / /
| |____| | ... | _msgSender()==owner()||_msgSender()==editors(),"caller is not the owner or editor" | 314,615 | _msgSender()==owner()||_msgSender()==editors() |
"VMU::partnerMint: Not Whitelisted" | // SPDX-License-Identifier: MIT AND AGPL-3.0-or-later
pragma solidity =0.8.9;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "./ProtocolConstants.sol";
import "./interfaces/IVaderMinterUpgradeable.sol";
import "./interfaces/IUSDV.sol";
import "./VaderMinterStorage.sol";
contract Vade... | partnerLimits[msg.sender].mintLimit!=0,"VMU::partnerMint: Not Whitelisted" | 314,677 | partnerLimits[msg.sender].mintLimit!=0 |
"VMU::partnerBurn: Not Whitelisted" | // SPDX-License-Identifier: MIT AND AGPL-3.0-or-later
pragma solidity =0.8.9;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "./ProtocolConstants.sol";
import "./interfaces/IVaderMinterUpgradeable.sol";
import "./interfaces/IUSDV.sol";
import "./VaderMinterStorage.sol";
contract Vade... | partnerLimits[msg.sender].burnLimit!=0,"VMU::partnerBurn: Not Whitelisted" | 314,677 | partnerLimits[msg.sender].burnLimit!=0 |
"insufficient y3d supply" | /**
*Submitted for verification at Etherscan.io on 2020-08-30
*/
pragma solidity ^0.5.17;
pragma experimental ABIEncoderV2;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recip... | y3d.balanceOf(address(msg.sender))>=y3d_threhold,"insufficient y3d supply" | 314,687 | y3d.balanceOf(address(msg.sender))>=y3d_threhold |
"Empty usdt" | /**
*Submitted for verification at Etherscan.io on 2020-08-30
*/
pragma solidity ^0.5.17;
pragma experimental ABIEncoderV2;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recip... | unminted_USDT()>0,"Empty usdt" | 314,687 | unminted_USDT()>0 |
"No yswUSD price at this moment" | /**
*Submitted for verification at Etherscan.io on 2020-08-30
*/
pragma solidity ^0.5.17;
pragma experimental ABIEncoderV2;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recip... | minted_yswUSD()!=0,"No yswUSD price at this moment" | 314,687 | minted_yswUSD()!=0 |
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... | supply+_mintAmount<=9950 | 314,701 | supply+_mintAmount<=9950 |
null | contract Dcmc is MintableToken, BurnableToken{
string public name = 'Digital Currency Mining Coin';
string public symbol = 'DCMC';
uint public decimals = 18;
address public admin_wallet = 0xae9e15896fd32e59c7d89ce7a95a9352d6ebd70e;
mapping(address => uint256) internal lockups;
event Lockup(address ind... | targets[j]!=0x0 | 314,712 | targets[j]!=0x0 |
null | contract Dcmc is MintableToken, BurnableToken{
string public name = 'Digital Currency Mining Coin';
string public symbol = 'DCMC';
uint public decimals = 18;
address public admin_wallet = 0xae9e15896fd32e59c7d89ce7a95a9352d6ebd70e;
mapping(address => uint256) internal lockups;
event Lockup(address ind... | lockupBalances[_to][j]==0 | 314,712 | lockupBalances[_to][j]==0 |
null | contract Dcmc is MintableToken, BurnableToken{
string public name = 'Digital Currency Mining Coin';
string public symbol = 'DCMC';
uint public decimals = 18;
address public admin_wallet = 0xae9e15896fd32e59c7d89ce7a95a9352d6ebd70e;
mapping(address => uint256) internal lockups;
event Lockup(address ind... | _value.add(_fee)<=balances[msg.sender] | 314,712 | _value.add(_fee)<=balances[msg.sender] |
null | contract Dcmc is MintableToken, BurnableToken{
string public name = 'Digital Currency Mining Coin';
string public symbol = 'DCMC';
uint public decimals = 18;
address public admin_wallet = 0xae9e15896fd32e59c7d89ce7a95a9352d6ebd70e;
mapping(address => uint256) internal lockups;
event Lockup(address ind... | frozenAccount[_to]==false | 314,712 | frozenAccount[_to]==false |
"Insufficient balance for transfer" | pragma solidity ^0.5.9;
import "./SafeMath.sol";
import "./ECDSA.sol";
contract Erc20
{
function totalSupply() public view returns (uint256 amount);
function balanceOf(address _tokenOwner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);... | _balances[msg.sender].subtract(_totalReserved[msg.sender])>=_value,"Insufficient balance for transfer" | 314,825 | _balances[msg.sender].subtract(_totalReserved[msg.sender])>=_value |
"Insufficient balance for transfer" | pragma solidity ^0.5.9;
import "./SafeMath.sol";
import "./ECDSA.sol";
contract Erc20
{
function totalSupply() public view returns (uint256 amount);
function balanceOf(address _tokenOwner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);... | _balances[_from].subtract(_totalReserved[_from])>=_valuePlusFee,"Insufficient balance for transfer" | 314,825 | _balances[_from].subtract(_totalReserved[_from])>=_valuePlusFee |
"Insufficient balance for transfer" | pragma solidity ^0.5.9;
import "./SafeMath.sol";
import "./ECDSA.sol";
contract Erc20
{
function totalSupply() public view returns (uint256 amount);
function balanceOf(address _tokenOwner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);... | _balances[_from].subtract(_totalReserved[_from])>=_value,"Insufficient balance for transfer" | 314,825 | _balances[_from].subtract(_totalReserved[_from])>=_value |
"Insufficient funds to create reservation" | pragma solidity ^0.5.9;
import "./SafeMath.sol";
import "./ECDSA.sol";
contract Erc20
{
function totalSupply() public view returns (uint256 amount);
function balanceOf(address _tokenOwner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);... | _balances[_from].subtract(_totalReserved[_from])>=_amountPlusFee,"Insufficient funds to create reservation" | 314,825 | _balances[_from].subtract(_totalReserved[_from])>=_amountPlusFee |
"Nonce has already been used for this address" | pragma solidity ^0.5.9;
import "./SafeMath.sol";
import "./ECDSA.sol";
contract Erc20
{
function totalSupply() public view returns (uint256 amount);
function balanceOf(address _tokenOwner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);... | !_usedNonces[_signer][_nonce],"Nonce has already been used for this address" | 314,825 | !_usedNonces[_signer][_nonce] |
"!new" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppeli... | address(_controller)!=_newController,"!new" | 314,832 | address(_controller)!=_newController |
"!add" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppeli... | _validTokens.add(_rewardToken),"!add" | 314,832 | _validTokens.add(_rewardToken) |
"!remove" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppeli... | _validTokens.remove(_rewardToken),"!remove" | 314,832 | _validTokens.remove(_rewardToken) |
"Provided reward too high" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppeli... | rewardRates[_rewardToken]<=balance.div(rewardsDuration),"Provided reward too high" | 314,832 | rewardRates[_rewardToken]<=balance.div(rewardsDuration) |
"!valid" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/proxy/Initializable.sol";
import "@openzeppeli... | _validTokens.contains(_rewardToken),"!valid" | 314,832 | _validTokens.contains(_rewardToken) |
"Not enough NFTs left :(" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './ERC721EnumerableLite.sol';
import './Signed.sol';
import "./Strings.sol";
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
contract AshleyMetagolden is ERC721EnumerableLite, Signed {
using Strings for uint... | supply+quantity<=MGOLD_MaxSupply,"Not enough NFTs left :(" | 314,883 | supply+quantity<=MGOLD_MaxSupply |
"Could not verify owner" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './ERC721EnumerableLite.sol';
import './Signed.sol';
import "./Strings.sol";
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
contract AshleyMetagolden is ERC721EnumerableLite, Signed {
using Strings for uint... | _owners[tokenIds[i]]==account,"Could not verify owner" | 314,883 | _owners[tokenIds[i]]==account |
"Not enough NFTs left :(" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './ERC721EnumerableLite.sol';
import './Signed.sol';
import "./Strings.sol";
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
contract AshleyMetagolden is ERC721EnumerableLite, Signed {
using Strings for uint... | supply+totalQuantity<=MGOLD_MaxSupply,"Not enough NFTs left :(" | 314,883 | supply+totalQuantity<=MGOLD_MaxSupply |
"Failed withdraw" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './ERC721EnumerableLite.sol';
import './Signed.sol';
import "./Strings.sol";
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
//Ashley Longshore x Metagolden
contract AshleyMetagolden is ERC721EnumerableLite, Signed {
using Strings for uint... | withdrew_address1&&withdrew_address2,"Failed withdraw" | 314,883 | withdrew_address1&&withdrew_address2 |
"reporter invalidated" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2;
import "./OpenOraclePriceData.sol";
import "./ICompoundOracle.sol";
import "./PriceConfig.sol";
import "./UniswapConfig.sol";
/// @title Oracle for Kine Protocol
/// @author Kine Technology
contract KineOracle is PriceConfig ... | !reporterInvalidated,"reporter invalidated" | 314,893 | !reporterInvalidated |
"You are not on the whitelist!" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | MerkleProof.verify(_merkleProof,merkleRootWhitelist,leaf),"You are not on the whitelist!" | 314,980 | MerkleProof.verify(_merkleProof,merkleRootWhitelist,leaf) |
"WOOL minting paused" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | !mintWithWoolPaused,"WOOL minting paused" | 314,980 | !mintWithWoolPaused |
"All tokens on-sale already sold" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | minted+amount<=PAID_TOKENS,"All tokens on-sale already sold" | 314,980 | minted+amount<=PAID_TOKENS |
"All tokens minted" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | minted+amount<=MAX_TOKENS,"All tokens minted" | 314,980 | minted+amount<=MAX_TOKENS |
"Presale mint paused" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | !mintWithEthPresalePaused,"Presale mint paused" | 314,980 | !mintWithEthPresalePaused |
"Invalid payment amount presale" | //Contract based on https://docs.openzeppelin.com/contracts/3.x/erc721
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
... | amount*MINT_PRICE_DISCOUNT==value,"Invalid payment amount presale" | 314,980 | amount*MINT_PRICE_DISCOUNT==value |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.