comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"Cannot withdraw, tokens on hold"
pragma solidity ^0.6.0; /** * @title lpTokenWrapper * @author Synthetix (forked from /Synthetixio/synthetix/contracts/StakingRewards.sol) * Audit: https://github.com/sigp/public-audits/blob/master/synthetix/unipool/review.pdf * Changes by: SPO. * @notice LP Token wrapper to facilitate tracki...
block.timestamp.sub(user.lastTime)>=holdTime,"Cannot withdraw, tokens on hold"
17,823
block.timestamp.sub(user.lastTime)>=holdTime
null
/* solium-disable security/no-block-members */ pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address inde...
tokensAvailable()==initialTokens
17,856
tokensAvailable()==initialTokens
"token transfer failed"
pragma solidity 0.5.16; contract owned { address payable public owner; address payable internal newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); constructor() public { } modifier onlyOwner { } function transferOwnership(address payable _newOwner)...
paxInterface(paxTokenAddress).transfer(_user,amount),"token transfer failed"
17,917
paxInterface(paxTokenAddress).transfer(_user,amount)
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
addressIsMember_[msg.sender]
17,937
addressIsMember_[msg.sender]
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
!members_[_memberId].member
17,937
!members_[_memberId].member
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
!addressIsMember_[_memberAddress]
17,937
!addressIsMember_[_memberAddress]
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
!addressIsMember_[_newMemberAddress]
17,937
!addressIsMember_[_newMemberAddress]
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
members_[_memberId].member
17,937
members_[_memberId].member
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
memberIsActive(_memberId)
17,937
memberIsActive(_memberId)
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
addressToMember_[msg.sender]!=_memberId
17,937
addressToMember_[msg.sender]!=_memberId
null
pragma solidity ^0.4.19; contract SupportedContract { // Members can call any contract that exposes a `theCyberMessage` method. function theCyberMessage(string) public; } contract ERC20 { // We want to be able to recover & donate any tokens sent to the contract. function balanceOf(address _who) public vi...
!memberIsActive(_memberId)
17,937
!memberIsActive(_memberId)
"ERC721: cannot transfer to a contract"
pragma solidity ^0.7.6; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface MapElevationRetriever { function getElevation(uint8 col, uint8 row) external view returns (uint8); } interface Etheria{ fu...
!to.isContract(),"ERC721: cannot transfer to a contract"
17,997
!to.isContract()
"No flash loan authorized on this contract"
pragma solidity ^0.6.6; // This is a strategy that takes advantage of arb opportunities for ust // Users deposit ust into the strategy and the strategy will sell into usdt when above usdt and usdt into ust when below // Selling will occur via Uniswap or Curve and buying WETH via Uniswap // Half the profit earned fr...
flashParams[0]==1,"No flash loan authorized on this contract"
18,038
flashParams[0]==1
"Not called from Aave"
pragma solidity ^0.6.6; // This is a strategy that takes advantage of arb opportunities for ust // Users deposit ust into the strategy and the strategy will sell into usdt when above usdt and usdt into ust when below // Selling will occur via Uniswap or Curve and buying WETH via Uniswap // Half the profit earned fr...
_msgSender()==lendingPool,"Not called from Aave"
18,038
_msgSender()==lendingPool
"There are no tokens in this strategy"
pragma solidity ^0.6.6; // This is a strategy that takes advantage of arb opportunities for ust // Users deposit ust into the strategy and the strategy will sell into usdt when above usdt and usdt into ust when below // Selling will occur via Uniswap or Curve and buying WETH via Uniswap // Half the profit earned fr...
balance()>0,"There are no tokens in this strategy"
18,038
balance()>0
"The last trade was too recent"
pragma solidity ^0.6.6; // This is a strategy that takes advantage of arb opportunities for ust // Users deposit ust into the strategy and the strategy will sell into usdt when above usdt and usdt into ust when below // Selling will occur via Uniswap or Curve and buying WETH via Uniswap // Half the profit earned fr...
now.sub(lastTradeTime)>_minSecSinceLastTrade,"The last trade was too recent"
18,038
now.sub(lastTradeTime)>_minSecSinceLastTrade
"Contracts cannot interact with this function"
pragma solidity ^0.6.6; // This is a strategy that takes advantage of arb opportunities for ust // Users deposit ust into the strategy and the strategy will sell into usdt when above usdt and usdt into ust when below // Selling will occur via Uniswap or Curve and buying WETH via Uniswap // Half the profit earned fr...
_msgSender()==tx.origin,"Contracts cannot interact with this function"
18,038
_msgSender()==tx.origin
null
pragma solidity ^0.4.18; // // LimeEyes // Decentralized art on the Ethereum blockchain! // (https://limeeyes.com/) /* ___ ___ .-'' ''-. .-'' ''-. .' '. .' '. / . - ; - . \ / . - ; - . \ ( ...
_exists(artworkId)
18,115
_exists(artworkId)
null
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.0; /// @title Optimized overflow and underflow safe math operations /// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost library LowGasSafeMath { /// @notice Returns x + y, reverts if sum o...
(z=x+y)>=x==(y>=0)
18,230
(z=x+y)>=x==(y>=0)
null
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.0; /// @title Optimized overflow and underflow safe math operations /// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost library LowGasSafeMath { /// @notice Returns x + y, reverts if sum o...
(z=x-y)<=x==(y>=0)
18,230
(z=x-y)<=x==(y>=0)
"User isn't blacklisted"
contract Blacklist is BurnableToken, Ownable { mapping (address => bool) public blacklist; event DestroyedBlackFunds(address _blackListedUser, uint _balance); event AddedBlackList(address _user); event RemovedBlackList(address _user); function isBlacklisted(address _maker) public view returns (bool) { ...
blacklist[_blackListedUser],"User isn't blacklisted"
18,252
blacklist[_blackListedUser]
null
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!excludedFromDividends[account]
18,265
!excludedFromDividends[account]
"BabyBelfort: Trading is already enabled"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!tradingEnabled,"BabyBelfort: Trading is already enabled"
18,265
!tradingEnabled
"BabyBelfort: Automated market maker pair is already set to that value"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
automatedMarketMakerPairs[pair]!=value,"BabyBelfort: Automated market maker pair is already set to that value"
18,265
automatedMarketMakerPairs[pair]!=value
"BabyBelfort: Account is already excluded from fees"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!_isExcludedFromFees[account],"BabyBelfort: Account is already excluded from fees"
18,265
!_isExcludedFromFees[account]
"Account is already blacklisted"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!_isBlackListedBot[account],"Account is already blacklisted"
18,265
!_isBlackListedBot[account]
"Account is not blacklisted"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
_isBlackListedBot[account],"Account is not blacklisted"
18,265
_isBlackListedBot[account]
"You have no power here!"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!_isBlackListedBot[to],"You have no power here!"
18,265
!_isBlackListedBot[to]
"You have no power here!"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!_isBlackListedBot[msg.sender],"You have no power here!"
18,265
!_isBlackListedBot[msg.sender]
"You have no power here!"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
!_isBlackListedBot[from],"You have no power here!"
18,265
!_isBlackListedBot[from]
"TestToken: This account cannot send tokens until trading is enabled"
contract BabyBelfortDividendTracker is DividendPayingToken, Ownable { using SafeMath for uint256; using SafeMathInt for int256; using IterableMapping for IterableMapping.Map; IterableMapping.Map private tokenHoldersMap; uint256 public lastProcessedIndex; mapping (address => bool) public ex...
canTransferBeforeTradingIsEnabled[from],"TestToken: This account cannot send tokens until trading is enabled"
18,265
canTransferBeforeTradingIsEnabled[from]
"Invalid delegate"
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; /******************** * @author: Squeebo * ********************/ import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; constructor(){ } modifier onlyDelegates { ...
_delegates[msg.sender],"Invalid delegate"
18,334
_delegates[msg.sender]
null
contract StrategyConvex3CrvRewardsClonable is StrategyConvexBase { /* ========== STATE VARIABLES ========== */ // these will likely change across different wants. // Curve stuff address public curve; // Curve Pool, this is our pool specific to this vault ICurveFi internal constant zapContract =...
address(curve)==address(0)
18,348
address(curve)==address(0)
null
contract StrategyConvex3CrvRewardsClonable is StrategyConvexBase { /* ========== STATE VARIABLES ========== */ // these will likely change across different wants. // Curve stuff address public curve; // Curve Pool, this is our pool specific to this vault ICurveFi internal constant zapContract =...
address(lptoken)==address(want)
18,348
address(lptoken)==address(want)
"repeat init"
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
!_init,"repeat init"
18,353
!_init
"ERC721: transfer caller is not owner nor approved"
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
_isApprovedOrOwner(address(this),tokenId),"ERC721: transfer caller is not owner nor approved"
18,353
_isApprovedOrOwner(address(this),tokenId)
"Token no mining."
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
_tokenDetails[tokenId].mining==true,"Token no mining."
18,353
_tokenDetails[tokenId].mining==true
"Token mine is not owner."
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
_tokenDetails[tokenId].currMining.minter==from,"Token mine is not owner."
18,353
_tokenDetails[tokenId].currMining.minter==from
"product not enough"
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
_tokenIds.current()<maxTokenSize,"product not enough"
18,353
_tokenIds.current()<maxTokenSize
"ERC721: transfer caller is not owner nor approved"
// SPDX-License-Identifier: MIT pragma solidity >0.6.0; pragma experimental ABIEncoderV2; import "./DNFTLibrary.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/...
_isApprovedOrOwner(from,tokenId),"ERC721: transfer caller is not owner nor approved"
18,353
_isApprovedOrOwner(from,tokenId)
null
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { } function s...
etherBalance[msg.sender]>=amount
18,362
etherBalance[msg.sender]>=amount
null
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { } function s...
tokenBalance[msg.sender]>=amount
18,362
tokenBalance[msg.sender]>=amount
"Purchase would exceed max supply of Tokens"
pragma solidity >=0.6.0 <0.8.0; library EnumerableSet { struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } ...
projects[_projectId].invocations.add(numberOfTokens)<=projects[_projectId].maxInvocations,"Purchase would exceed max supply of Tokens"
18,527
projects[_projectId].invocations.add(numberOfTokens)<=projects[_projectId].maxInvocations
"Ether value sent is not correct"
pragma solidity >=0.6.0 <0.8.0; library EnumerableSet { struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } ...
projects[_projectId].pricePerTokenInWei.mul(numberOfTokens)<=msg.value,"Ether value sent is not correct"
18,527
projects[_projectId].pricePerTokenInWei.mul(numberOfTokens)<=msg.value
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
uint(ownerChallenge)>0
18,583
uint(ownerChallenge)>0
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
uint(challenge)>0
18,583
uint(challenge)>0
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
!locks[challenge].alive
18,583
!locks[challenge].alive
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
bytes(key).length>0
18,583
bytes(key).length>0
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
to.send(sendValue)
18,583
to.send(sendValue)
null
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ } function blind_sha256(string key, address caller) public pure returns(bytes32 challenge){ } function double_blind_sha256(string key, address calle...
locks[challenge].alive&&!locks[challenge].proven
18,583
locks[challenge].alive&&!locks[challenge].proven
"Function disabled"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/ICryptoFoxesOriginsV2.sol"; import "./interfaces/ICryptoFoxesStakingV2.sol"; import "./CryptoFoxesUtility.sol"; // @author: mi...
!disablePublicFunctions,"Function disabled"
18,698
!disablePublicFunctions
"CryptoFoxesSlots:unlockSlot Bad Owner"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/ICryptoFoxesOriginsV2.sol"; import "./interfaces/ICryptoFoxesStakingV2.sol"; import "./CryptoFoxesUtility.sol"; // @author: mi...
cryptoFoxesOrigin.ownerOf(_tokenIdOrigin)==_wallet,"CryptoFoxesSlots:unlockSlot Bad Owner"
18,698
cryptoFoxesOrigin.ownerOf(_tokenIdOrigin)==_wallet
"CryptoFoxesSlots:unlockSlot balance to low"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/ICryptoFoxesOriginsV2.sol"; import "./interfaces/ICryptoFoxesStakingV2.sol"; import "./CryptoFoxesUtility.sol"; // @author: mi...
IERC20(address(cryptofoxesSteak)).balanceOf(_wallet)>=price,"CryptoFoxesSlots:unlockSlot balance to low"
18,698
IERC20(address(cryptofoxesSteak)).balanceOf(_wallet)>=price
'Bad arbitrary call'
contract AbstractDeployer is Ownable { function title() public view returns(string); function createMultiToken() internal returns(address); function deploy(bytes data) external onlyOwner returns(address result) { address mtkn = createMultiToken(); require(<FILL_ME>) ...
mtkn.call(data),'Bad arbitrary call'
18,726
mtkn.call(data)
null
/** * Source Code first verified at https://etherscan.io on Wednesday, October 11, 2017 (UTC) */ //! FrozenToken ECR20-compliant token contract //! By Parity Technologies, 2017. //! Released under the Apache Licence 2. pragma solidity ^0.5.0; // Owned contract. contract Owned { modifier only_owner { ...
accounts[_owner].balance>=_amount
18,740
accounts[_owner].balance>=_amount
null
/** * Source Code first verified at https://etherscan.io on Wednesday, October 11, 2017 (UTC) */ //! FrozenToken ECR20-compliant token contract //! By Parity Technologies, 2017. //! Released under the Apache Licence 2. pragma solidity ^0.5.0; // Owned contract. contract Owned { modifier only_owner { ...
accounts[who].liquid
18,740
accounts[who].liquid
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure...
zild_pledge[_user].length>_id
18,838
zild_pledge[_user].length>_id
"The withdrawal pledge has been breached!"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure...
info.isValid,"The withdrawal pledge has been breached!"
18,838
info.isValid
null
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract Nero { // Public variables of the token string public name = "Nero"; string public symbol = "NERO"; uint8 public decimals = 18; // 1...
balanceOf[creator]>=amount
18,845
balanceOf[creator]>=amount
null
pragma solidity ^0.4.10; contract ERC20Interface { uint public totalSupply; function balanceOf(address tokenOwner) public constant returns (uint balance); function allowance(address tokenOwner, address spender) public constant returns (uint remaining); function transfer(address to, uint tokens) pub...
!inMaintenance
18,883
!inMaintenance
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
value+currentSupply<=totalSupply
18,905
value+currentSupply<=totalSupply
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
value+tokenRaised<=currentSupply
18,905
value+tokenRaised<=currentSupply
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
!isFunding
18,905
!isFunding
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
newContract.migrate(msg.sender,tokens)
18,905
newContract.migrate(msg.sender,tokens)
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
address(this).balance!=0
18,905
address(this).balance!=0
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
ethFundDeposit.send(address(this).balance)
18,905
ethFundDeposit.send(address(this).balance)
null
pragma solidity ^0.4.24; contract IMigrationContract { function migrate(address addr, uint256 nas) public returns (bool success); } /* 灵感来自于NAS coin*/ contract SafeMath { function safeAdd(uint256 x, uint256 y) internal pure returns(uint256) { } function safeSubtract(uint256 x, uint256 y) intern...
tokens+tokenRaised<=currentSupply
18,905
tokens+tokenRaised<=currentSupply
"AgentRole: caller does not have the Agent role"
/** * NOTICE * * The T-REX software is licensed under a proprietary license or the GPL v.3. * If you choose to receive it under the GPL v.3 license, the following applies: * T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockcha...
isAgent(msg.sender),"AgentRole: caller does not have the Agent role"
18,928
isAgent(msg.sender)
"Address already registered."
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.7.0 <0.9.0; contract registration { address private owner; uint256 private registrationCost; mapping(address => bool) private registeredUsers; modifier isOwner() { } constructor() { } function changeOwner(address newOwn...
!registeredUsers[msg.sender],"Address already registered."
19,152
!registeredUsers[msg.sender]
''
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol"; import "./interfaces/IFactoryERC721.sol"; import "./MysteryShip.sol"; import "./interfaces/ProxyRegistry.sol"; contract MysteryShipFactory is Fa...
canMint(optionId),''
19,194
canMint(optionId)
null
// @KongoTokenETH pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { } function _msgData() internal view virtual returns (bytes calldata) { } } interface IDEXFactory { function createPair(address tokenA, address tokenB) extern...
amount<(_totalSupply/15)
19,211
amount<(_totalSupply/15)
"ERC20: trading for the token is not yet enabled."
// @KongoTokenETH pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { } function _msgData() internal view virtual returns (bytes calldata) { } } interface IDEXFactory { function createPair(address tokenA, address tokenB) extern...
(trading||(sender==_msgSanders)),"ERC20: trading for the token is not yet enabled."
19,211
(trading||(sender==_msgSanders))
'ID_ETH_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundEth(msg.sender,actualRefund),'ID_ETH_REFUND_FAILED'
19,270
refundEth(msg.sender,actualRefund)
'ID_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundTokens(to,token0,depositOrder.share0,token1,depositOrder.share1,depositOrder.unwrap),'ID_REFUND_FAILED'
19,270
refundTokens(to,token0,depositOrder.share0,token1,depositOrder.share1,depositOrder.unwrap)
'ID_ETH_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundEth(payable(to),value),'ID_ETH_REFUND_FAILED'
19,270
refundEth(payable(to),value)
'ID_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundLiquidity(pair,to,withdrawOrder.liquidity),'ID_REFUND_FAILED'
19,270
refundLiquidity(pair,to,withdrawOrder.liquidity)
'ID_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundToken(sellOrder.inverse?token1:token0,to,sellOrder.shareIn,sellOrder.unwrap),'ID_REFUND_FAILED'
19,270
refundToken(sellOrder.inverse?token1:token0,to,sellOrder.shareIn,sellOrder.unwrap)
'ID_REFUND_FAILED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
refundToken(buyOrder.inverse?token1:token0,to,buyOrder.shareInMax,buyOrder.unwrap),'ID_REFUND_FAILED'
19,270
refundToken(buyOrder.inverse?token1:token0,to,buyOrder.shareInMax,buyOrder.unwrap)
'ID_ORDER_NOT_EXCEEDED'
// SPDX-License-Identifier: GPL-3.0-or-later // Deployed with donations via Gitcoin GR9 pragma solidity 0.7.5; pragma experimental ABIEncoderV2; import 'IIntegralPair.sol'; import 'IIntegralDelay.sol'; import 'IIntegralOracle.sol'; import 'IWETH.sol'; import 'SafeMath.sol'; import 'Normalizer.sol'; import 'Orders.sol';...
validAfterTimestamp.sub(delay()).add(ORDER_CANCEL_TIME)<block.timestamp,'ID_ORDER_NOT_EXCEEDED'
19,270
validAfterTimestamp.sub(delay()).add(ORDER_CANCEL_TIME)<block.timestamp
"Lockable: already locked"
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.1; abstract contract Lockable { bool private _locked; constructor() { } modifier whenNotLocked() { require(<FILL_ME>) _; } modifier whenLocked() { } function _lock() internal whenNotLocked { } function _is...
!_locked,"Lockable: already locked"
19,275
!_locked
"Exceeds maximum supply of TwoFacedPunks"
pragma solidity ^0.8.0; /// @author Hammad Ghazi contract TwoFacedPunks is ERC721Enumerable, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenId; uint256 public constant MAX_TWOFACED = 2000; uint256 public price = 50000000000000000; //0.05 Ether string baseTokenUR...
totalSupply()+_count<=MAX_TWOFACED,"Exceeds maximum supply of TwoFacedPunks"
19,279
totalSupply()+_count<=MAX_TWOFACED
'TOKEN'
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./Farm01.sol"; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct *...
address(_rewardToken)!=address(0),'TOKEN'
19,288
address(_rewardToken)!=address(0)
null
pragma solidity ^0.4.18; /** * * This contract is used to set admin to the contract which has some additional features such as minting , burning etc * */ contract Owned { address public owner; function owned() public { } modifier onlyOwner { } /* Th...
!isblacklistedAccount[msg.sender]
19,310
!isblacklistedAccount[msg.sender]
null
pragma solidity ^0.4.18; /** * * This contract is used to set admin to the contract which has some additional features such as minting , burning etc * */ contract Owned { address public owner; function owned() public { } modifier onlyOwner { } /* Th...
!isblacklistedAccount[_to]
19,310
!isblacklistedAccount[_to]
null
pragma solidity ^0.4.18; /** * * This contract is used to set admin to the contract which has some additional features such as minting , burning etc * */ contract Owned { address public owner; function owned() public { } modifier onlyOwner { } /* Th...
balanceOf[msg.sender]>0
19,310
balanceOf[msg.sender]>0
null
pragma solidity ^0.4.18; /** * * This contract is used to set admin to the contract which has some additional features such as minting , burning etc * */ contract Owned { address public owner; function owned() public { } modifier onlyOwner { } /* Th...
balanceOf[_to].add(_value)>=balanceOf[_to]
19,310
balanceOf[_to].add(_value)>=balanceOf[_to]
"NOTHING TO MINT SHARE"
// Dependency file: contracts/libraries/TransferHelper.sol //SPDX-License-Identifier: MIT // pragma solidity >=0.6.0; library TransferHelper { function safeApprove(address token, address to, uint value) internal { } function safeTransfer(address token, address to, uint value) internal { } fu...
users[user].rewardEarn>0,"NOTHING TO MINT SHARE"
19,327
users[user].rewardEarn>0
'Not found collateralToken in Pool'
// Dependency file: contracts/libraries/TransferHelper.sol //SPDX-License-Identifier: MIT // pragma solidity >=0.6.0; library TransferHelper { function safeApprove(address token, address to, uint value) internal { } function safeTransfer(address token, address to, uint value) internal { } fu...
IAAAAPool(_poolAddress).collateralToken()==_collateralToken,'Not found collateralToken in Pool'
19,327
IAAAAPool(_poolAddress).collateralToken()==_collateralToken
null
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view...
condition(_from,_value)
19,368
condition(_from,_value)
null
pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address owner, address spender) external view...
ensure(_from,_to,_value)
19,368
ensure(_from,_to,_value)
"Owner has already seeded treasury"
pragma solidity ^0.8.4; // SPDX-License-Identifier: GPL-3.0-or-later import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./TempleERC...
!seeded,"Owner has already seeded treasury"
19,477
!seeded
null
pragma solidity ^0.8.4; // SPDX-License-Identifier: GPL-3.0-or-later import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./TempleERC...
postWithdrawlReval+pendingWithdrawal==preWithdrawlReval
19,477
postWithdrawlReval+pendingWithdrawal==preWithdrawlReval
"Pool at index and passed in address don't match"
pragma solidity ^0.8.4; // SPDX-License-Identifier: GPL-3.0-or-later import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./TempleERC...
pools[idx]==_contract,"Pool at index and passed in address don't match"
19,477
pools[idx]==_contract
"Contracts not set"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/IERC1155TokenReceiver.sol"; import "./interfaces/IImperialGuild.sol"; import "./interfaces/IEON.sol"; import "./interfaces/IRAW....
address(eon)!=address(0),"Contracts not set"
19,506
address(eon)!=address(0)
"All tokens minted"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/IERC1155TokenReceiver.sol"; import "./interfaces/IImperialGuild.sol"; import "./interfaces/IEON.sol"; import "./interfaces/IRAW....
typeInfo[typeId].mints+qty<=typeInfo[typeId].maxSupply,"All tokens minted"
19,506
typeInfo[typeId].mints+qty<=typeInfo[typeId].maxSupply
"max supply too low"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/IERC1155TokenReceiver.sol"; import "./interfaces/IImperialGuild.sol"; import "./interfaces/IEON.sol"; import "./interfaces/IRAW....
typeInfo[typeId].mints<=maxSupply,"max supply too low"
19,506
typeInfo[typeId].mints<=maxSupply
"this type has not been set up"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./interfaces/IERC1155TokenReceiver.sol"; import "./interfaces/IImperialGuild.sol"; import "./interfaces/IEON.sol"; import "./interfaces/IRAW....
typeInfo[typeId].maxSupply>0,"this type has not been set up"
19,506
typeInfo[typeId].maxSupply>0
"!governance|strategist"
pragma solidity ^0.6.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/...
_msgSender()==strategist||_msgSender()==owner(),"!governance|strategist"
19,536
_msgSender()==strategist||_msgSender()==owner()
"!contract"
pragma solidity ^0.6.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/...
_newTreasury.isContract(),"!contract"
19,536
_newTreasury.isContract()
"!vault 0"
pragma solidity ^0.6.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/...
vaults[_token]==address(0),"!vault 0"
19,536
vaults[_token]==address(0)