comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"WithdrawalDelayer::escapeHatchWithdrawal: NO_MAX_EMERGENCY_MODE_TIME" | // SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
import "../interfaces/IWithdrawalDelayer.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
contract WithdrawalDelayer is ReentrancyGuard, IWithdrawalDelayer {
struct DepositState {
... | uint64(now)>=_emergencyModeStartingTime+MAX_EMERGENCY_MODE_TIME,"WithdrawalDelayer::escapeHatchWithdrawal: NO_MAX_EMERGENCY_MODE_TIME" | 310,379 | uint64(now)>=_emergencyModeStartingTime+MAX_EMERGENCY_MODE_TIME |
null | /**
*Submitted for verification at Etherscan.io on 2019-09-09
* BEB dapp for www.betbeb.com
*/
pragma solidity^0.4.24;
interface tokenTransfer {
function transfer(address receiver, uint amount);
function transferFrom(address _from, address _to, uint256 _value);
function balanceOf(address receive... | getTokenBalance()>=_transfer | 310,484 | getTokenBalance()>=_transfer |
"Insufficient balance" | pragma solidity ^0.5.10;
/** Thanks to OpenZeppelin for the awesome Libraries and SmartContracts. */
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
funct... | balanceOf(msg.sender)>=sumValue,"Insufficient balance" | 310,546 | balanceOf(msg.sender)>=sumValue |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external view returns (addre... | _msgSender()==owner()||_msgSender()==_redistribution | 310,558 | _msgSender()==owner()||_msgSender()==_redistribution |
"Normal Cooldown" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
}
interface IUniswapV2Factory {
function getPair(address tokenA, address tokenB) external view returns (addre... | _cooldown[sender]<block.timestamp,"Normal Cooldown" | 310,558 | _cooldown[sender]<block.timestamp |
null | pragma solidity ^0.4.13;
contract Ownable {
address public owner;
function Ownable() public {
}
modifier onlyOwner() {
}
}
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public retur... | (toAddresses.length>0)&&(toAddresses.length==values.length) | 310,598 | (toAddresses.length>0)&&(toAddresses.length==values.length) |
"Only Converter or Owner" | pragma solidity ^0.5.0;
/**
* @title ConverterRole
* @dev Converters are responsible for assigning and removing Whitelisted accounts.
*/
contract ConverterRole is Ownable {
using Roles for Roles.Role;
event ConverterAdded(address indexed account);
event ConverterRemoved(address indexed account);
... | isConverter(msg.sender)||isOwner(),"Only Converter or Owner" | 310,604 | isConverter(msg.sender)||isOwner() |
"Only Converter" | pragma solidity ^0.5.0;
/**
* @title ConverterRole
* @dev Converters are responsible for assigning and removing Whitelisted accounts.
*/
contract ConverterRole is Ownable {
using Roles for Roles.Role;
event ConverterAdded(address indexed account);
event ConverterRemoved(address indexed account);
... | isConverter(msg.sender),"Only Converter" | 310,604 | isConverter(msg.sender) |
"Masterchef Strategy already initialized" | contract Strategy is BaseStrategy {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
ChefLike public masterchef;
IERC20 public reward;
address private constant uniswapRouter =
address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address private const... | address(router)==address(0),"Masterchef Strategy already initialized" | 310,771 | address(router)==address(0) |
"wrong pid" | contract Strategy is BaseStrategy {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
ChefLike public masterchef;
IERC20 public reward;
address private constant uniswapRouter =
address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address private const... | address(want)==masterchef.poolInfo(pid).stakingToken,"wrong pid" | 310,771 | address(want)==masterchef.poolInfo(pid).stakingToken |
null | /**
* SPDX-License-Identifier: UNLICENSED
* TrafficLight.Finance -> Token Sale Contract
* _____ __ __ _ _ _ _ _
* |_ _| _ __ _ / _|/ _(_)__| | (_)__ _| |_| |_
* | || '_/ _` | _| _| / _| |__| / _` | ' \ _|
* |_||_| \__,_|_| |_| |_\__|____|_\__, |_||_\__|... | _balanceOf[msg.sender]>=_value | 310,836 | _balanceOf[msg.sender]>=_value |
null | /**
* SPDX-License-Identifier: UNLICENSED
* TrafficLight.Finance -> Token Sale Contract
* _____ __ __ _ _ _ _ _
* |_ _| _ __ _ / _|/ _(_)__| | (_)__ _| |_| |_
* | || '_/ _` | _| _| / _| |__| / _` | ' \ _|
* |_||_| \__,_|_| |_| |_\__|____|_\__, |_||_\__|... | tokenContract.balanceOf(address(this))>=_numberOfTokens*decimals | 310,836 | tokenContract.balanceOf(address(this))>=_numberOfTokens*decimals |
null | /**
* SPDX-License-Identifier: UNLICENSED
* TrafficLight.Finance -> Token Sale Contract
* _____ __ __ _ _ _ _ _
* |_ _| _ __ _ / _|/ _(_)__| | (_)__ _| |_| |_
* | || '_/ _` | _| _| / _| |__| / _` | ' \ _|
* |_||_| \__,_|_| |_| |_\__|____|_\__, |_||_\__|... | tokenContract.transfer(msg.sender,_numberOfTokens*decimals) | 310,836 | tokenContract.transfer(msg.sender,_numberOfTokens*decimals) |
null | /**
* SPDX-License-Identifier: UNLICENSED
* TrafficLight.Finance -> Token Sale Contract
* _____ __ __ _ _ _ _ _
* |_ _| _ __ _ / _|/ _(_)__| | (_)__ _| |_| |_
* | || '_/ _` | _| _| / _| |__| / _` | ' \ _|
* |_||_| \__,_|_| |_| |_\__|____|_\__, |_||_\__|... | tokenContract.transfer(admin,tokenContract.balanceOf(address(this))) | 310,836 | tokenContract.transfer(admin,tokenContract.balanceOf(address(this))) |
"you are not whitelisted" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract ChilliSwapToken is Ownable , IERC20 {
using SafeMath for uint256;
mapping (address => ... | !whiteList[msg.sender],"you are not whitelisted" | 311,103 | !whiteList[msg.sender] |
'Already claimed' | pragma solidity 0.6.2;
interface IBancorNetwork {
function convertByPath(
address[] calldata _path,
uint256 _amount,
uint256 _minReturn,
address _beneficiary,
address _affiliateAccount,
uint256 _affiliateFee
) external payable returns (uint256);
func... | !proxyData.balanceClaimed,'Already claimed' | 311,113 | !proxyData.balanceClaimed |
'Liquidation time not elapsed' | pragma solidity 0.6.2;
interface IBancorNetwork {
function convertByPath(
address[] calldata _path,
uint256 _amount,
uint256 _minReturn,
address _beneficiary,
address _affiliateAccount,
uint256 _affiliateFee
) external payable returns (uint256);
func... | adminActiveTimestamp.add(LIQUIDATION_TIME_PERIOD)<block.timestamp,'Liquidation time not elapsed' | 311,113 | adminActiveTimestamp.add(LIQUIDATION_TIME_PERIOD)<block.timestamp |
"Only 5 toadz per address!" | contract Toadz is ERC721("Flip Toadz", "FLOADZ"){
address public owner;
uint256 public maxSupply = 6969;
uint256 public dropTime;
uint256 public accLimit = 5;
uint256 public mintPerTx = 3;
uint256 public minted = 0;
constructor(uint256 _dropTime) public {
}
function setURI(string mem... | balanceOf(msg.sender)+_amount<=accLimit,"Only 5 toadz per address!" | 311,201 | balanceOf(msg.sender)+_amount<=accLimit |
"Sold out" | contract Toadz is ERC721("Flip Toadz", "FLOADZ"){
address public owner;
uint256 public maxSupply = 6969;
uint256 public dropTime;
uint256 public accLimit = 5;
uint256 public mintPerTx = 3;
uint256 public minted = 0;
constructor(uint256 _dropTime) public {
}
function setURI(string mem... | (minted+_amount)<=maxSupply,"Sold out" | 311,201 | (minted+_amount)<=maxSupply |
"You do not own these tokens!!" | contract Toadz is ERC721("Flip Toadz", "FLOADZ"){
address public owner;
uint256 public maxSupply = 6969;
uint256 public dropTime;
uint256 public accLimit = 5;
uint256 public mintPerTx = 3;
uint256 public minted = 0;
constructor(uint256 _dropTime) public {
}
function setURI(string mem... | ownerOf(_token1)==msg.sender&&ownerOf(_token2)==msg.sender,"You do not own these tokens!!" | 311,201 | ownerOf(_token1)==msg.sender&&ownerOf(_token2)==msg.sender |
"No longer available" | contract Toadz is ERC721("Flip Toadz", "FLOADZ"){
address public owner;
uint256 public maxSupply = 6969;
uint256 public dropTime;
uint256 public accLimit = 5;
uint256 public mintPerTx = 3;
uint256 public minted = 0;
constructor(uint256 _dropTime) public {
}
function setURI(string mem... | minted+1<=maxSupply,"No longer available" | 311,201 | minted+1<=maxSupply |
null | pragma solidity ^0.4.16;
/**
* Math operations with safety checks
*/
contract owned {
address public owner;
constructor() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
contract SafeMath {
function safeMul(uint256 a, ... | balanceOf[_target]>=_value | 311,205 | balanceOf[_target]>=_value |
null | pragma solidity ^0.4.16;
/**
* Math operations with safety checks
*/
contract owned {
address public owner;
constructor() public {
}
modifier onlyOwner {
}
function transferOwnership(address newOwner) onlyOwner public {
}
}
contract SafeMath {
function safeMul(uint256 a, ... | freezeOf[_target]>=_value | 311,205 | freezeOf[_target]>=_value |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | !actors[address(_avatar)] | 311,211 | !actors[address(_avatar)] |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | _avatar.owner()==address(this) | 311,211 | _avatar.owner()==address(this) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | nativeToken.owner()==address(this) | 311,211 | nativeToken.owner()==address(this) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | nativeReputation.owner()==address(this) | 311,211 | nativeReputation.owner()==address(this) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | !actors[address(nativeReputation)] | 311,211 | !actors[address(nativeReputation)] |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | !actors[address(nativeToken)] | 311,211 | !actors[address(nativeToken)] |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000001)==bytes4(0x00000001) | 311,211 | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000001)==bytes4(0x00000001) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000002)==bytes4(0x00000002) | 311,211 | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000002)==bytes4(0x00000002) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000004)==bytes4(0x00000004) | 311,211 | organizations[avatar].schemes[msg.sender].permissions&bytes4(0x00000004)==bytes4(0x00000004) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[_avatar].schemes[msg.sender].permissions&bytes4(0x00000008)==bytes4(0x00000008) | 311,211 | organizations[_avatar].schemes[msg.sender].permissions&bytes4(0x00000008)==bytes4(0x00000008) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[_avatar].schemes[msg.sender].permissions&bytes4(0x00000010)==bytes4(0x00000010) | 311,211 | organizations[_avatar].schemes[msg.sender].permissions&bytes4(0x00000010)==bytes4(0x00000010) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | (GlobalConstraintInterface(globalConstraintsPre[idx].gcAddress)).pre(msg.sender,globalConstraintsPre[idx].params,func) | 311,211 | (GlobalConstraintInterface(globalConstraintsPre[idx].gcAddress)).pre(msg.sender,globalConstraintsPre[idx].params,func) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | (GlobalConstraintInterface(globalConstraintsPost[idx].gcAddress)).post(msg.sender,globalConstraintsPost[idx].params,func) | 311,211 | (GlobalConstraintInterface(globalConstraintsPost[idx].gcAddress)).post(msg.sender,globalConstraintsPost[idx].params,func) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | bytes4(0x0000001f)&(_permissions^schemePermission)&(~senderPermission)==bytes4(0) | 311,211 | bytes4(0x0000001f)&(_permissions^schemePermission)&(~senderPermission)==bytes4(0) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | bytes4(0x0000001f)&(schemePermission&(~senderPermission))==bytes4(0) | 311,211 | bytes4(0x0000001f)&(schemePermission&(~senderPermission))==bytes4(0) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | bytes4(0x0000001f)&(schemePermission&(~organizations[_avatar].schemes[msg.sender].permissions))==bytes4(0) | 311,211 | bytes4(0x0000001f)&(schemePermission&(~organizations[_avatar].schemes[msg.sender].permissions))==bytes4(0) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | newControllers[address(_avatar)]==address(0) | 311,211 | newControllers[address(_avatar)]==address(0) |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | _avatar.owner()==_newController | 311,211 | _avatar.owner()==_newController |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[address(_avatar)].nativeToken.owner()==_newController | 311,211 | organizations[address(_avatar)].nativeToken.owner()==_newController |
null | pragma solidity ^0.5.4;
/**
* @title Universal Controller contract
* @dev A universal controller hold organizations and controls their tokens ,reputations
* and avatar.
* It is subject to a set of schemes and constraints that determine its behavior.
* Each scheme has it own parameters and operation permissio... | organizations[address(_avatar)].nativeReputation.owner()==_newController | 311,211 | organizations[address(_avatar)].nativeReputation.owner()==_newController |
"Not enought SYD!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned b... | _balances[msg.sender]>=input.length*amount,"Not enought SYD!" | 311,239 | _balances[msg.sender]>=input.length*amount |
null | contract BlacklistedRole is BlacklistAdminRole {
using Roles for Roles.Role;
event BlacklistedAdded(address indexed account);
event BlacklistedRemoved(address indexed account);
Roles.Role private _blacklisteds;
modifier onlyBlacklisted() {
require(<FILL_ME>)
_;
}
mod... | isBlacklisted(msg.sender) | 311,256 | isBlacklisted(msg.sender) |
"random number already generated" | // SPDX-License-Identifier: MIT
pragma solidity >0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./IRandomNumberGenerator.sol";
contract Lottery is Ownable {
using SafeMath for uint256;
us... | !randomGenerated,"random number already generated" | 311,358 | !randomGenerated |
"Not cancelled or failed" | pragma solidity 0.6.4;
contract SecondSale is ReentrancyGuard, Ownable {
using SafeMath for uint256;
// Crowdsale participants
mapping(address => uint256) participants;
// SMATS per ETH price
uint256 buyPrice;
uint256 minimalGoal;
uint256 hardCap;
Smarts crowdsaleToken;
uin... | stopped||isFailed(),"Not cancelled or failed" | 311,398 | stopped||isFailed() |
null | pragma solidity 0.6.4;
contract SecondSale is ReentrancyGuard, Ownable {
using SafeMath for uint256;
// Crowdsale participants
mapping(address => uint256) participants;
// SMATS per ETH price
uint256 buyPrice;
uint256 minimalGoal;
uint256 hardCap;
Smarts crowdsaleToken;
uin... | !isFailed() | 311,398 | !isFailed() |
null | pragma solidity 0.6.4;
contract SecondSale is ReentrancyGuard, Ownable {
using SafeMath for uint256;
// Crowdsale participants
mapping(address => uint256) participants;
// SMATS per ETH price
uint256 buyPrice;
uint256 minimalGoal;
uint256 hardCap;
Smarts crowdsaleToken;
uin... | !isSuccessful() | 311,398 | !isSuccessful() |
null | pragma solidity 0.6.4;
contract SecondSale is ReentrancyGuard, Ownable {
using SafeMath for uint256;
// Crowdsale participants
mapping(address => uint256) participants;
// SMATS per ETH price
uint256 buyPrice;
uint256 minimalGoal;
uint256 hardCap;
Smarts crowdsaleToken;
uin... | isSuccessful() | 311,398 | isSuccessful() |
_required-_balanceOf | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import {Auth, Authority} from "@rari-capital/solmate/src/auth/Auth.sol";
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) in... | int(address(this),_required-_balanceOf | 311,404 | address(this) |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import {Auth, Authority} from "@rari-capital/solmate/src/auth/Auth.sol";
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) in... | _token.transfer(address(_ve_dist),_growth) | 311,404 | _token.transfer(address(_ve_dist),_growth) |
null | pragma solidity 0.4.19;
/**
* @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, u... | initialTotalSupply.mul(15).div(100)>mintedTokens.add(_amount) | 311,484 | initialTotalSupply.mul(15).div(100)>mintedTokens.add(_amount) |
"amount above user balance" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
interface IOwnable {
function owner() external view returns (address);
function renounceOwnership() external;
function transferOwnership( address newOwner_ ) external;
}
contract Ownable is IOwnable {
address internal _owner;
event OwnershipTrans... | aOHM.balanceOf(msg.sender)>=amount,"amount above user balance" | 311,505 | aOHM.balanceOf(msg.sender)>=amount |
"user has no aOHM to withdraw" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
interface IOwnable {
function owner() external view returns (address);
function renounceOwnership() external;
function transferOwnership( address newOwner_ ) external;
}
contract Ownable is IOwnable {
address internal _owner;
event OwnershipTrans... | senderInfo[msg.sender]>0,"user has no aOHM to withdraw" | 311,505 | senderInfo[msg.sender]>0 |
null | /**
Copyright (c) 2014-2552 AnthemGold INC
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 writi... | minters[msg.sender]==true | 311,506 | minters[msg.sender]==true |
'MultiSig: Sender was not owner' | // Dependency file: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.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,... | _owners[msg.sender],'MultiSig: Sender was not owner' | 311,600 | _owners[msg.sender] |
'MultiSig: You had voted this proposal' | // Dependency file: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.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,... | _votedStorage[proposalId][msg.sender]==false,'MultiSig: You had voted this proposal' | 311,600 | _votedStorage[proposalId][msg.sender]==false |
"Token template is not contract" | /**
* @title FxReverseERC20RootTunnel
*/
contract FxReverseERC20RootTunnel is FxBaseRootTunnel, Create2 {
bytes32 public constant DEPOSIT = keccak256("DEPOSIT");
bytes32 public constant MAP_TOKEN = keccak256("MAP_TOKEN");
string public constant SUFFIX_NAME = "";
string public constant PREFIX_SY... | _isContract(_tokenTemplate),"Token template is not contract" | 311,678 | _isContract(_tokenTemplate) |
"executeTransaction: Parameter signature can not be empty!" | pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../library/Ownable.sol";
contract Timelock is Ownable {
constructor() public {
}
function executeTransactions(address[] memory targets, uint[] memory values, string[] memory signatures, bytes[] memory calldatas) public onlyOwner payable {
... | bytes(signature).length>0,"executeTransaction: Parameter signature can not be empty!" | 311,687 | bytes(signature).length>0 |
"Need to authenticate first!" | //SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, wh... | IERC20(currency).balanceOf(msg.sender)==1,"Need to authenticate first!" | 311,715 | IERC20(currency).balanceOf(msg.sender)==1 |
"Must hold 50 GDAO!" | //SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, wh... | IERC20(gdao).balanceOf(msg.sender)>=50*1e18,"Must hold 50 GDAO!" | 311,715 | IERC20(gdao).balanceOf(msg.sender)>=50*1e18 |
"Cannot buy: Already purchased!" | //SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, wh... | !hasPurchased(msg.sender),"Cannot buy: Already purchased!" | 311,715 | !hasPurchased(msg.sender) |
"Cannot buy: No more available!" | //SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, wh... | IERC1155(rarigang).balanceOf(seller,nftid)>0,"Cannot buy: No more available!" | 311,715 | IERC1155(rarigang).balanceOf(seller,nftid)>0 |
"Panel is empty" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | tokenBlocks[_tokenId].length>0,"Panel is empty" | 311,737 | tokenBlocks[_tokenId].length>0 |
"Panel is not empty" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | tokens[_tokenId].isEmpty,"Panel is not empty" | 311,737 | tokens[_tokenId].isEmpty |
"Size differs from blocks count. Partial Panels not allowed" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | tokens[_tokenId].size==aLength,"Size differs from blocks count. Partial Panels not allowed" | 311,737 | tokens[_tokenId].size==aLength |
"Receiver needs to own all tokens" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | TilesBlocksCore(BLOCKS_CONTRACT).ownerOf(bTid)==ownerOf(_tokenId),"Receiver needs to own all tokens" | 311,737 | TilesBlocksCore(BLOCKS_CONTRACT).ownerOf(bTid)==ownerOf(_tokenId) |
"Invalid size" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | _isValidLength(_size),"Invalid size" | 311,737 | _isValidLength(_size) |
"Exceeds total mints for this size" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | _checkTotalMints(_size),"Exceeds total mints for this size" | 311,737 | _checkTotalMints(_size) |
"Receiver needs to own all tokens" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@o... | TilesBlocksCore(BLOCKS_CONTRACT).ownerOf(bTid)==_receiver,"Receiver needs to own all tokens" | 311,737 | TilesBlocksCore(BLOCKS_CONTRACT).ownerOf(bTid)==_receiver |
"Not enough tickets remaining to mint" | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/*
.:::::=.
=+=::::-:
:= .--=::--:-=::+-:=-:-- .= =
.:=... | tokenCounter.current()<=MAX_SUPPLY,"Not enough tickets remaining to mint" | 311,741 | tokenCounter.current()<=MAX_SUPPLY |
"You must hold an Infinte Grid to purchase a Flipgrid." | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/*
.:::::=.
=+=::::-:
:= .--=::--:-=::+-:=-:-- .= =
.:=... | InfiniteGrid(GRID_ADDRESS).balanceOf(msg.sender)>=GRID_THRESHOLD,"You must hold an Infinte Grid to purchase a Flipgrid." | 311,741 | InfiniteGrid(GRID_ADDRESS).balanceOf(msg.sender)>=GRID_THRESHOLD |
"This address has already minted." | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/*
.:::::=.
=+=::::-:
:= .--=::--:-=::+-:=-:-- .= =
.:=... | balanceOf(msg.sender)<MAX_PER_WALLET,"This address has already minted." | 311,741 | balanceOf(msg.sender)<MAX_PER_WALLET |
null | contract BtcexCrowdsale is FinalizableCrowdsale, Pausable {
RefundEscrow private escrow;
TokenStrategy tokenStrategy;
address public teamTokensVault;
uint tokensUsedOnPresale;
uint tokensUsedOnSale;
address teamWallet;
address advisorWallet;
constructor(
TokenStrategy _t... | tokensUsedOnPresale.add(tokensAmount)<=tokenStrategy.tokensAvailableForPresale() | 311,769 | tokensUsedOnPresale.add(tokensAmount)<=tokenStrategy.tokensAvailableForPresale() |
null | contract BtcexCrowdsale is FinalizableCrowdsale, Pausable {
RefundEscrow private escrow;
TokenStrategy tokenStrategy;
address public teamTokensVault;
uint tokensUsedOnPresale;
uint tokensUsedOnSale;
address teamWallet;
address advisorWallet;
constructor(
TokenStrategy _t... | tokensUsedOnSale.add(tokensAmount)<=tokenStrategy.tokensAvailableForSale() | 311,769 | tokensUsedOnSale.add(tokensAmount)<=tokenStrategy.tokensAvailableForSale() |
null | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "../ERC721Enumerable.sol";
import "../Counters.sol";
import "../Ownable.sol";
contract TheDenox is ERC721Enumerable,Ownable {
string public baseURI;
using Counters for Counters.Counter;
using Strings for uint256;
string public metadata ... | supply+_mintAmount<=1 | 311,812 | supply+_mintAmount<=1 |
"AlreadyExist." | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | !_nftExists[url],"AlreadyExist." | 311,955 | !_nftExists[url] |
"TokenNotForSale" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | nft[t_id].Status==true,"TokenNotForSale" | 311,955 | nft[t_id].Status==true |
"Invalid price" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | nft[t_id].Token_Price<=msg.value,"Invalid price" | 311,955 | nft[t_id].Token_Price<=msg.value |
"TokeForSale" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | nft[t_id].Status==false,"TokeForSale" | 311,955 | nft[t_id].Status==false |
"makeHigherBid" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | bids[T_id][msg.sender]+msg.value>=T_Auction[T_id].minimunBid,"makeHigherBid" | 311,955 | bids[T_id][msg.sender]+msg.value>=T_Auction[T_id].minimunBid |
"makeLowerBid" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | bids[T_id][msg.sender]+msg.value<=T_Auction[T_id].maximunBid,"makeLowerBid" | 311,955 | bids[T_id][msg.sender]+msg.value<=T_Auction[T_id].maximunBid |
"TokenInAuction" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | T_In_Auction[T_id]==true,"TokenInAuction" | 311,955 | T_In_Auction[T_id]==true |
"TokenForSale" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | nft[T_id].Status==false,"TokenForSale" | 311,955 | nft[T_id].Status==false |
"TokenInAuction" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | T_In_Auction[T_id]==false,"TokenInAuction" | 311,955 | T_In_Auction[T_id]==false |
"AuctionIsGoing" | pragma solidity ^0.5.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.5.0;
contract IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, add... | T_Auction[T_id].state==false,"AuctionIsGoing" | 311,955 | T_Auction[T_id].state==false |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | token.approve(address(funds),2**256-1) | 311,961 | token.approve(address(funds),2**256-1) |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | address(sales)==address(0) | 311,961 | address(sales)==address(0) |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | funds.lender(fundIndex_)==usrs_[1] | 311,961 | funds.lender(fundIndex_)==usrs_[1] |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | !secretHashes[loan].set | 311,961 | !secretHashes[loan].set |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | secretHashes[loan].set | 311,961 | secretHashes[loan].set |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | bools[loan].funded==false | 311,961 | bools[loan].funded==false |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | token.transferFrom(msg.sender,address(this),principal(loan)) | 311,961 | token.transferFrom(msg.sender,address(this),principal(loan)) |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | bools[loan].funded==true | 311,961 | bools[loan].funded==true |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | loans[loan].lender==msg.sender | 311,961 | loans[loan].lender==msg.sender |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | !off(loan) | 311,961 | !off(loan) |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | bools[loan].approved==true | 311,961 | bools[loan].approved==true |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | bools[loan].withdrawn==false | 311,961 | bools[loan].withdrawn==false |
null | pragma solidity ^0.5.8;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) externa... | sha256(abi.encodePacked(secretA1))==secretHashes[loan].secretHashA1 | 311,961 | sha256(abi.encodePacked(secretA1))==secretHashes[loan].secretHashA1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.