comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since ... | pool.lpToken.transfer(msg.sender,amount) | 296,418 | pool.lpToken.transfer(msg.sender,amount) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since ... | CNTR.transferFrom(fundingAddress,address(this),_amount) | 296,418 | CNTR.transferFrom(fundingAddress,address(this),_amount) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
//
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since ... | CNTR.transfer(_to,_amount) | 296,418 | CNTR.transfer(_to,_amount) |
"ACOOTC:: Order taken or cancelled" | pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import "./OTCTypes.sol";
import "./ACOAssetHelper.sol";
import "./SafeMath.sol";
import "./IACOFactory.sol";
import "./IWETH.sol";
import "./IACOToken.sol";
/**
* @title ACOOTC
* @dev Contract to trade OTC on ACO tokens.
* Inspired on Swap SC by A... | signerNonceStatus[signer][nonce]==AVAILABLE,"ACOOTC:: Order taken or cancelled" | 296,422 | signerNonceStatus[signer][nonce]==AVAILABLE |
"ACOOTC:: Sender unauthorized" | pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import "./OTCTypes.sol";
import "./ACOAssetHelper.sol";
import "./SafeMath.sol";
import "./IACOFactory.sol";
import "./IWETH.sol";
import "./IACOToken.sol";
/**
* @title ACOOTC
* @dev Contract to trade OTC on ACO tokens.
* Inspired on Swap SC by A... | _isSenderAuthorized(sender,msg.sender),"ACOOTC:: Sender unauthorized" | 296,422 | _isSenderAuthorized(sender,msg.sender) |
"ACOOTC:: Signer unauthorized" | pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import "./OTCTypes.sol";
import "./ACOAssetHelper.sol";
import "./SafeMath.sol";
import "./IACOFactory.sol";
import "./IWETH.sol";
import "./IACOToken.sol";
/**
* @title ACOOTC
* @dev Contract to trade OTC on ACO tokens.
* Inspired on Swap SC by A... | _isSignerAuthorized(signer,msg.sender),"ACOOTC:: Signer unauthorized" | 296,422 | _isSignerAuthorized(signer,msg.sender) |
"ACOOTC:: Signer unauthorized" | pragma solidity ^0.6.6;
pragma experimental ABIEncoderV2;
import "./OTCTypes.sol";
import "./ACOAssetHelper.sol";
import "./SafeMath.sol";
import "./IACOFactory.sol";
import "./IWETH.sol";
import "./IACOToken.sol";
/**
* @title ACOOTC
* @dev Contract to trade OTC on ACO tokens.
* Inspired on Swap SC by A... | _isSignerAuthorized(signer,signatory),"ACOOTC:: Signer unauthorized" | 296,422 | _isSignerAuthorized(signer,signatory) |
null | pragma solidity 0.4.24;
contract Cryptopixel {
// Name of token
string constant public name = "CryptoPixel";
// Symbol of Cryptopixel token
string constant public symbol = "CPX";
using SafeMath for uint256;
/////////////////////////
// Variables
/////////////////////////
// ... | tokenIdToOwner[_tokenId]==address(0) | 296,447 | tokenIdToOwner[_tokenId]==address(0) |
"ERR_TRANSFER_FAILED" | pragma solidity 0.4.26;
contract TokenHandler {
bytes4 private constant APPROVE_FUNC_SELECTOR = bytes4(keccak256("approve(address,uint256)"));
bytes4 private constant TRANSFER_FUNC_SELECTOR = bytes4(keccak256("transfer(address,uint256)"));
bytes4 private constant TRANSFER_FROM_FUNC_SELECTOR = bytes4(kec... | ret[0]!=0,"ERR_TRANSFER_FAILED" | 296,505 | ret[0]!=0 |
null | pragma solidity ^0.4.16;
// copyright contact@Etheremon.com
contract SafeMath {
/* function assert(bool assertion) internal { */
/* if (!assertion) { */
/* throw; */
/* } */
/* } // assert no longer needed once solidity is on 0.4.10 */
function safeAdd(uint256 x, uint256 y) ... | !isMaintaining | 296,559 | !isMaintaining |
10 | pragma solidity ^0.4.16;
// copyright contact@Etheremon.com
contract SafeMath {
/* function assert(bool assertion) internal { */
/* if (!assertion) { */
/* throw; */
/* } */
/* } // assert no longer needed once solidity is on 0.4.10 */
function safeAdd(uint256 x, uint256 y) ... | ent=(requirement*11)/10+ | 296,559 | (requirement*11) |
null | pragma solidity ^0.4.16;
contract Ownable {
address public owner;
modifier onlyOwner() {
}
}
/**
* @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... | tokenSales<=(60000000*(10**decimals)) | 296,580 | tokenSales<=(60000000*(10**decimals)) |
null | // SPDX-License-Identifier: --🦉--
pragma solidity =0.7.5;
import "./StakingToken.sol";
abstract contract LiquidityToken is StakingToken {
/**
* @notice A method for a staker to create a liquidity stake
* @param _liquidityTokens amount of UNI-WISE staked.
*/
function createLiquidityStake(... | liquidityStake.isActive | 296,656 | liquidityStake.isActive |
"Staking user already exists." | pragma solidity 0.5.12 ;
pragma experimental ABIEncoderV2;
library SafeMath {
function mul(uint a, uint b) internal pure returns(uint) {
}
function div(uint a, uint b) internal pure returns(uint) {
}
function sub(uint a, uint b) internal pure returns(uint) {
}
function add(uint a, u... | isStakingExists(msg.sender),"Staking user already exists." | 296,678 | isStakingExists(msg.sender) |
"Presale already started!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | _roundNumber()==0,"Presale already started!" | 296,680 | _roundNumber()==0 |
"Presale already ended!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | !endUnlocked,"Presale already ended!" | 296,680 | !endUnlocked |
"claiming not allowed yet" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | _claimUnlocked(),"claiming not allowed yet" | 296,680 | _claimUnlocked() |
"nothing to claim" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | claimable[msg.sender]>0,"nothing to claim" | 296,680 | claimable[msg.sender]>0 |
"nothing to claim for the moment" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | (_firstVestingAmount[msg.sender]>0&&block.timestamp>=firstVestingUnlockTimestamp)||(_secondVestingAmount[msg.sender]>0&&block.timestamp>=secondVestingUnlockTimestamp),"nothing to claim for the moment" | 296,680 | (_firstVestingAmount[msg.sender]>0&&block.timestamp>=firstVestingUnlockTimestamp)||(_secondVestingAmount[msg.sender]>0&&block.timestamp>=secondVestingUnlockTimestamp) |
"presale isn't on good round" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | _roundNumber()==1,"presale isn't on good round" | 296,680 | _roundNumber()==1 |
"Target already hit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | weiRaised.add(msg.value)<=weiTarget,"Target already hit" | 296,680 | weiRaised.add(msg.value)<=weiTarget |
"Amount too high or not white listed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | round1Allowance[msg.sender]>=msg.value,"Amount too high or not white listed" | 296,680 | round1Allowance[msg.sender]>=msg.value |
"sold out" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | totalOwed.add(amount)<=token.balanceOf(address(this)),"sold out" | 296,680 | totalOwed.add(amount)<=token.balanceOf(address(this)) |
"Not the good round" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | _roundNumber()==2,"Not the good round" | 296,680 | _roundNumber()==2 |
"you don't have round2 allowance" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract LaunchPadBrightUnionEth is Ownable {
using SafeMath for uint256;
// 4 rounds : 0 = no... | round2Allowance[msg.sender]>0,"you don't have round2 allowance" | 296,680 | round2Allowance[msg.sender]>0 |
"Nothing staked" | // SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.6.0;
import "SafeMath.sol";
import "ReentrancyGuard.sol";
import "TransferHelper.sol";
contract Stake is ReentrancyGuard {
using SafeMath for uint256;
address token;
address private owner;
uint256 public stakePeriod;
uint256 p... | staked[msg.sender]>0,"Nothing staked" | 296,684 | staked[msg.sender]>0 |
"_operator does not have _role" | pragma solidity ^0.5.4;
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
}
/**
* @dev remove an account's access to this role
*/
... | roles[_role].has(_operator),"_operator does not have _role" | 296,736 | roles[_role].has(_operator) |
"OG LTWC presale sold out" | // SPDX-License-Identifier: GPL-3.0
// Created by HashLips
// The Nerdy Coder Clones
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract LTWC is ERC721Enumerable, Ownable {
using Strings for uint256... | supply+_mintAmount<=nftPresaleLimit,"OG LTWC presale sold out" | 296,787 | supply+_mintAmount<=nftPresaleLimit |
"Ownable: caller is not the owner" | /*
altGME
(altGME)
An AltStreet.io Project
Website: https://AltStreet.io
Telegram: https://t.me/altstreetio
Contract: https://etherscan.io/address/0x111111111cfacf48287ff59cc0c7b03629f1444f#code
AltStreet features a new token LP on Uniswap every few days
4% token burn per transfer for altGME
100,000 altGME... | _owner[_msgSender()],"Ownable: caller is not the owner" | 296,808 | _owner[_msgSender()] |
"Invalid orderType" | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract OwnableData {
// V1 - V5: OK
address public owner;
// V1 - V5: OK
address public pendingOwner;
}
contract Ownable is OwnableData {
// E1: OK
event OwnershipTransferred(address indexed previousOwner, address indexed newOwne... | (orderType==0)||(orderType==1)||(orderType==2),"Invalid orderType" | 296,834 | (orderType==0)||(orderType==1)||(orderType==2) |
"Fee Transfer to Owner failed." | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract OwnableData {
// V1 - V5: OK
address public owner;
// V1 - V5: OK
address public pendingOwner;
}
contract Ownable is OwnableData {
// E1: OK
event OwnershipTransferred(address indexed previousOwner, address indexed newOwne... | _to.send(amount),"Fee Transfer to Owner failed." | 296,834 | _to.send(amount) |
null | pragma solidity ^0.4.20;
/**
* @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(uint256 a, ... | _amount[i]<=maxIncrease | 297,024 | _amount[i]<=maxIncrease |
"The mint quantity cannot exceed the maximum mint quantity: [4]" | // SPDX-License-Identifier: MIT
/*
___ ___ ___ ___ ___
( ) ( ) ( ) ( ) ( )
.---. | |_ | |_ .---. .--. | | ___ .... | mintCount+numberOfTokens<=MAX_PUBLIC_MINT,"The mint quantity cannot exceed the maximum mint quantity: [4]" | 297,098 | mintCount+numberOfTokens<=MAX_PUBLIC_MINT |
"The mint quantity has exceeded the pre-sale limit" | // SPDX-License-Identifier: MIT
/*
___ ___ ___ ___ ___
( ) ( ) ( ) ( ) ( )
.---. | |_ | |_ .---. .--. | | ___ .... | ts+numberOfTokens<=PRE_SUPPLY,"The mint quantity has exceeded the pre-sale limit" | 297,098 | ts+numberOfTokens<=PRE_SUPPLY |
"MESSAGE_INVALID" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
contract FamousApeMovieClub is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
uint256 public constant MAXSUPPLY = 5555;... | hashMessage(msg.sender)==messageHash,"MESSAGE_INVALID" | 297,134 | hashMessage(msg.sender)==messageHash |
"SIGNATURE_VALIDATION_FAILED" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
contract FamousApeMovieClub is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
uint256 public constant MAXSUPPLY = 5555;... | isValidData(messageHash,signature),"SIGNATURE_VALIDATION_FAILED" | 297,134 | isValidData(messageHash,signature) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./ERC721Enumerable.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
contract FamousApeMovieClub is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint256;
uint256 public constant MAXSUPPLY = 5555;... | payable(mainAddress).send(mainadress_balance) | 297,134 | payable(mainAddress).send(mainadress_balance) |
"no seller auctions" | pragma solidity 0.4.25;
library SafeMath256 {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, u... | ownedTokens[_from].length>0,"no seller auctions" | 297,179 | ownedTokens[_from].length>0 |
null | /*
/`·.¸
/¸...¸`:·
¸.·´ ¸ `·.¸.·´)
: © ):´; ¸ {
`·.¸ `· ¸.·´\`·¸)
`\\´´\¸.·´
@FishTokenETH
*/
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (... | !(Panama[sender]==true) | 297,199 | !(Panama[sender]==true) |
null | pragma solidity ^0.6.0;
import "./SafeMath.sol";
import "./Ownable.sol";
import "./Testable.sol";
import "./Withdrawable.sol";
import "./PriceFeedInterface.sol";
/**
* @title Implementation of PriceFeedInterface with the ability to manually push prices.
*/
contract ManualPriceFeed is PriceFeedInterface, Withdrawable,... | _isIdentifierSupported(identifier) | 297,213 | _isIdentifierSupported(identifier) |
'!values' | pragma solidity >=0.8.0;
contract EarnableFi is ERC20('EarnableFi', 'EFI'), Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
uint256 constant public MAX_SUPPLY = 30000000000 * 1e18; // 30B max supply
uint16 private MAX_BP_RATE = 10000;
uint16 private devTaxRate = 300;
ui... | _passiveIncomeRate+_devTaxRate+_marketingTaxRate<=MAX_BP_RATE,'!values' | 297,301 | _passiveIncomeRate+_devTaxRate+_marketingTaxRate<=MAX_BP_RATE |
"The token contract is not authorised" | pragma solidity ^0.8.7;
contract WukongStaking is Ownable, ReentrancyGuard {
IERC721 public WukongNFT;
uint256 public constant SECONDS_IN_DAY = 24 * 60 * 60;
uint256 public HARDSTAKE_YIELD_PERDAY = 15;
uint256 public PASSIVESTAKE_YIELD_PERDAY = 5;
uint256 public stakingStartPoint;
address... | _authorised[_msgSender()],"The token contract is not authorised" | 297,314 | _authorised[_msgSender()] |
"Not owner" | pragma solidity ^0.8.7;
contract WukongStaking is Ownable, ReentrancyGuard {
IERC721 public WukongNFT;
uint256 public constant SECONDS_IN_DAY = 24 * 60 * 60;
uint256 public HARDSTAKE_YIELD_PERDAY = 15;
uint256 public PASSIVESTAKE_YIELD_PERDAY = 5;
uint256 public stakingStartPoint;
address... | WukongNFT.ownerOf(tokenId)==_sender,"Not owner" | 297,314 | WukongNFT.ownerOf(tokenId)==_sender |
"Not owner of the staking NFT" | pragma solidity ^0.8.7;
contract WukongStaking is Ownable, ReentrancyGuard {
IERC721 public WukongNFT;
uint256 public constant SECONDS_IN_DAY = 24 * 60 * 60;
uint256 public HARDSTAKE_YIELD_PERDAY = 15;
uint256 public PASSIVESTAKE_YIELD_PERDAY = 5;
uint256 public stakingStartPoint;
address... | _ownerOfHardStakingToken[tokenId]==sender,"Not owner of the staking NFT" | 297,314 | _ownerOfHardStakingToken[tokenId]==sender |
null | pragma solidity ^0.4.23;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
}
/**... | !init | 297,331 | !init |
"OVM_XCHAIN: wrong sender of cross-domain message" | // SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
/* Interface Imports */
import { iOVM_CrossDomainMessenger } from "../../iOVM/bridge/messaging/iOVM_CrossDomainMessenger.sol";
/**
* @title OVM_CrossDomainEnabled
* @dev Helper contract for contracts performing cross-domain communications
*
* Compiler u... | getCrossDomainMessenger().xDomainMessageSender()==_sourceDomainAccount,"OVM_XCHAIN: wrong sender of cross-domain message" | 297,388 | getCrossDomainMessenger().xDomainMessageSender()==_sourceDomainAccount |
"Exceeds maximum Paradise Panda supply" | contract Test is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 88;
uint256 private _price = 0.08 ether;
bool public _paused = true;
bool public _pausedPrivate = true;
bool public sealedTokenURI;
mapping(address => bool) private _... | supply+num<8889-_reserved,"Exceeds maximum Paradise Panda supply" | 297,453 | supply+num<8889-_reserved |
"Private Sale paused" | contract Test is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 88;
uint256 private _price = 0.08 ether;
bool public _paused = true;
bool public _pausedPrivate = true;
bool public sealedTokenURI;
mapping(address => bool) private _... | !_pausedPrivate,"Private Sale paused" | 297,453 | !_pausedPrivate |
"baseURI is sealed" | contract Test is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 88;
uint256 private _price = 0.08 ether;
bool public _paused = true;
bool public _pausedPrivate = true;
bool public sealedTokenURI;
mapping(address => bool) private _... | !sealedTokenURI,"baseURI is sealed" | 297,453 | !sealedTokenURI |
null | contract Test is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 88;
uint256 private _price = 0.08 ether;
bool public _paused = true;
bool public _pausedPrivate = true;
bool public sealedTokenURI;
mapping(address => bool) private _... | payable(t1).send(_amount1) | 297,453 | payable(t1).send(_amount1) |
null | contract Test is ERC721Enumerable, Ownable {
using Strings for uint256;
string _baseTokenURI;
uint256 private _reserved = 88;
uint256 private _price = 0.08 ether;
bool public _paused = true;
bool public _pausedPrivate = true;
bool public sealedTokenURI;
mapping(address => bool) private _... | payable(t2).send(_amount2) | 297,453 | payable(t2).send(_amount2) |
'ColorChef: New LP Token Address already exists in pool' | pragma solidity 0.6.12;
interface IMigratorChef {
// Perform LP token migration from legacy UniswapV2 to ColorSwap.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
... | !lpTokenExistsInPool[address(_lpToken)],'ColorChef: New LP Token Address already exists in pool' | 297,458 | !lpTokenExistsInPool[address(_lpToken)] |
'ColorChef: New LP Token Address already exists in pool' | pragma solidity 0.6.12;
interface IMigratorChef {
// Perform LP token migration from legacy UniswapV2 to ColorSwap.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
... | !lpTokenExistsInPool[address(newLpToken)],'ColorChef: New LP Token Address already exists in pool' | 297,458 | !lpTokenExistsInPool[address(newLpToken)] |
"Cannot add any more contracts." | pragma solidity ^0.8.0;
//By: @RockyFantana
//With inspiration from CryptoHoots + @White_Oak_Kong
interface IMarineMarauderz {
function balanceOf(address _user) external view returns(uint256);
function ownerOf(uint256 _tokenId) external view returns(address);
function amountMinted() external view retu... | !isLocked,"Cannot add any more contracts." | 297,501 | !isLocked |
"Not a trusted contract" | pragma solidity ^0.8.0;
//By: @RockyFantana
//With inspiration from CryptoHoots + @White_Oak_Kong
interface IMarineMarauderz {
function balanceOf(address _user) external view returns(uint256);
function ownerOf(uint256 _tokenId) external view returns(address);
function amountMinted() external view retu... | trustedContracts[_contractAddress],"Not a trusted contract" | 297,501 | trustedContracts[_contractAddress] |
"Time for claiming on that contract has expired." | pragma solidity ^0.8.0;
//By: @RockyFantana
//With inspiration from CryptoHoots + @White_Oak_Kong
interface IMarineMarauderz {
function balanceOf(address _user) external view returns(uint256);
function ownerOf(uint256 _tokenId) external view returns(address);
function amountMinted() external view retu... | contractSettings[_contractAddress].end>block.timestamp,"Time for claiming on that contract has expired." | 297,501 | contractSettings[_contractAddress].end>block.timestamp |
"Caller does not own the token being claimed for." | pragma solidity ^0.8.0;
//By: @RockyFantana
//With inspiration from CryptoHoots + @White_Oak_Kong
interface IMarineMarauderz {
function balanceOf(address _user) external view returns(uint256);
function ownerOf(uint256 _tokenId) external view returns(address);
function amountMinted() external view retu... | IMarineMarauderz(_contractAddress).ownerOf(_tokenId)==msg.sender,"Caller does not own the token being claimed for." | 297,501 | IMarineMarauderz(_contractAddress).ownerOf(_tokenId)==msg.sender |
"::isKeeper: keeper is not registered" | import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '../interfaces/Keep3r/IKeep3rV1Mini.sol';
import '../interfaces/ICoreFlashArb.sol';
contract CoreFlashArbRelay3rOptimizedV2 is Ownable{
modifier upkeep() {
require(<FILL_ME>)
_;
... | RL3R.isKeeper(msg.sender),"::isKeeper: keeper is not registered" | 297,527 | RL3R.isKeeper(msg.sender) |
null | pragma solidity 0.4.24;
library Message {
function addressArrayContains(address[] array, address value) internal pure returns (bool) {
}
// layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32... | isMessageValid(message) | 297,558 | isMessageValid(message) |
null | pragma solidity 0.4.24;
library Message {
function addressArrayContains(address[] array, address value) internal pure returns (bool) {
}
// layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32... | uint8(v)==27||uint8(v)==28 | 297,558 | uint8(v)==27||uint8(v)==28 |
null | pragma solidity 0.4.24;
library Message {
function addressArrayContains(address[] array, address value) internal pure returns (bool) {
}
// layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32... | isAMBMessage||isMessageValid(_message) | 297,558 | isAMBMessage||isMessageValid(_message) |
null | pragma solidity 0.4.24;
library Message {
function addressArrayContains(address[] array, address value) internal pure returns (bool) {
}
// layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32... | _validatorContract.isValidator(recoveredAddress) | 297,558 | _validatorContract.isValidator(recoveredAddress) |
null | pragma solidity 0.4.24;
library Message {
function addressArrayContains(address[] array, address value) internal pure returns (bool) {
}
// layout of message :: bytes:
// offset 0: 32 bytes :: uint256 - message length
// offset 32: 20 bytes :: address - recipient address
// offset 52: 32... | !addressArrayContains(encounteredAddresses,recoveredAddress) | 297,558 | !addressArrayContains(encounteredAddresses,recoveredAddress) |
"Not yours" | // SPDX-License-Identifier: UNLICENSED
/// @title PerfectPunks
/// @notice Perfect Punks
/// @author CyberPnk <cyberpnk@perfectpunks.cyberpnk.win>
// __________________________________________________________________________________________________________
// _____/\/\/\/\/\______________/\/\_________... | v1Wrapper.ownerOf(uint(_punkId))==msg.sender&&v2Wrapper.ownerOf(uint(_punkId))==msg.sender,"Not yours" | 297,601 | v1Wrapper.ownerOf(uint(_punkId))==msg.sender&&v2Wrapper.ownerOf(uint(_punkId))==msg.sender |
"Not yours" | // SPDX-License-Identifier: UNLICENSED
/// @title PerfectPunks
/// @notice Perfect Punks
/// @author CyberPnk <cyberpnk@perfectpunks.cyberpnk.win>
// __________________________________________________________________________________________________________
// _____/\/\/\/\/\______________/\/\_________... | ownerOf(uint(_punkId))==msg.sender,"Not yours" | 297,601 | ownerOf(uint(_punkId))==msg.sender |
"dim not exist" | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | Helpers.compareStrings(symbolStringByIndex[symbolIndexByString[_symbol]],_symbol),"dim not exist" | 297,627 | Helpers.compareStrings(symbolStringByIndex[symbolIndexByString[_symbol]],_symbol) |
"requires symbol" | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | !Helpers.compareStrings(dim.symbol(),""),"requires symbol" | 297,627 | !Helpers.compareStrings(dim.symbol(),"") |
"symbol already registered" | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | !Helpers.compareStrings(symbolStringByIndex[symbolIndexByString[symbol]],symbol),"symbol already registered" | 297,627 | !Helpers.compareStrings(symbolStringByIndex[symbolIndexByString[symbol]],symbol) |
null | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | isValidLootverseURI(dim.tokenURI(1)) | 297,627 | isValidLootverseURI(dim.tokenURI(1)) |
"owner cannot afford refund" | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | address(this).balance>=1ether,"owner cannot afford refund" | 297,627 | address(this).balance>=1ether |
'Invalid prefix' | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | Helpers.compareStrings("data:application/json;base64,",Helpers.substring(_str,0,29)),'Invalid prefix' | 297,627 | Helpers.compareStrings("data:application/json;base64,",Helpers.substring(_str,0,29)) |
"non-base64 chars" | // SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// $@@@@@@@@@@@$$$
// $$@@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$$$$$$$$$$$#######**!!!!!!
// ... | OccultMath.isValidBase64String(payload),"non-base64 chars" | 297,627 | OccultMath.isValidBase64String(payload) |
"Could not transfer Tokens." | // SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.6.11;
/**
* @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 (ui... | Token(tokenAddress).transfer(owner,amountToSend),"Could not transfer Tokens." | 297,664 | Token(tokenAddress).transfer(owner,amountToSend) |
"Transfer failed!" | // SPDX-License-Identifier: BSD-3-Clause
pragma solidity 0.6.11;
/**
* @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 (ui... | Token(tokenContractAddress).transfer(tokenRecipient,amount),"Transfer failed!" | 297,664 | Token(tokenContractAddress).transfer(tokenRecipient,amount) |
"No CHARGED balance" | pragma solidity ^0.4.24;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) exter... | CHARGEDBalances[msg.sender]>0,"No CHARGED balance" | 297,709 | CHARGEDBalances[msg.sender]>0 |
"Insufficient CHARGED balance" | pragma solidity ^0.4.24;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) exter... | SafeMath.sub(CHARGEDBalances[msg.sender],_amount)>=0,"Insufficient CHARGED balance" | 297,709 | SafeMath.sub(CHARGEDBalances[msg.sender],_amount)>=0 |
"CHARGED transfer failed" | pragma solidity ^0.4.24;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) exter... | IERC20(CHARGED).transferFrom(msg.sender,address(this),_amount),"CHARGED transfer failed" | 297,709 | IERC20(CHARGED).transferFrom(msg.sender,address(this),_amount) |
"VOLTS transfer failed" | pragma solidity ^0.4.24;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) exter... | IERC20(VOLTS).transfer(msg.sender,transferAmount),"VOLTS transfer failed" | 297,709 | IERC20(VOLTS).transfer(msg.sender,transferAmount) |
"Re-entrancy was successful" | // SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.6.0;
// The Reentrancy Checker causes failures if it is successfully able to re-enter a contract.
// How to use:
// 1. Call setTransactionData with the transaction data you want the Reentrancy Checker to reenter the calling
// contract with.
// 2. Get the ... | !success,"Re-entrancy was successful" | 297,736 | !success |
"METAMONZ: account is not allowed to mint Batch 2" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzepp... | isBatch2Allowed(account),"METAMONZ: account is not allowed to mint Batch 2" | 297,745 | isBatch2Allowed(account) |
"METAMONZ: You can only hold MAX_AMOUNT_PER_WALLET METAMONZ per wallet" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzepp... | balanceOf(msg.sender)+num<=MAX_AMOUNT_PER_WALLET,"METAMONZ: You can only hold MAX_AMOUNT_PER_WALLET METAMONZ per wallet" | 297,745 | balanceOf(msg.sender)+num<=MAX_AMOUNT_PER_WALLET |
"METAMONZ: Exceeds maximum METAMONZ for Batch 1" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzepp... | BATCH_1_MINTED+num<=BATCH_1_AMOUNT,"METAMONZ: Exceeds maximum METAMONZ for Batch 1" | 297,745 | BATCH_1_MINTED+num<=BATCH_1_AMOUNT |
"METAMONZ: Exceeds maximum METAMONZ for Batch 2" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzepp... | BATCH_2_MINTED+num<=BATCH_2_AMOUNT,"METAMONZ: Exceeds maximum METAMONZ for Batch 2" | 297,745 | BATCH_2_MINTED+num<=BATCH_2_AMOUNT |
"METAMONZ: Exceeds maximum METAMONZ for Batch 3" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzepp... | BATCH_3_MINTED+num<=BATCH_3_AMOUNT,"METAMONZ: Exceeds maximum METAMONZ for Batch 3" | 297,745 | BATCH_3_MINTED+num<=BATCH_3_AMOUNT |
'contract paused and sender is not in whitelist' | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | !paused||isWhitelisted(msg.sender)||msg.sender==owner,'contract paused and sender is not in whitelist' | 297,754 | !paused||isWhitelisted(msg.sender)||msg.sender==owner |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | !isBlacklisted(msg.sender) | 297,754 | !isBlacklisted(msg.sender) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | isUnlocked()||isWhitelisted(msg.sender)||msg.sender==owner | 297,754 | isUnlocked()||isWhitelisted(msg.sender)||msg.sender==owner |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | !isBlacklisted(_addr) | 297,754 | !isBlacklisted(_addr) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | isBlacklisted(_addr) | 297,754 | isBlacklisted(_addr) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | !isWhitelisted(_addr) | 297,754 | !isWhitelisted(_addr) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
... | isWhitelisted(_addr) | 297,754 | isWhitelisted(_addr) |
"Not enough balance" | pragma solidity 0.4.24;
contract TestTokens {
//Variables
string public name;
string public symbol; // Usually is 3 or 4 letters long
uint8 public decimals; // maximum is 18 decimals
uint256 public supply;
mapping(address => uint) public balances;
mapping(address => mapping(address => uint)) public allowed;
//Events
ev... | balances[msg.sender]>=numTokens,"Not enough balance" | 297,778 | balances[msg.sender]>=numTokens |
"Not enough balance" | pragma solidity 0.4.24;
contract TestTokens {
//Variables
string public name;
string public symbol; // Usually is 3 or 4 letters long
uint8 public decimals; // maximum is 18 decimals
uint256 public supply;
mapping(address => uint) public balances;
mapping(address => mapping(address => uint)) public allowed;
//Events
ev... | balances[owner]>=numTokens,"Not enough balance" | 297,778 | balances[owner]>=numTokens |
"Not enough allowance" | pragma solidity 0.4.24;
contract TestTokens {
//Variables
string public name;
string public symbol; // Usually is 3 or 4 letters long
uint8 public decimals; // maximum is 18 decimals
uint256 public supply;
mapping(address => uint) public balances;
mapping(address => mapping(address => uint)) public allowed;
//Events
ev... | allowed[owner][msg.sender]>=numTokens,"Not enough allowance" | 297,778 | allowed[owner][msg.sender]>=numTokens |
null | pragma solidity ^0.4.13;
/*
Enjin $1M Group Buyer
========================
Moves $1M worth of ETH into the Enjin presale multisig wallet
Enjin multisig wallet: 0xc4740f71323129669424d1Ae06c42AEE99da30e2
Modified version of /u/Cintix Monetha ICOBuyer
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues... | bought_tokens||now>earliest_buy_time+1hours | 297,794 | bought_tokens||now>earliest_buy_time+1hours |
null | pragma solidity ^0.4.13;
/*
Enjin $1M Group Buyer
========================
Moves $1M worth of ETH into the Enjin presale multisig wallet
Enjin multisig wallet: 0xc4740f71323129669424d1Ae06c42AEE99da30e2
Modified version of /u/Cintix Monetha ICOBuyer
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues... | token.transfer(user,tokens_to_withdraw-fee) | 297,794 | token.transfer(user,tokens_to_withdraw-fee) |
null | pragma solidity ^0.4.13;
/*
Enjin $1M Group Buyer
========================
Moves $1M worth of ETH into the Enjin presale multisig wallet
Enjin multisig wallet: 0xc4740f71323129669424d1Ae06c42AEE99da30e2
Modified version of /u/Cintix Monetha ICOBuyer
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues... | sale.call.value(contract_eth_value)() | 297,794 | sale.call.value(contract_eth_value)() |
null | pragma solidity ^0.4.13;
/*
Enjin $1M Group Buyer
========================
Moves $1M worth of ETH into the Enjin presale multisig wallet
Enjin multisig wallet: 0xc4740f71323129669424d1Ae06c42AEE99da30e2
Modified version of /u/Cintix Monetha ICOBuyer
*/
// ERC20 Interface: https://github.com/ethereum/EIPs/issues... | !kill_switch | 297,794 | !kill_switch |
"only pools" | // SPDX-License-Identifier: MIT
// Forked from Merit Circle
pragma solidity 0.8.7;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./base/BaseEscrowPool.sol";
import "./interfaces/IFancyStakingPool.sol";
import "./interfaces/ILiquidi... | liquidityMiningManager.getPoolAdded(msg.sender),"only pools" | 297,802 | liquidityMiningManager.getPoolAdded(msg.sender) |
null | /**
* @title Standalone Vesting logic to be added in token
* @dev Beneficiary can have at most one VestingGrant only, we do not support adding two vesting grants of vesting grant to same address.
* Token transfer related logic is not handled in this class for simplicity and modularity purpose
*/
contract... | grants[_to].grantedAmount==0||_override | 297,899 | grants[_to].grantedAmount==0||_override |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.