comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Account is already excluded" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
abstract contract Context
{
function _msgSender() internal view virtual returns (address payable)
{
}
function _msgData() internal view virtual returns (bytes memory)
{
}
}
interface IERC20
{
function totalSupply() exte... | _isExcluded[account],"Account is already excluded" | 4,533 | _isExcluded[account] |
null | pragma solidity ^0.4.26;
library SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeAdd(uint256 a, u... | _balances[_to]+_value>_balances[_to] | 4,566 | _balances[_to]+_value>_balances[_to] |
null | pragma solidity ^0.4.26;
library SafeMath {
function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function safeAdd(uint256 a, u... | (_value==0)||(_allowed[msg.sender][_spender]==0) | 4,566 | (_value==0)||(_allowed[msg.sender][_spender]==0) |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | !has(role,account) | 4,759 | !has(role,account) |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | has(role,account) | 4,759 | has(role,account) |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | isPauser(msg.sender)||isOwner(msg.sender) | 4,759 | isPauser(msg.sender)||isOwner(msg.sender) |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | !_paused | 4,759 | !_paused |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | !frozenAccount[_holder] | 4,759 | !frozenAccount[_holder] |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | !frozenAccount[holder] | 4,759 | !frozenAccount[holder] |
null | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | frozenAccount[holder] | 4,759 | frozenAccount[holder] |
"There is not enough balances of holder." | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | _balances[holder]>=value,"There is not enough balances of holder." | 4,759 | _balances[holder]>=value |
"There is not lock info." | pragma solidity ^0.5.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by ... | timelockList[holder].length>idx,"There is not lock info." | 4,759 | timelockList[holder].length>idx |
"Validators MUST NOT own multiple stake position" | pragma solidity ^0.5.2;
contract StakingNFT is ERC721Full, Ownable {
constructor(string memory name, string memory symbol)
public
ERC721Full(name, symbol)
{
}
function mint(address to, uint256 tokenId) public onlyOwner {
require(<FILL_ME>)
_mint(to, tokenId);
... | balanceOf(to)==0,"Validators MUST NOT own multiple stake position" | 4,867 | balanceOf(to)==0 |
"This user is already in a team." | pragma solidity 0.5.17;
import "./TeamStorage.sol";
interface GAMER {
function gamersScalingFactor() external view returns (uint256);
function balanceOfUnderlying(address amount) external returns(uint256);
function mint(address to, uint256 amount) external;
}
contract Team is TeamStorage {
/// @notice A... | teamRelationship[msg.sender]==bytes32(0),"This user is already in a team." | 4,987 | teamRelationship[msg.sender]==bytes32(0) |
"ERC721Metadata: Hash set of nonexistent token" | contract BitPortraits is ERC721, IERC721Receiver, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdx;
uint256 public constant MAX_SUPPLY = 5102;
uint256 public SALE_START_TIME = block.timestamp + (3600); ... | _exists(tokenId_),"ERC721Metadata: Hash set of nonexistent token" | 4,994 | _exists(tokenId_) |
"Current Supply can't be greater than tierUpperBound" | contract BitPortraits is ERC721, IERC721Receiver, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdx;
uint256 public constant MAX_SUPPLY = 5102;
uint256 public SALE_START_TIME = block.timestamp + (3600); ... | totalSupply()<=tierUpperBound(tierId_),"Current Supply can't be greater than tierUpperBound" | 4,994 | totalSupply()<=tierUpperBound(tierId_) |
"Sale has already ended" | contract BitPortraits is ERC721, IERC721Receiver, Ownable {
using SafeMath for uint256;
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdx;
uint256 public constant MAX_SUPPLY = 5102;
uint256 public SALE_START_TIME = block.timestamp + (3600); ... | totalSupply()<=MAX_SUPPLY,"Sale has already ended" | 4,994 | totalSupply()<=MAX_SUPPLY |
"Cannot set a proxy implementation to a non-contract address" | /*
/ | __ / ____|
/ | |__) | | |
/ / | _ / | |
/ ____ | | | |____
/_/ _ |_| _ _____|
* ARC: ArcProxy.sol
*
* Latest source (may be newer): https://github.com/arcxgame/contracts/blob/master/contracts/ArcProxy.sol
*
* Contract Dependencies:
* - BaseAdminUpgradeabilityPro... | OpenZeppelinUpgradesAddress.isContract(newImplementation),"Cannot set a proxy implementation to a non-contract address" | 4,997 | OpenZeppelinUpgradesAddress.isContract(newImplementation) |
"PMM: not the UserProxy contract" | pragma solidity ^0.6.0;
contract PMM is
ReentrancyGuard,
IPMM,
LibOrder,
LibDecoder,
LibEncoder
{
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
// Constants do not have storage slot.
string public constant version = "5.0.0";
u... | address(userProxy)==msg.sender,"PMM: not the UserProxy contract" | 5,014 | address(userProxy)==msg.sender |
"PMM: invalid contract address" | pragma solidity ^0.6.0;
contract PMM is
ReentrancyGuard,
IPMM,
LibOrder,
LibDecoder,
LibEncoder
{
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
// Constants do not have storage slot.
string public constant version = "5.0.0";
u... | order.feeRecipientAddress.isContract(),"PMM: invalid contract address" | 5,014 | order.feeRecipientAddress.isContract() |
null | // Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
pragma solidity ^0.4.18;
contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSu... | _spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData) | 5,081 | _spender.call(bytes4(bytes32(keccak256("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData) |
"Sender must own the tokens" | // SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./interfaces/IVault.sol";
i... | IUniversalVault(from).owner()==msg.sender,"Sender must own the tokens" | 5,082 | IUniversalVault(from).owner()==msg.sender |
"TokenMock/PauserRole" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/tok... | hasRole(PAUSER_ROLE,_msgSender()),"TokenMock/PauserRole" | 5,121 | hasRole(PAUSER_ROLE,_msgSender()) |
"already added" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
import "synthetix/contracts/interfaces/IStakingRewards.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract EarnedAggregator {
/// @notice The address of the Float Protocol Timelock
address public timelock;
/// @notice addresses of pools (Staki... | pools[i]!=pool,"already added" | 5,134 | pools[i]!=pool |
"MorpherGovernance: Only Validators can invoke that function." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | isValidator(msg.sender),"MorpherGovernance: Only Validators can invoke that function." | 5,306 | isValidator(msg.sender) |
"MorpherGovernance: Insufficient balance to become Validator." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | state.balanceOf(msg.sender)>=_requiredAmount,"MorpherGovernance: Insufficient balance to become Validator." | 5,306 | state.balanceOf(msg.sender)>=_requiredAmount |
"MorpherGovernance: Address is already Validator." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | isValidator(msg.sender)==false,"MorpherGovernance: Address is already Validator." | 5,306 | isValidator(msg.sender)==false |
"MorpherGovernance: Escrow does not have enough funds. Should not happen." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | state.balanceOf(address(this))>=MINVALIDATORLOCKUP.mul(numberOfValidators),"MorpherGovernance: Escrow does not have enough funds. Should not happen." | 5,306 | state.balanceOf(address(this))>=MINVALIDATORLOCKUP.mul(numberOfValidators) |
"MorpherGovernance: Validator was just appointed and is not eligible to vote yet." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | validatorJoinedAtTime[msg.sender].add(VALIDATORWARMUPPERIOD)<now,"MorpherGovernance: Validator was just appointed and is not eligible to vote yet." | 5,306 | validatorJoinedAtTime[msg.sender].add(VALIDATORWARMUPPERIOD)<now |
"MorpherGovernance: New validator joined the board recently, please wait for the end of the warm up period." | pragma solidity 0.5.16;
// ------------------------------------------------------------------------
// Morpher Governance (MAIN CHAIN ONLY)
//
// Every user able and willig to lock up sufficient token can become a validator
// of the Morpher protocol. Validators function similiar to a board of directors
// and vote on ... | lastValidatorJoined.add(VALIDATORWARMUPPERIOD)<now,"MorpherGovernance: New validator joined the board recently, please wait for the end of the warm up period." | 5,306 | lastValidatorJoined.add(VALIDATORWARMUPPERIOD)<now |
'MerkleDistributor: Drop already claimed.' | // SPDX-License-Identifier: MIT AND GPL-v3-or-later
pragma solidity 0.8.1;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address pr... | !isClaimed(index),'MerkleDistributor: Drop already claimed.' | 5,379 | !isClaimed(index) |
'Astrodrop: Invalid proof' | // SPDX-License-Identifier: MIT AND GPL-v3-or-later
pragma solidity 0.8.1;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
abstract contract Ownable is Context {
address pr... | MerkleProof.verify(merkleProof,merkleRoot,node),'Astrodrop: Invalid proof' | 5,379 | MerkleProof.verify(merkleProof,merkleRoot,node) |
"NO_ENTRY: Cannot enter a noEntry function" | /*
* Copyright 2020 Dolomite
*
* 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 t... | _guardCounter%2==1,"NO_ENTRY: Cannot enter a noEntry function" | 5,471 | _guardCounter%2==1 |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
function min(uint a, uint b) internal pure returns (uint) {
}
}
interface erc20 {
function totalSupply() external view returns (uint256);
function transf... | ve(_ve).ownerOf(tokenId)==msg.sender | 5,491 | ve(_ve).ownerOf(tokenId)==msg.sender |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
function min(uint a, uint b) internal pure returns (uint) {
}
}
interface erc20 {
function totalSupply() external view returns (uint256);
function transf... | tokenIds[msg.sender]==tokenId | 5,491 | tokenIds[msg.sender]==tokenId |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
function min(uint a, uint b) internal pure returns (uint) {
}
}
interface erc20 {
function totalSupply() external view returns (uint256);
function transf... | rewardRate[token]>0 | 5,491 | rewardRate[token]>0 |
"Provided reward too high" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
function min(uint a, uint b) internal pure returns (uint) {
}
}
interface erc20 {
function totalSupply() external view returns (uint256);
function transf... | rewardRate[token]<=balance/DURATION,"Provided reward too high" | 5,491 | rewardRate[token]<=balance/DURATION |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
library Math {
function max(uint a, uint b) internal pure returns (uint) {
}
function min(uint a, uint b) internal pure returns (uint) {
}
}
interface erc20 {
function totalSupply() external view returns (uint256);
function transf... | success&&(data.length==0||abi.decode(data,(bool))) | 5,491 | success&&(data.length==0||abi.decode(data,(bool))) |
"Yo, can't mint while paused" | // Highflyers.sol
//
// degenerated.io // 2021 // zpm@
//
// SPDX-License-Identifier: MIT
// if you're looking to reuse this contract and have any questions, just lmk
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract ... | !_contractIsPaused,"Yo, can't mint while paused" | 5,507 | !_contractIsPaused |
"Yo, you gotta pay at least the minimum" | // Highflyers.sol
//
// degenerated.io // 2021 // zpm@
//
// SPDX-License-Identifier: MIT
// if you're looking to reuse this contract and have any questions, just lmk
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract ... | msg.value>=(BASE_PRICE_PER_MINT+(numberOfPairsToMint*PRICE_PER_PAIR)),"Yo, you gotta pay at least the minimum" | 5,507 | msg.value>=(BASE_PRICE_PER_MINT+(numberOfPairsToMint*PRICE_PER_PAIR)) |
"Yo, can't mint more than is available" | // Highflyers.sol
//
// degenerated.io // 2021 // zpm@
//
// SPDX-License-Identifier: MIT
// if you're looking to reuse this contract and have any questions, just lmk
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract ... | getIssuedTokenCount()<MAX_TOKENS,"Yo, can't mint more than is available" | 5,507 | getIssuedTokenCount()<MAX_TOKENS |
null | pragma solidity ^0.4.18;
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, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | !isFrozen | 5,518 | !isFrozen |
null | pragma solidity ^0.4.18;
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, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | !tgeLive | 5,518 | !tgeLive |
null | pragma solidity ^0.4.18;
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, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uin... | invBalances[msg.sender]>0 | 5,518 | invBalances[msg.sender]>0 |
"insufficient privileges (ROLE_ACCESS_MANAGER required)" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/**
* @title Access Control List
*
* @notice Access control smart contract provides an API to check
* if specific operation is permitted globally and/or
* if particular user has a permission to execute it.
*
* @notice It deals with two main entitie... | isSenderInRole(ROLE_ACCESS_MANAGER),"insufficient privileges (ROLE_ACCESS_MANAGER required)" | 5,590 | isSenderInRole(ROLE_ACCESS_MANAGER) |
"Initializable: contract is already initialized" | // SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;
import "../utils/Address.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have ... | _initializing||_isConstructor()||!_initialized,"Initializable: contract is already initialized" | 5,674 | _initializing||_isConstructor()||!_initialized |
"Cast overflow" | // SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
library CastBytes32Bytes6 {
function b6(bytes32 x) internal pure returns (bytes6 y){
require(<FILL_ME>)
}
}
| bytes32(y=bytes6(x))==x,"Cast overflow" | 5,741 | bytes32(y=bytes6(x))==x |
"ETH operation not supported by token" | pragma solidity ^0.6.0;
/**
* @dev This contract serves as a useful bridge between ETH and the WETH
* ERC-20 based gTokens. It accepts deposits/withdrawals in ETH performing
* the wrapping/unwrapping behind the scenes.
*/
contract GEtherBridge
{
/**
* @notice Accepts a deposit to the gToken us... | _reserveToken==$.WETH,"ETH operation not supported by token" | 5,772 | _reserveToken==$.WETH |
"ETH operation not supported by token" | pragma solidity ^0.6.0;
/**
* @dev This contract serves as a useful bridge between ETH and the WETH
* ERC-20 based gTokens. It accepts deposits/withdrawals in ETH performing
* the wrapping/unwrapping behind the scenes.
*/
contract GEtherBridge
{
/**
* @notice Accepts a deposit to the gToken us... | _underlyingToken==$.WETH,"ETH operation not supported by token" | 5,772 | _underlyingToken==$.WETH |
null | pragma solidity ^0.4.11;
contract ERC20Standard {
uint public totalSupply;
string public name;
uint8 public decimals;
string public symbol;
string public version;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint)) allowed;
modifier onlyPayloadSize(uint size) {
}
... | balances[msg.sender]>=_value&&_value>0 | 5,908 | balances[msg.sender]>=_value&&_value>0 |
null | pragma solidity ^0.4.11;
contract ERC20Standard {
uint public totalSupply;
string public name;
uint8 public decimals;
string public symbol;
string public version;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint)) allowed;
modifier onlyPayloadSize(uint size) {
}
... | balances[_from]>=_value&&allowed[_from][msg.sender]>=_value&&_value>0 | 5,908 | balances[_from]>=_value&&allowed[_from][msg.sender]>=_value&&_value>0 |
null | pragma solidity ^0.4.25;
/*
* Creator: GPC (Green Planet Coin)
*/
/*
* Abstract Token Smart Contract
*
*/
/*
* Safe Math Smart Contract.
* https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
*/
contract SafeMath {
function mul(uint256 a, uint256 b) interna... | allowance(msg.sender,_spender)==0||_value==0 | 5,950 | allowance(msg.sender,_spender)==0||_value==0 |
"GovernorAlpha::propose: proposer votes below proposal threshold" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./FXS.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | fxs.getPriorVotes(msg.sender,sub256(block.number,1))>=proposalThreshold(),"GovernorAlpha::propose: proposer votes below proposal threshold" | 6,025 | fxs.getPriorVotes(msg.sender,sub256(block.number,1))>=proposalThreshold() |
"GovernorAlpha::queue: proposal can only be queued if it succeeded" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./FXS.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | state(proposalId)==ProposalState.Succeeded,"GovernorAlpha::queue: proposal can only be queued if it succeeded" | 6,025 | state(proposalId)==ProposalState.Succeeded |
"GovernorAlpha::_queueOrRevert: proposal action already queued at eta" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./FXS.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | !timelock.queuedTransactions(keccak256(abi.encode(target,value,signature,data,eta))),"GovernorAlpha::_queueOrRevert: proposal action already queued at eta" | 6,025 | !timelock.queuedTransactions(keccak256(abi.encode(target,value,signature,data,eta))) |
"GovernorAlpha::execute: proposal can only be executed if it is queued" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./FXS.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | state(proposalId)==ProposalState.Queued,"GovernorAlpha::execute: proposal can only be executed if it is queued" | 6,025 | state(proposalId)==ProposalState.Queued |
"GovernorAlpha::_castVote: voting is closed" | // SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "./FXS.sol";
// From https://compound.finance/docs/governance
// and https://github.com/compound-finance/compound-protocol/tree/master/contracts/Governance
contract GovernorAlpha {
/// @notice The name of this contract
... | state(proposalId)==ProposalState.Active,"GovernorAlpha::_castVote: voting is closed" | 6,025 | state(proposalId)==ProposalState.Active |
null | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | totalSupply()<100 | 6,195 | totalSupply()<100 |
"Purchase would exceed max supply of LilPlutos" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | totalSupply().add(numberOfTokens)<=maxLilPluto,"Purchase would exceed max supply of LilPlutos" | 6,195 | totalSupply().add(numberOfTokens)<=maxLilPluto |
"Ether value sent is not correct" | pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be c... | LilPlutoPrice.mul(numberOfTokens)==msg.value,"Ether value sent is not correct" | 6,195 | LilPlutoPrice.mul(numberOfTokens)==msg.value |
"ERC1155#safeTransferFrom: INVALID_OPERATOR" | pragma solidity 0.6.12;
import './IERC165.sol';
import './IERC1155TokenReceiver.sol';
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
/**
* @dev Implementation of Multi-Token Standard contract
*/
contract ERC1155 is IERC165 {
using S... | (msg.sender==_from)||isApprovedForAll(_from,msg.sender),"ERC1155#safeTransferFrom: INVALID_OPERATOR" | 6,210 | (msg.sender==_from)||isApprovedForAll(_from,msg.sender) |
"Staking not started yet" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | lpUsers[msg.sender].stakeAmount>0,"Staking not started yet" | 6,214 | lpUsers[msg.sender].stakeAmount>0 |
"Staking not started yet" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | lpUsers[user].stakeAmount>0,"Staking not started yet" | 6,214 | lpUsers[user].stakeAmount>0 |
"Staking not started" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | lpUsers[sender].startTime>0,"Staking not started" | 6,214 | lpUsers[sender].startTime>0 |
"Staking not started yet" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | lpUsers[msg.sender].startTime>0&&lpUsers[msg.sender].stakeAmount>0,"Staking not started yet" | 6,214 | lpUsers[msg.sender].startTime>0&&lpUsers[msg.sender].stakeAmount>0 |
"Card not found" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd._exists(_cardId)!=false,"Card not found" | 6,214 | hal9kLtd._exists(_cardId)!=false |
"Card limit is reached" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd.totalSupply(_cardId)<=hal9kLtd.maxSupply(_cardId),"Card limit is reached" | 6,214 | hal9kLtd.totalSupply(_cardId)<=hal9kLtd.maxSupply(_cardId) |
"Sell event is not set" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | _eventData[_cardId].sellStartTime>=0&&_eventData[_cardId].sellEndTime>=0,"Sell event is not set" | 6,214 | _eventData[_cardId].sellStartTime>=0&&_eventData[_cardId].sellEndTime>=0 |
"Is the sell event set correctly?" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | _eventData[_cardId].sellEndTime>=_eventData[_cardId].sellStartTime,"Is the sell event set correctly?" | 6,214 | _eventData[_cardId].sellEndTime>=_eventData[_cardId].sellStartTime |
"All cards are sold" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | _eventData[_cardId].soldAmount<_eventData[_cardId].cardAmount,"All cards are sold" | 6,214 | _eventData[_cardId].soldAmount<_eventData[_cardId].cardAmount |
"You've already bought the card" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | _cardBought[_cardId][msg.sender]!=true,"You've already bought the card" | 6,214 | _cardBought[_cardId][msg.sender]!=true |
"Card doesn't exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd._exists(_cardId)==true,"Card doesn't exist" | 6,214 | hal9kLtd._exists(_cardId)==true |
"No cards exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd.totalSupply(_cardId)>0,"No cards exist" | 6,214 | hal9kLtd.totalSupply(_cardId)>0 |
"From card doesn't exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd._exists(_fromCardId)==true,"From card doesn't exist" | 6,214 | hal9kLtd._exists(_fromCardId)==true |
"To card doesn't exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd._exists(_toCardId)==true,"To card doesn't exist" | 6,214 | hal9kLtd._exists(_toCardId)==true |
"Upgrade card doesn't exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd._exists(_upgradeCardId)==true,"Upgrade card doesn't exist" | 6,214 | hal9kLtd._exists(_upgradeCardId)==true |
"No cards exist" | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd.totalSupply(_fromCardId)>0,"No cards exist" | 6,214 | hal9kLtd.totalSupply(_fromCardId)>0 |
"Unable to upgrade because card limit is reached." | /**
*Submitted for verification at Etherscan.io on 2020-08-26
*/
pragma solidity 0.6.12;
// pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol"; // for WETH
import "@openzepp... | hal9kLtd.totalSupply(_toCardId)<=hal9kLtd.maxSupply(_toCardId),"Unable to upgrade because card limit is reached." | 6,214 | hal9kLtd.totalSupply(_toCardId)<=hal9kLtd.maxSupply(_toCardId) |
null | /// @author Soldier4One
pragma solidity >=0.7.0 <0.9.0;
contract RacCons is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.055 ether;
uint256 public maxSupply = 5555;
uint25... | supply+_mintAmount<=maxSupply | 6,311 | supply+_mintAmount<=maxSupply |
null | /**
* @title TokenVesting
* @dev A token holder contract that can release its token balance gradually like a
* typical vesting scheme, with a cliff and vesting period. Optionally revocable by the
* owner.
*/
contract TokenVesting is Ownable {
using SafeMath for uint256;
using SafeERC20 for ERC20;
ev... | !revoked | 6,387 | !revoked |
"User Exists" | /*
8 8888888888 ,o888888o. 8 888888888o. ,o888888o. 8 8888888888 8 8888888888 `8.`8888. ,8'
8 8888 . 8888 `88. 8 8888 `88. 8888 `88. 8 8888 8 8888 `8.`8888. ,8'
8 8888 ,8 8888 `8b 8 8888 `88 ,8 8888... | !users[msg.sender].isExist,"User Exists" | 6,454 | !users[msg.sender].isExist |
"User Not Registered" | /*
8 8888888888 ,o888888o. 8 888888888o. ,o888888o. 8 8888888888 8 8888888888 `8.`8888. ,8'
8 8888 . 8888 `88. 8 8888 `88. 8888 `88. 8 8888 8 8888 `8.`8888. ,8'
8 8888 ,8 8888 `8b 8 8888 `88 ,8 8888... | users[msg.sender].isExist,"User Not Registered" | 6,454 | users[msg.sender].isExist |
"Already in AutoPool" | /*
8 8888888888 ,o888888o. 8 888888888o. ,o888888o. 8 8888888888 8 8888888888 `8.`8888. ,8'
8 8888 . 8888 `88. 8 8888 `88. 8888 `88. 8 8888 8 8888 `8.`8888. ,8'
8 8888 ,8 8888 `8b 8 8888 `88 ,8 8888... | !isinpool,"Already in AutoPool" | 6,454 | !isinpool |
"Router: invalid sender" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import... | IOperation(_opt).getCurrentStatus().operator==_msgSender(),"Router: invalid sender" | 6,509 | IOperation(_opt).getCurrentStatus().operator==_msgSender() |
'Transfer already processed' | pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import './Itoken.sol';
contract BridgeBase is Ownable{
IToken public token;
uint public nonce;
mapping(uint => bool) public processedNonces;
enum Step { Burn, Mint }
event Tran... | processedNonces[otherChainNonce]==false,'Transfer already processed' | 6,547 | processedNonces[otherChainNonce]==false |
"Caller is not an minter" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/access/AccessControl.sol";
contract vcUSDToken is ERC20, AccessControl {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 pu... | hasRole(MINTER_ROLE,msg.sender),"Caller is not an minter" | 6,601 | hasRole(MINTER_ROLE,msg.sender) |
"Caller is not an burner" | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/access/AccessControl.sol";
contract vcUSDToken is ERC20, AccessControl {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 pu... | hasRole(BURNER_ROLE,msg.sender),"Caller is not an burner" | 6,601 | hasRole(BURNER_ROLE,msg.sender) |
null | pragma solidity 0.4.18;
contract ConversionRates is
ConversionRatesInterface,
VolumeImbalanceRecorder,
Utils
{
// bps - basic rate steps. one step is 1 / 10000 of the rate.
struct StepFunction {
int256[] x; // quantity for each step. Quantity of each step includes previous steps.
... | !tokenData[token].listed | 6,677 | !tokenData[token].listed |
null | pragma solidity 0.4.18;
contract ConversionRates is
ConversionRatesInterface,
VolumeImbalanceRecorder,
Utils
{
// bps - basic rate steps. one step is 1 / 10000 of the rate.
struct StepFunction {
int256[] x; // quantity for each step. Quantity of each step includes previous steps.
... | indices[i]<tokenRatesCompactData.length | 6,677 | indices[i]<tokenRatesCompactData.length |
null | pragma solidity 0.4.18;
contract ConversionRates is
ConversionRatesInterface,
VolumeImbalanceRecorder,
Utils
{
// bps - basic rate steps. one step is 1 / 10000 of the rate.
struct StepFunction {
int256[] x; // quantity for each step. Quantity of each step includes previous steps.
... | tokenData[tokens[ind]].listed | 6,677 | tokenData[tokens[ind]].listed |
null | pragma solidity 0.4.18;
contract ConversionRates is
ConversionRatesInterface,
VolumeImbalanceRecorder,
Utils
{
// bps - basic rate steps. one step is 1 / 10000 of the rate.
struct StepFunction {
int256[] x; // quantity for each step. Quantity of each step includes previous steps.
... | tokenData[token].listed | 6,677 | tokenData[token].listed |
null | pragma solidity 0.4.18;
contract ConversionRates is
ConversionRatesInterface,
VolumeImbalanceRecorder,
Utils
{
// bps - basic rate steps. one step is 1 / 10000 of the rate.
struct StepFunction {
int256[] x; // quantity for each step. Quantity of each step includes previous steps.
... | tokenControlInfo[token].minimalRecordResolution!=0 | 6,677 | tokenControlInfo[token].minimalRecordResolution!=0 |
null | //sol Wallet
// Multi-sig, daily-limited account proxy/wallet.
// @authors:
// Gav Wood <g@ethdev.com>
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a
// single, or, crucially, each of a number of, designated owners.
// usage:
// use modifiers onl... | !failed | 6,728 | !failed |
null | //sol Wallet
// Multi-sig, daily-limited account proxy/wallet.
// @authors:
// Gav Wood <g@ethdev.com>
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a
// single, or, crucially, each of a number of, designated owners.
// usage:
// use modifiers onl... | _to.call.value(_value)(_data) | 6,728 | _to.call.value(_value)(_data) |
null | //sol Wallet
// Multi-sig, daily-limited account proxy/wallet.
// @authors:
// Gav Wood <g@ethdev.com>
// inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a
// single, or, crucially, each of a number of, designated owners.
// usage:
// use modifiers onl... | m_txs[_h].to.call.value(m_txs[_h].value)(m_txs[_h].data) | 6,728 | m_txs[_h].to.call.value(m_txs[_h].value)(m_txs[_h].data) |
null | /*
Finplether is The Most Unique Financial Hedging Instrument with 5.25% Guaranteed Daily Payments.
Finplether is a financial hedging instrument to mitigate any cryptocurrency risks and get Guaranteed Daily Yield.
Why the Finplether?
1. Your money safety. Your money is always yours.
2. No Risks. 5.25% Gua... | isMinter(msg.sender) | 6,736 | isMinter(msg.sender) |
"The master copy must be a valid address" | pragma solidity ^0.5.2;
import "@gnosis.pm/util-contracts/contracts/Math.sol";
import "@gnosis.pm/util-contracts/contracts/GnosisStandardToken.sol";
import "@gnosis.pm/util-contracts/contracts/Proxy.sol";
contract TokenOWL is Proxied, GnosisStandardToken {
using GnosisMath for *;
string public constant name = "... | address(_masterCopy)!=address(0),"The master copy must be a valid address" | 6,745 | address(_masterCopy)!=address(0) |
"The master copy must be a valid address" | pragma solidity ^0.5.2;
import "@gnosis.pm/util-contracts/contracts/Math.sol";
import "@gnosis.pm/util-contracts/contracts/GnosisStandardToken.sol";
import "@gnosis.pm/util-contracts/contracts/Proxy.sol";
contract TokenOWL is Proxied, GnosisStandardToken {
using GnosisMath for *;
string public constant name = "... | address(masterCopyCountdown.masterCopy)!=address(0),"The master copy must be a valid address" | 6,745 | address(masterCopyCountdown.masterCopy)!=address(0) |
null | pragma solidity ^0.5.2;
/// @title Math library - Allows calculation of logarithmic and exponential functions
/// @author Alan Lu - <alan.lu@gnosis.pm>
/// @author Stefan George - <stefan@gnosis.pm>
library GnosisMath {
/*
* Constants
*/
// This is equal to 1 in our calculations
uint public const... | safeToAdd(a,b) | 6,749 | safeToAdd(a,b) |
null | pragma solidity ^0.5.2;
/// @title Math library - Allows calculation of logarithmic and exponential functions
/// @author Alan Lu - <alan.lu@gnosis.pm>
/// @author Stefan George - <stefan@gnosis.pm>
library GnosisMath {
/*
* Constants
*/
// This is equal to 1 in our calculations
uint public const... | safeToSub(a,b) | 6,749 | safeToSub(a,b) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.