comment stringlengths 1 211 β | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
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, ... | getD180AvailableAmount(msg.sender)>=amount | 291,988 | getD180AvailableAmount(msg.sender)>=amount |
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, ... | getD270AvailableAmount(msg.sender)>=amount | 291,988 | getD270AvailableAmount(msg.sender)>=amount |
"unauthorized" | // SPDX_License_Identifier: MIT
pragma solidity >=0.7.0;
abstract contract LazyInitCapableElement is ILazyInitCapableElement {
using ReflectionUtilities for address;
address public override initializer;
address public override host;
constructor(bytes memory lazyInitData) {
}
function laz... | _authorizedOnly(),"unauthorized" | 292,001 | _authorizedOnly() |
"reached max supply" | /**
*Submitted for verification at Etherscan.io on 2022-03-25
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-23
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-11
*/
/**
*Submitted for verification at Etherscan.io on 2022-02-21
*/
/**
*Submitted for verification at Ethersc... | totalSupply()+quantity<=collectionSize-reserve,"reached max supply" | 292,108 | totalSupply()+quantity<=collectionSize-reserve |
"Quantity exceeds allowed Mints" | /**
*Submitted for verification at Etherscan.io on 2022-03-25
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-23
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-11
*/
/**
*Submitted for verification at Etherscan.io on 2022-02-21
*/
/**
*Submitted for verification at Ethersc... | (numberMinted(msg.sender)+quantity<=MAX_PER_Address),"Quantity exceeds allowed Mints" | 292,108 | (numberMinted(msg.sender)+quantity<=MAX_PER_Address) |
'yfie + value == YFIE.balanceOf(_to)' | pragma solidity >=0.4.22 <0.6.0;
contract ERC20
{
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
function transfer(address _to, uint256 _value) public;
function transferFrom(address _from, address _to, uint256 _value) public retur... | yfie+value==YFIE.balanceOf(_to),'yfie + value == YFIE.balanceOf(_to)' | 292,207 | yfie+value==YFIE.balanceOf(_to) |
'principal + value == YFIE.balanceOf(_to)' | pragma solidity >=0.4.22 <0.6.0;
contract ERC20
{
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
function transfer(address _to, uint256 _value) public;
function transferFrom(address _from, address _to, uint256 _value) public retur... | principal+value==YFIE.balanceOf(_to),'principal + value == YFIE.balanceOf(_to)' | 292,207 | principal+value==YFIE.balanceOf(_to) |
'principal + value == FIE.balanceOf(_to)' | pragma solidity >=0.4.22 <0.6.0;
contract ERC20
{
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
function transfer(address _to, uint256 _value) public;
function transferFrom(address _from, address _to, uint256 _value) public retur... | principal+value==FIE.balanceOf(_to),'principal + value == FIE.balanceOf(_to)' | 292,207 | principal+value==FIE.balanceOf(_to) |
"Either sale is currently active or cooking is inactive" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Owna... | cookingIsActive&&!saleIsActive,"Either sale is currently active or cooking is inactive" | 292,227 | cookingIsActive&&!saleIsActive |
"Caller is not owner nor approved" | // SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Owna... | _isApprovedOrOwner(_msgSender(),firstTokenId)&&_isApprovedOrOwner(_msgSender(),secondTokenId),"Caller is not owner nor approved" | 292,227 | _isApprovedOrOwner(_msgSender(),firstTokenId)&&_isApprovedOrOwner(_msgSender(),secondTokenId) |
'you can only unstake if you have some staked' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import './interfaces/IConditional.sol';
import './interfaces/IMultiplier.... | shares[msg.sender].amount>0&&(boostedAmount==0||boostedAmount<=shares[msg.sender].amount),'you can only unstake if you have some staked' | 292,258 | shares[msg.sender].amount>0&&(boostedAmount==0||boostedAmount<=shares[msg.sender].amount) |
'contract does not implement interface' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import './interfaces/IConditional.sol';
import './interfaces/IMultiplier.... | _contCheck.passesTest(address(0))==true||_contCheck.passesTest(address(0))==false,'contract does not implement interface' | 292,258 | _contCheck.passesTest(address(0))==true||_contCheck.passesTest(address(0))==false |
'contract does not implement interface' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';
import './interfaces/IConditional.sol';
import './interfaces/IMultiplier.... | _contCheck.getMultiplier(address(0))>=0,'contract does not implement interface' | 292,258 | _contCheck.getMultiplier(address(0))>=0 |
null | interface ITweedentityStore {
function isUpgradable(address _address, string _uid) public constant returns (bool);
function setIdentity(address _address, string _uid) external;
function unsetIdentity(address _address) external;
function getAppNickname() external constant returns (bytes32);
function getAp... | bytes(_appNickname).length>0 | 292,287 | bytes(_appNickname).length>0 |
null | interface ITweedentityStore {
function isUpgradable(address _address, string _uid) public constant returns (bool);
function setIdentity(address _address, string _uid) external;
function unsetIdentity(address _address) external;
function getAppNickname() external constant returns (bytes32);
function getAp... | _store.getAppNickname()==_appNickname32 | 292,287 | _store.getAppNickname()==_appNickname32 |
null | interface ITweedentityStore {
function isUpgradable(address _address, string _uid) public constant returns (bool);
function setIdentity(address _address, string _uid) external;
function unsetIdentity(address _address) external;
function getAppNickname() external constant returns (bytes32);
function getAp... | appNicknames32[_appId]==0x0 | 292,287 | appNicknames32[_appId]==0x0 |
null | interface ITweedentityStore {
function isUpgradable(address _address, string _uid) public constant returns (bool);
function setIdentity(address _address, string _uid) external;
function unsetIdentity(address _address) external;
function getAppNickname() external constant returns (bytes32);
function getAp... | appNicknames32[_appId]!=0x0 | 292,287 | appNicknames32[_appId]!=0x0 |
null | interface ITweedentityStore {
function isUpgradable(address _address, string _uid) public constant returns (bool);
function setIdentity(address _address, string _uid) external;
function unsetIdentity(address _address) external;
function getAppNickname() external constant returns (bytes32);
function getAp... | _store.isUid(_uid) | 292,287 | _store.isUid(_uid) |
null | /* ==================================================================== */
/* Copyright (c) 2018 The CryptoRacing Project. All rights reserved.
/*
/* The first idle car race game of blockchain
/* ==================================================================== */
pragma solidity ^0.4.20;
... | actionContracts[msg.sender] | 292,299 | actionContracts[msg.sender] |
null | /* ==================================================================== */
/* Copyright (c) 2018 The CryptoRacing Project. All rights reserved.
/*
/* The first idle car race game of blockchain
/* ==================================================================== */
pragma solidity ^0.4.20;
... | battleCooldown[player]<block.timestamp | 292,299 | battleCooldown[player]<block.timestamp |
null | /* ==================================================================== */
/* Copyright (c) 2018 The CryptoRacing Project. All rights reserved.
/*
/* The first idle car race game of blockchain
/* ==================================================================== */
pragma solidity ^0.4.20;
... | balanceOf(target)>0 | 292,299 | balanceOf(target)>0 |
"Sold Out" | pragma solidity 0.8.0;
interface OGDoodsContract {
function ownerOf(uint256 id) external view returns (address);
function balanceOf(address owner) external view returns (uint256);
}
contract DoodlePets is ERC721, Ownable {
uint256 private _totalSupply = 1;
uint256 private _maxSupply = 10000;
... | _totalSupply+doodleIDs.length<=_maxSupply,"Sold Out" | 292,327 | _totalSupply+doodleIDs.length<=_maxSupply |
"Doodle ID Already Claimed" | pragma solidity 0.8.0;
interface OGDoodsContract {
function ownerOf(uint256 id) external view returns (address);
function balanceOf(address owner) external view returns (uint256);
}
contract DoodlePets is ERC721, Ownable {
uint256 private _totalSupply = 1;
uint256 private _maxSupply = 10000;
... | !claimedDoods[doodleIDs[i]],"Doodle ID Already Claimed" | 292,327 | !claimedDoods[doodleIDs[i]] |
"Not in HTLC group" | /*
Copyright 2019 Wanchain 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 applicable law or agreed to in w... | htlcGroupMap[msg.sender],"Not in HTLC group" | 292,365 | htlcGroupMap[msg.sender] |
"Rewards: Balance Changed Since Hash Generated" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ECDSA.sol";
import "./Ownable.sol";
import "./Context.sol";
import "./SafeMath.sol";
import "./Token.sol";
import "./VerifySignature.sol";
contract Rewards is Context, Ownable {
using SafeMath for uint256;
struct RewardClaim {
/* Account Key & Si... | _balances[rewardClaim.accountKey]==rewardClaim.oldBalance,"Rewards: Balance Changed Since Hash Generated" | 292,380 | _balances[rewardClaim.accountKey]==rewardClaim.oldBalance |
"Rewards: New Balance is not in Expected State" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ECDSA.sol";
import "./Ownable.sol";
import "./Context.sol";
import "./SafeMath.sol";
import "./Token.sol";
import "./VerifySignature.sol";
contract Rewards is Context, Ownable {
using SafeMath for uint256;
struct RewardClaim {
/* Account Key & Si... | _balances[rewardClaim.accountKey]==rewardClaim.newBalance,"Rewards: New Balance is not in Expected State" | 292,380 | _balances[rewardClaim.accountKey]==rewardClaim.newBalance |
null | /**
* @title Wallet to hold and trade ERC20 tokens and ether
* @author Adam Lemmon <adam@oraclize.it>
* @dev User wallet to interact with the exchange.
* all tokens and ether held in this wallet, 1 to 1 mapping to user EOAs.
*/
contract WalletV2 is LoggingErrors {
/**
* Storage
*/
// Vars inclu... | logic_.delegatecall(bytes4(sha3('deposit(address,uint256)')),0,msg.value) | 292,449 | logic_.delegatecall(bytes4(sha3('deposit(address,uint256)')),0,msg.value) |
null | /**
* @title Wallet to hold and trade ERC20 tokens and ether
* @author Adam Lemmon <adam@oraclize.it>
* @dev User wallet to interact with the exchange.
* all tokens and ether held in this wallet, 1 to 1 mapping to user EOAs.
*/
contract WalletV2 is LoggingErrors {
/**
* Storage
*/
// Vars inclu... | logic_.delegatecall(bytes4(sha3('deposit(address,uint256)')),_token,_amount) | 292,449 | logic_.delegatecall(bytes4(sha3('deposit(address,uint256)')),_token,_amount) |
"Error: this will increase staking amount pass the cap" | pragma solidity 0.6.12;
contract SpiderDAONest3 is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
mapping(address => uint256) private _stakes;
string public name;
uint256 public immutable stakingStarts;
uint256 public immutable stakingEnds;
uint256 public stakedTot... | (remaining.add(stakedTotal))<=stakingCap,"Error: this will increase staking amount pass the cap" | 292,452 | (remaining.add(stakedTotal))<=stakingCap |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./WojekHelper.sol";
contract Wojek is ERC721, Ownable
{
struct Attribute
{
string value;
uint40[] svg;
}
string private _additionalColors;
uint256 private cons... | _totalSupply+amount<=_maxSupply | 292,518 | _totalSupply+amount<=_maxSupply |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./WojekHelper.sol";
contract Wojek is ERC721, Ownable
{
struct Attribute
{
string value;
uint40[] svg;
}
string private _additionalColors;
uint256 private cons... | _totalSupply+mintAmount<=_maxSupply | 292,518 | _totalSupply+mintAmount<=_maxSupply |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./WojekHelper.sol";
contract Wojek is ERC721, Ownable
{
struct Attribute
{
string value;
uint40[] svg;
}
string private _additionalColors;
uint256 private cons... | _mintsLeft-mintAmount>=0 | 292,518 | _mintsLeft-mintAmount>=0 |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./WojekHelper.sol";
contract Wojek is ERC721, Ownable
{
struct Attribute
{
string value;
uint40[] svg;
}
string private _additionalColors;
uint256 private cons... | _mintedTokens[hash]==false | 292,518 | _mintedTokens[hash]==false |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./Ownable.sol";
import "./WojekHelper.sol";
contract Wojek is ERC721, Ownable
{
struct Attribute
{
string value;
uint40[] svg;
}
string private _additionalColors;
uint256 private cons... | _mintedTokens[hash]==true | 292,518 | _mintedTokens[hash]==true |
"error_overwrite" | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division o... | blockHash[blockNumber]==0,"error_overwrite" | 292,542 | blockHash[blockNumber]==0 |
"error_proof" | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division o... | proofIsCorrect(blockNumber,account,balance,proof),"error_proof" | 292,542 | proofIsCorrect(blockNumber,account,balance,proof) |
"error_oldEarnings" | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division o... | earnings[account]<newEarnings,"error_oldEarnings" | 292,542 | earnings[account]<newEarnings |
"error_missingBalance" | pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division o... | totalProven.sub(totalWithdrawn)<=token.balanceOf(this),"error_missingBalance" | 292,542 | totalProven.sub(totalWithdrawn)<=token.balanceOf(this) |
"escrow already exists" | pragma solidity ^0.5.0;
/**
* Creates an EscrowLibrary contract and allows for creating new escrows linked
* to that library
* @dev The factory contract can be self-destructed by the owner to prevent
* new escrows from being created without affecting the library and the ability
* to close already existing escrow... | !escrowsCreated[escrowParamsHash],"escrow already exists" | 292,701 | !escrowsCreated[escrowParamsHash] |
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 c) {
}
/**
* @dev Integer division o... | receiver1.send(toSend) | 292,703 | receiver1.send(toSend) |
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 c) {
}
/**
* @dev Integer division o... | receiver2.send(toSend) | 292,703 | receiver2.send(toSend) |
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 c) {
}
/**
* @dev Integer division o... | _tokenAddress.call(0xa9059cbb,_to,_value) | 292,703 | _tokenAddress.call(0xa9059cbb,_to,_value) |
null | pragma solidity ^0.7.0;
/**
* @title CryptoRick contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoRick is ERC721, Ownable {
using SafeMath for uint256;
string public RICK_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public starti... | payable(withdrawAddresses[i]).send(amount) | 292,732 | payable(withdrawAddresses[i]).send(amount) |
"Purchase would exceed max supply of Ricks" | pragma solidity ^0.7.0;
/**
* @title CryptoRick contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoRick is ERC721, Ownable {
using SafeMath for uint256;
string public RICK_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public starti... | totalSupply().add(numberOfTokens)<=MAX_RICK,"Purchase would exceed max supply of Ricks" | 292,732 | totalSupply().add(numberOfTokens)<=MAX_RICK |
"Ether value sent is not correct" | pragma solidity ^0.7.0;
/**
* @title CryptoRick contract
* @dev Extends ERC721 Non-Fungible Token Standard basic implementation
*/
contract CryptoRick is ERC721, Ownable {
using SafeMath for uint256;
string public RICK_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public starti... | rickPrice.mul(numberOfTokens)<=msg.value,"Ether value sent is not correct" | 292,732 | rickPrice.mul(numberOfTokens)<=msg.value |
ERROR_NOT_OWNER | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | operators.has(msg.sender)||owner()==msg.sender,ERROR_NOT_OWNER | 292,828 | operators.has(msg.sender)||owner()==msg.sender |
ERROR_NO_STAKE | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | stakes[staker][tokenAddress].TokenAddress==tokenAddress,ERROR_NO_STAKE | 292,828 | stakes[staker][tokenAddress].TokenAddress==tokenAddress |
ERROR_TOKEN_EXISTS | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | !isToken(TokenAddress),ERROR_TOKEN_EXISTS | 292,828 | !isToken(TokenAddress) |
ERROR_TOKEN_NOT_FOUND | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | isToken(TokenAddress),ERROR_TOKEN_NOT_FOUND | 292,828 | isToken(TokenAddress) |
ERROR_TOKEN_NOT_FOUND | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | isToken(tokenAddress),ERROR_TOKEN_NOT_FOUND | 292,828 | isToken(tokenAddress) |
ERROR_NO_STAKE | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | hasStake(staker,tokenAddress),ERROR_NO_STAKE | 292,828 | hasStake(staker,tokenAddress) |
ERROR_TOKEN_TRANSFER | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | token.transfer(staker,amount),ERROR_TOKEN_TRANSFER | 292,828 | token.transfer(staker,amount) |
null | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | IERC20(tokenAddress).transfer(msg.sender,amount) | 292,828 | IERC20(tokenAddress).transfer(msg.sender,amount) |
null | pragma solidity ^0.6.12;
contract Stake is StakingInterface, Ownable, TokenErrorReporter {
using SafeMath for uint256;
using Roles for Roles.Role;
Roles.Role operators;
event WhitelistToken(address indexed tokenAddress);
event DiscardToken(address indexed tokenAddress);
event StakeEvent(
... | token.transfer(msg.sender,balance) | 292,828 | token.transfer(msg.sender,balance) |
null | /**
* @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) {
}
/**
* @dev Integer division of two number... | voltOwners[msg.sender]==99 | 293,080 | voltOwners[msg.sender]==99 |
null | /**
* @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) {
}
/**
* @dev Integer division of two number... | balanceOf(to).add(value)>=balanceOf(to) | 293,080 | balanceOf(to).add(value)>=balanceOf(to) |
null | /**
* @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) {
}
/**
* @dev Integer division of two number... | isFreeze(from)==false | 293,080 | isFreeze(from)==false |
null | /**
* @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) {
}
/**
* @dev Integer division of two number... | allowance(from,msg.sender)>=value | 293,080 | allowance(from,msg.sender)>=value |
'!signatory' | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 Varia LLC
/// Wet Code by Erich Dylus & Sarah Brennan
/// Dry Code by LexDAO LLC
pragma solidity 0.8.6;
/// @notice This contract manages function access control, adapted from @boringcrypto (https://github.com/boringcrypto/BoringSolidity).
contract Ownable {
... | registrations[msg.sender]==id,'!signatory' | 293,103 | registrations[msg.sender]==id |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_accountId).length!=0 | 293,110 | bytes(_accountId).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_accountNumber).length!=0 | 293,110 | bytes(_accountNumber).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_routingNumber).length!=0 | 293,110 | bytes(_routingNumber).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_institution).length!=0 | 293,110 | bytes(_institution).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_fullname).length!=0 | 293,110 | bytes(_fullname).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_checkFilePath).length!=0 | 293,110 | bytes(_checkFilePath).length!=0 |
null | pragma solidity ^0.4.12;
contract Ownable {
address public owner;
function Ownable() {
}
modifier onlyOwner() {
}
function transferOwnership(address newOwner) onlyOwner {
}
}
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeDiv(uint a, uint b... | bytes(_digitalCheckFingerPrint).length!=0 | 293,110 | bytes(_digitalCheckFingerPrint).length!=0 |
"Error sending tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | token.transfer(destAddress,destAmount),"Error sending tokens" | 293,241 | token.transfer(destAddress,destAmount) |
"Error pulling tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | token.transferFrom(msg.sender,this,tokenQty),"Error pulling tokens" | 293,241 | token.transferFrom(msg.sender,this,tokenQty) |
"Error pulling tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | token.approve(kyber,tokenQty),"Error pulling tokens" | 293,241 | token.approve(kyber,tokenQty) |
"Error sending ETH" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | destAddress.send(destAmount),"Error sending ETH" | 293,241 | destAddress.send(destAmount) |
"Error pulling tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | srcToken.transferFrom(msg.sender,this,srcQty),"Error pulling tokens" | 293,241 | srcToken.transferFrom(msg.sender,this,srcQty) |
"Error approve transfer tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | srcToken.approve(kyber,srcQty),"Error approve transfer tokens" | 293,241 | srcToken.approve(kyber,srcQty) |
"Error sending tokens" | contract KyberConverter is TokenConverter, AvailableProvider, Ownable {
ERC20 constant internal ETH_TOKEN_ADDRESS = ERC20(0x00eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee);
KyberNetworkProxy kyber;
event Swap(address indexed sender, ERC20 srcToken, ERC20 destToken, uint amount);
event WithdrawTokens(add... | destToken.transfer(destAddress,destAmount),"Error sending tokens" | 293,241 | destToken.transfer(destAddress,destAmount) |
'You are not whitelisted' | // SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
}
function sendValue(address payable recipient, uint256 amount) internal {
}
function functionCall(address target, bytes memory data) internal returns (... | whitelistedMap[msg.sender]==1||WhitelistStatus==false,'You are not whitelisted' | 293,255 | whitelistedMap[msg.sender]==1||WhitelistStatus==false |
"Pool not set" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
}
function sendValue(address payable recipient, uint256 amount) internal {
}
function functionCall(address target, bytes memory data) internal returns (... | _poolInformation[_pid].offeringAmountPool>0,"Pool not set" | 293,255 | _poolInformation[_pid].offeringAmountPool>0 |
'not enough Offering Tokens left in Pool1' | // SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
}
function sendValue(address payable recipient, uint256 amount) internal {
}
function functionCall(address target, bytes memory data) internal returns (... | _poolInformation[_pid].offeringAmountPool>=(_poolInformation[_pid].totalAmountPool+(_amount))*(_poolInformation[_pid].priceA),'not enough Offering Tokens left in Pool1' | 293,255 | _poolInformation[_pid].offeringAmountPool>=(_poolInformation[_pid].totalAmountPool+(_amount))*(_poolInformation[_pid].priceA) |
"Did not participate" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
}
function sendValue(address payable recipient, uint256 amount) internal {
}
function functionCall(address target, bytes memory data) internal returns (... | amountPool[msg.sender][_pid]>0,"Did not participate" | 293,255 | amountPool[msg.sender][_pid]>0 |
"Your address not allowed. Please contact with owner." | // SPDX-License-Identifier: MIT;
pragma solidity >=0.8.0;
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppe... | allowedInvestors[msg.sender],"Your address not allowed. Please contact with owner." | 293,323 | allowedInvestors[msg.sender] |
'ICO completed' | // SPDX-License-Identifier: MIT;
pragma solidity >=0.8.0;
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppe... | !icoCompleted,'ICO completed' | 293,323 | !icoCompleted |
"User stake% share too high. Leave some for the smaller guys ;-)" | /**
* @dev Delegated Farming Contract.
* Implements a conditoin on the DFT-DFT farming pool for users to generate more rewards
*/
contract DeFiat_EXTFarming_V2 {
using SafeMath for uint256;
//Structs
struct PoolMetrics {
address stakedToken;
uint256 staked; // sum of tokens staked... | myStakeShare(_address)<20000,"User stake% share too high. Leave some for the smaller guys ;-)" | 293,348 | myStakeShare(_address)<20000 |
"HLBICO: account is blacklisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./SafeMath.sol";
import "./CappedTimedCrowdsale.sol";
import "./RefundPostdevCrowdsale.sol";
/**
** ICO Contract for the LBC crowdsale
*/
contract HLBICO is CappedTimedCrowdsale, RefundablePostDeliveryCrowdsale {
using SafeMath for uint256;
/*
... | !isBlacklisted(beneficiary),"HLBICO: account is blacklisted" | 293,395 | !isBlacklisted(beneficiary) |
"HLBICO: account is not blacklisted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./SafeMath.sol";
import "./CappedTimedCrowdsale.sol";
import "./RefundPostdevCrowdsale.sol";
/**
** ICO Contract for the LBC crowdsale
*/
contract HLBICO is CappedTimedCrowdsale, RefundablePostDeliveryCrowdsale {
using SafeMath for uint256;
/*
... | isBlacklisted(account),"HLBICO: account is not blacklisted" | 293,395 | isBlacklisted(account) |
"HLBICO: Cannot invest more than KYC limit." | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./SafeMath.sol";
import "./CappedTimedCrowdsale.sol";
import "./RefundPostdevCrowdsale.sol";
/**
** ICO Contract for the LBC crowdsale
*/
contract HLBICO is CappedTimedCrowdsale, RefundablePostDeliveryCrowdsale {
using SafeMath for uint256;
/*
... | _investmentAddrs[beneficiary].add(weiAmount)<=_weiMaxInvest,"HLBICO: Cannot invest more than KYC limit." | 293,395 | _investmentAddrs[beneficiary].add(weiAmount)<=_weiMaxInvest |
"HLBICO: caller does not have the Whitelisted role" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./SafeMath.sol";
import "./CappedTimedCrowdsale.sol";
import "./RefundPostdevCrowdsale.sol";
/**
** ICO Contract for the LBC crowdsale
*/
contract HLBICO is CappedTimedCrowdsale, RefundablePostDeliveryCrowdsale {
using SafeMath for uint256;
/*
... | _msgSender()==_whitelistingAddress,"HLBICO: caller does not have the Whitelisted role" | 293,395 | _msgSender()==_whitelistingAddress |
"RefundablePostDeliveryCrowdsale: goal not reached" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "./RefundableCrowdsale.sol";
import "./PostDeliveryCrowdsale.sol";
/**
* @title RefundablePostDeliveryCrowdsale
* @dev Extension of RefundableCrowdsale contract that only delivers the tokens
* once the crowdsale has closed and the goal met, preventing re... | goalReached(),"RefundablePostDeliveryCrowdsale: goal not reached" | 293,398 | goalReached() |
"This address is blacklisted from transferring tokens." | // contracts/GLDToken.sol
pragma solidity ^0.8.0;
contract YugaInu is ERC20, Ownable {
mapping(address => bool) private _blacklist;
mapping(address => bool) private _isExcludedFromFee;
address[] private _excluded;
address devWallet = 0x57B9EAAC70d1653F8Bd3057472e679fff3ab21c7;
address giveawa... | !_blacklist[from],"This address is blacklisted from transferring tokens." | 293,420 | !_blacklist[from] |
"This address is already blacklisted." | // contracts/GLDToken.sol
pragma solidity ^0.8.0;
contract YugaInu is ERC20, Ownable {
mapping(address => bool) private _blacklist;
mapping(address => bool) private _isExcludedFromFee;
address[] private _excluded;
address devWallet = 0x57B9EAAC70d1653F8Bd3057472e679fff3ab21c7;
address giveawa... | !_blacklist[_user],"This address is already blacklisted." | 293,420 | !_blacklist[_user] |
"This address is not blacklisted." | // contracts/GLDToken.sol
pragma solidity ^0.8.0;
contract YugaInu is ERC20, Ownable {
mapping(address => bool) private _blacklist;
mapping(address => bool) private _isExcludedFromFee;
address[] private _excluded;
address devWallet = 0x57B9EAAC70d1653F8Bd3057472e679fff3ab21c7;
address giveawa... | _blacklist[_user],"This address is not blacklisted." | 293,420 | _blacklist[_user] |
"Inventory: not an NFT" | @v6.0.0
pragma solidity 0.6.8;
abstract contract ERC1155InventoryBase is IERC1155, IERC1155MetadataURI, IERC1155Inventory, ERC165, Context {
// bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
bytes4 internal constant _ERC1155_RECEIVED = 0xf23a6e61;
// bytes4(keccak256("onE... | isNFT(nftId),"Inventory: not an NFT" | 293,456 | isNFT(nftId) |
"Inventory: not a collection" | @v6.0.0
pragma solidity 0.6.8;
abstract contract ERC1155InventoryBase is IERC1155, IERC1155MetadataURI, IERC1155Inventory, ERC165, Context {
// bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
bytes4 internal constant _ERC1155_RECEIVED = 0xf23a6e61;
// bytes4(keccak256("onE... | !isNFT(collectionId),"Inventory: not a collection" | 293,456 | !isNFT(collectionId) |
"Inventory: existing collection" | @v6.0.0
pragma solidity 0.6.8;
abstract contract ERC1155InventoryBase is IERC1155, IERC1155MetadataURI, IERC1155Inventory, ERC165, Context {
// bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
bytes4 internal constant _ERC1155_RECEIVED = 0xf23a6e61;
// bytes4(keccak256("onE... | _creators[collectionId]==address(0),"Inventory: existing collection" | 293,456 | _creators[collectionId]==address(0) |
"Inventory: transfer refused" | @v6.0.0
pragma solidity 0.6.8;
abstract contract ERC1155InventoryBase is IERC1155, IERC1155MetadataURI, IERC1155Inventory, ERC165, Context {
// bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
bytes4 internal constant _ERC1155_RECEIVED = 0xf23a6e61;
// bytes4(keccak256("onE... | IERC1155TokenReceiver(to).onERC1155Received(_msgSender(),from,id,value,data)==_ERC1155_RECEIVED,"Inventory: transfer refused" | 293,456 | IERC1155TokenReceiver(to).onERC1155Received(_msgSender(),from,id,value,data)==_ERC1155_RECEIVED |
"Inventory: transfer refused" | @v6.0.0
pragma solidity 0.6.8;
abstract contract ERC1155InventoryBase is IERC1155, IERC1155MetadataURI, IERC1155Inventory, ERC165, Context {
// bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))
bytes4 internal constant _ERC1155_RECEIVED = 0xf23a6e61;
// bytes4(keccak256("onE... | IERC1155TokenReceiver(to).onERC1155BatchReceived(_msgSender(),from,ids,values,data)==_ERC1155_BATCH_RECEIVED,"Inventory: transfer refused" | 293,456 | IERC1155TokenReceiver(to).onERC1155BatchReceived(_msgSender(),from,ids,values,data)==_ERC1155_BATCH_RECEIVED |
"MinterRole: add an account already minter" | @v3.1.1
pragma solidity 0.6.8;
/**
* Contract module which allows derived contracts access control over token
* minting operations.
*
* This module is used through inheritance. It will make available the modifier
* `onlyMinter`, which can be applied to the minting functions of your contract.
* Those funct... | !isMinter(account),"MinterRole: add an account already minter" | 293,461 | !isMinter(account) |
"max public supply reached" | //
// Creators: poop.eth
pragma solidity ^0.8.0;
contract Poop is ERC721A, Ownable, Pausable, PreSaleAware, ReentrancyGuard {
using Strings for uint256;
uint256 public constant COST = 0.08 ether; // the cost per poop
// the merkle root used for verifying proofs during presale
bytes32 public constant PRE_SAL... | totalSupply()+quantity<MAX_PUBLIC_SUPPLY,"max public supply reached" | 293,481 | totalSupply()+quantity<MAX_PUBLIC_SUPPLY |
"Address not on the list" | //
// Creators: poop.eth
pragma solidity ^0.8.0;
contract Poop is ERC721A, Ownable, Pausable, PreSaleAware, ReentrancyGuard {
using Strings for uint256;
uint256 public constant COST = 0.08 ether; // the cost per poop
// the merkle root used for verifying proofs during presale
bytes32 public constant PRE_SAL... | MerkleProof.verify(merkleProof,PRE_SALE_MERKLE_ROOT,keccak256(abi.encodePacked(_msgSender()))),"Address not on the list" | 293,481 | MerkleProof.verify(merkleProof,PRE_SALE_MERKLE_ROOT,keccak256(abi.encodePacked(_msgSender()))) |
"presale mint limit reached" | //
// Creators: poop.eth
pragma solidity ^0.8.0;
contract Poop is ERC721A, Ownable, Pausable, PreSaleAware, ReentrancyGuard {
using Strings for uint256;
uint256 public constant COST = 0.08 ether; // the cost per poop
// the merkle root used for verifying proofs during presale
bytes32 public constant PRE_SAL... | _numberMinted(_msgSender())+quantity<=PRE_SALE_MAX_MINT_AMOUNT,"presale mint limit reached" | 293,481 | _numberMinted(_msgSender())+quantity<=PRE_SALE_MAX_MINT_AMOUNT |
"mint limit reached" | //
// Creators: poop.eth
pragma solidity ^0.8.0;
contract Poop is ERC721A, Ownable, Pausable, PreSaleAware, ReentrancyGuard {
using Strings for uint256;
uint256 public constant COST = 0.08 ether; // the cost per poop
// the merkle root used for verifying proofs during presale
bytes32 public constant PRE_SAL... | _numberMinted(_msgSender())+quantity<=MAX_MINT_AMOUNT,"mint limit reached" | 293,481 | _numberMinted(_msgSender())+quantity<=MAX_MINT_AMOUNT |
null | pragma solidity ^0.4.21;
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... | balanceOf[_to]<=balanceOf[_to]+_value | 293,496 | balanceOf[_to]<=balanceOf[_to]+_value |
"Currency too long" | pragma solidity ^0.4.24;
contract Token {
function transfer(address _to, uint _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
function allowance(address _owner, address _spender) public view returns (uint256 remainin... | bytes(currency).length<=32,"Currency too long" | 293,570 | bytes(currency).length<=32 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.