comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"Staking token not matched."
// Copyright (c) 2020 SashimiProject. pragma solidity 0.6.12; contract LpBar is ERC20("LpBar", "xLP"), Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public lp; IERC20 public sashimi; IMasterChef public masterChef; uint256 public pid; IStakingRewards public...
_uniStake.stakingToken()==address(_lp),"Staking token not matched."
13,355
_uniStake.stakingToken()==address(_lp)
"SmartPoolRegistry.addSmartPool: POOL_ALREADY_IN_REGISTRY"
pragma solidity 0.8.1; import "../interfaces/IPieRegistry.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract SmartPoolRegistry is IPieRegistry, Ownable { mapping(address => bool) public override inRegistry; address[] public override entries; function addSmartPool(address _smartPool) externa...
!inRegistry[_smartPool],"SmartPoolRegistry.addSmartPool: POOL_ALREADY_IN_REGISTRY"
13,378
!inRegistry[_smartPool]
'cannot take from contract what you did not send'
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './OKLGWithdrawable.sol'; /** * @title OKLGAffiliate * @dev Support affiliate logic */ contract OKLGAffiliate is OKLGWithdrawable { modifier onlyAffiliateOrOwner() { } struct Affiliate { uint256 feePercent; uint256 revenue; } uint16 pub...
address(this).balance>=balanceBefore,'cannot take from contract what you did not send'
13,466
address(this).balance>=balanceBefore
'affiliate must exist'
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './OKLGWithdrawable.sol'; /** * @title OKLGAffiliate * @dev Support affiliate logic */ contract OKLGAffiliate is OKLGWithdrawable { modifier onlyAffiliateOrOwner() { } struct Affiliate { uint256 feePercent; uint256 revenue; } uint16 pub...
overrideDiscounts[_wallet]>0,'affiliate must exist'
13,466
overrideDiscounts[_wallet]>0
'affiliate must exist'
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import './OKLGWithdrawable.sol'; /** * @title OKLGAffiliate * @dev Support affiliate logic */ contract OKLGAffiliate is OKLGWithdrawable { modifier onlyAffiliateOrOwner() { } struct Affiliate { uint256 feePercent; uint256 revenue; } uint16 pub...
affiliates[_wallet].feePercent>0,'affiliate must exist'
13,466
affiliates[_wallet].feePercent>0
"You shall not pass"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC1155.sol"; import "../royalties/ERC2981.sol"; import "../utils/AddressSet.sol"; import "../utils/UInt256Set.sol"; import "./...
_isController(msg.sender),"You shall not pass"
13,555
_isController(msg.sender)
"You shall not pass"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC1155.sol"; import "../royalties/ERC2981.sol"; import "../utils/AddressSet.sol"; import "../utils/UInt256Set.sol"; import "./...
_isController(msg.sender)||masterMinter==msg.sender,"You shall not pass"
13,555
_isController(msg.sender)||masterMinter==msg.sender
"Only the owner can set the URI"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC1155.sol"; import "../royalties/ERC2981.sol"; import "../utils/AddressSet.sol"; import "../utils/UInt256Set.sol"; import "./...
commonURIOwners[uriId]==address(0)||commonURIOwners[uriId]==msg.sender||_isController(msg.sender),"Only the owner can set the URI"
13,555
commonURIOwners[uriId]==address(0)||commonURIOwners[uriId]==msg.sender||_isController(msg.sender)
"Only the owner can set the URI"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; // the erc1155 base contract - the openzeppelin erc1155 import "../token/ERC1155.sol"; import "../royalties/ERC2981.sol"; import "../utils/AddressSet.sol"; import "../utils/UInt256Set.sol"; import "./...
uriOwners[tokenHash]==address(0)||uriOwners[tokenHash]==msg.sender||_isController(msg.sender),"Only the owner can set the URI"
13,555
uriOwners[tokenHash]==address(0)||uriOwners[tokenHash]==msg.sender||_isController(msg.sender)
"Roles: caller does not have the OPERATOR role"
pragma solidity ^0.6.0; contract Roles is AccessControl { bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR"); constructor () public { } modifier onlyOperator() { require(<FILL_ME>) _; } }
hasRole(OPERATOR_ROLE,_msgSender()),"Roles: caller does not have the OPERATOR role"
13,586
hasRole(OPERATOR_ROLE,_msgSender())
"Clipper/not-authorized"
// SPDX-License-Identifier: AGPL-3.0-or-later /// clip.sol -- Dai auction module 2.0 // Copyright (C) 2020-2021 Maker Ecosystem Growth Holdings, INC. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Fre...
wards[msg.sender]==1,"Clipper/not-authorized"
13,615
wards[msg.sender]==1
"Clipper/not-running-auction"
// SPDX-License-Identifier: AGPL-3.0-or-later /// clip.sol -- Dai auction module 2.0 // Copyright (C) 2020-2021 Maker Ecosystem Growth Holdings, INC. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published // by the Fre...
sales[id].usr!=address(0),"Clipper/not-running-auction"
13,615
sales[id].usr!=address(0)
"Initializable: Contract instance has already been initialized"
pragma solidity 0.5.12; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to depl...
initializing||isConstructor()||!initialized,"Initializable: Contract instance has already been initialized"
13,651
initializing||isConstructor()||!initialized
"SygnumToken: Account must not be frozen."
/** * @title SygnumToken * @author Connor Howe <connor.howe@sygnum.com> * @notice ERC20 token with additional features. */ pragma solidity 0.5.12; contract SygnumToken is ERC20Snapshot, ERC20SygnumDetailed, ERC20Pausable, ERC20Mintable, ERC20Whitelist, ERC20Tradeable, ERC20Blockable, ERC20Bur...
!isFrozen(msg.sender),"SygnumToken: Account must not be frozen."
13,671
!isFrozen(msg.sender)
"SygnumToken: Account must not be frozen if system calling."
/** * @title SygnumToken * @author Connor Howe <connor.howe@sygnum.com> * @notice ERC20 token with additional features. */ pragma solidity 0.5.12; contract SygnumToken is ERC20Snapshot, ERC20SygnumDetailed, ERC20Pausable, ERC20Mintable, ERC20Whitelist, ERC20Tradeable, ERC20Blockable, ERC20Bur...
!isFrozen(_account),"SygnumToken: Account must not be frozen if system calling."
13,671
!isFrozen(_account)
"Phase2Pool::recoverERC20: You must possess the recover role to recover erc20"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.s...
hasRole(RECOVER_ROLE,_msgSender()),"Phase2Pool::recoverERC20: You must possess the recover role to recover erc20"
13,826
hasRole(RECOVER_ROLE,_msgSender())
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
!landManagement.paused()
13,830
!landManagement.paused()
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
landManagement.paused()
13,830
landManagement.paused()
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
landManagement.ethLandSaleOpen()
13,830
landManagement.ethLandSaleOpen()
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
landManagement.isUnicornContract(msg.sender)
13,830
landManagement.isUnicornContract(msg.sender)
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
landManagement.presaleOpen()
13,830
landManagement.presaleOpen()
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
balances[_to].add(_value)<=userRank.getUserLandLimit(_to)
13,830
balances[_to].add(_value)<=userRank.getUserLandLimit(_to)
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
totalSupply_.add(_amount)<=MAX_SUPPLY
13,830
totalSupply_.add(_amount)<=MAX_SUPPLY
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
balances[_to].add(_amount)<=userRank.getUserLandLimit(_to)
13,830
balances[_to].add(_amount)<=userRank.getUserLandLimit(_to)
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
gardeners[_gardenerId].exists
13,830
gardeners[_gardenerId].exists
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
candyToken.transferFrom(_owner,this,gardeners[_gardenerId].price.mul(_count))
13,830
candyToken.transferFrom(_owner,this,gardeners[_gardenerId].price.mul(_count))
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
allowedFuncs[bytesToBytes4(_extraData)]
13,830
allowedFuncs[bytesToBytes4(_extraData)]
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
address(this).call(_extraData)
13,830
address(this).call(_extraData)
null
pragma solidity 0.4.21; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint25...
candyToken.balanceOf(this)>0
13,830
candyToken.balanceOf(this)>0
null
pragma solidity 0.5.7; // S E B A - For the New Economy // // https://www.seba.swiss/ // 0.05 // 0.10 // 0.25 // 0.50 // 1 // 2 // 4 // 8 // 16 // 32 /** * @title SafeMath * @dev Math operations with safety checks that thr...
balanceOf[msg.sender]>=value
13,843
balanceOf[msg.sender]>=value
"only a signer can call in MultiSigTools"
pragma solidity >=0.4.21 <0.6.0; contract MultiSigInterface{ function update_and_check_reach_majority(uint64 id, string memory name, bytes32 hash, address sender) public returns (bool); function is_signer(address addr) public view returns(bool); } contract MultiSigTools{ MultiSigInterface public multisig_co...
multisig_contract.is_signer(msg.sender),"only a signer can call in MultiSigTools"
13,882
multisig_contract.is_signer(msg.sender)
"not a trusted issuer"
pragma solidity >=0.4.21 <0.6.0; contract MultiSigInterface{ function update_and_check_reach_majority(uint64 id, string memory name, bytes32 hash, address sender) public returns (bool); function is_signer(address addr) public view returns(bool); } contract MultiSigTools{ MultiSigInterface public multisig_co...
list.is_trusted(addr),"not a trusted issuer"
13,882
list.is_trusted(addr)
"auction settled already"
pragma solidity >=0.4.21 <0.6.0; contract MultiSigInterface{ function update_and_check_reach_majority(uint64 id, string memory name, bytes32 hash, address sender) public returns (bool); function is_signer(address addr) public view returns(bool); } contract MultiSigTools{ MultiSigInterface public multisig_co...
!is_auction_settled,"auction settled already"
13,882
!is_auction_settled
"SOS: Max mint amount per wallet exceeded."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721Expand.sol"; contract SOS is ERC721Expand, Ownable, ReentrancyGuard { string public baseURI; uint256 public constant PRICE =...
numberMinted(msg.sender)+amount<=maxMint,"SOS: Max mint amount per wallet exceeded."
13,917
numberMinted(msg.sender)+amount<=maxMint
"SOS: Max supply exceeded."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721Expand.sol"; contract SOS is ERC721Expand, Ownable, ReentrancyGuard { string public baseURI; uint256 public constant PRICE =...
totalSupply()+amount<=collectionSize,"SOS: Max supply exceeded."
13,917
totalSupply()+amount<=collectionSize
"Caller is not minter"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeM...
canMint(msgSender()),"Caller is not minter"
13,951
canMint(msgSender())
'order'
pragma solidity >=0.4.24 <0.6.0; contract SimpleMultiSig { // EIP712 Precomputed hashes: // keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract,bytes32 salt)") bytes32 constant EIP712DOMAINTYPE_HASH = 0xd87cd6ef79d4e2b95e15ce8abf732db51ec771f1ca2edccf22a46c729ac56472; // ke...
owners_[i]>lastAdd,'order'
13,992
owners_[i]>lastAdd
null
pragma solidity ^0.4.24; contract Audit { struct Proof { uint level; // Audit level uint insertedBlock; // Audit's block bytes32 ipfsHash; // IPFS dag-cbor proof address auditedBy; // Audited by address } event AttachedEvidence(address indexed auditorAddr, bytes32 indexed codeHa...
auditedContracts[auditor][_codeHash].insertedBlock==0
14,001
auditedContracts[auditor][_codeHash].insertedBlock==0
null
pragma solidity ^0.4.24; contract Audit { struct Proof { uint level; // Audit level uint insertedBlock; // Audit's block bytes32 ipfsHash; // IPFS dag-cbor proof address auditedBy; // Audited by address } event AttachedEvidence(address indexed auditorAddr, bytes32 indexed codeHa...
auditedContracts[auditor][_codeHash].insertedBlock!=0
14,001
auditedContracts[auditor][_codeHash].insertedBlock!=0
"Account is already pauser"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; abstract contract Pauser is Ownable, Pausable { mapping(address => bool) public pausers; event PauserAdded(address account); event Paus...
!isPauser(account),"Account is already pauser"
14,027
!isPauser(account)
"Account is not pauser"
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; abstract contract Pauser is Ownable, Pausable { mapping(address => bool) public pausers; event PauserAdded(address account); event Paus...
isPauser(account),"Account is not pauser"
14,027
isPauser(account)
"ownership failed"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./FXY.sol"; contract Staker is Ownable, IERC721Receiver { mapping (uint ...
ownership[tokenId]==_msgSender(),"ownership failed"
14,041
ownership[tokenId]==_msgSender()
"not allowed"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./FXY.sol"; contract Staker is Ownable, IERC721Receiver { mapping (uint ...
address(NFT)==operator,"not allowed"
14,041
address(NFT)==operator
"Already Claimed"
pragma solidity ^0.5.11; contract ERC20Interface{ //using SafeMath for uint256; function transfer(address _address, uint _value) public returns (bool success){} function balanceOf(address _address)view public returns(uint); function transferFrom(address _from, address _receiver, uin...
check()==false,"Already Claimed"
14,049
check()==false
'All tokens aloted has been completely claimed'
pragma solidity ^0.5.11; contract ERC20Interface{ //using SafeMath for uint256; function transfer(address _address, uint _value) public returns (bool success){} function balanceOf(address _address)view public returns(uint); function transferFrom(address _from, address _receiver, uin...
token.allowance(rewardpool,address(this))>=amount,'All tokens aloted has been completely claimed'
14,049
token.allowance(rewardpool,address(this))>=amount
"Implementation not set"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "./Proxy.sol"; /** * @title BaseUpgradeabilityProxy * @dev This contract implements a proxy that allows to change the * implementation address to which it will delegate. * Such a...
AddressUpgradeable.isContract(newImplementation),"Implementation not set"
14,051
AddressUpgradeable.isContract(newImplementation)
"exceeds max Sophias"
// contracts/sophiafaces.sol // SPDX-License-Identifier: MIT // ___. .__ __ _____ // \_ |__ | | ____ ____ | | ___/ ____\____ ____ ____ ______ // | __ \| | / _ \_/ ___\| |/ /\ __\\__ \ _/ ___\/ __ \ / ___/ // | \_\ \ |_( <_> ) \___| ...
supply+numfaces<1001,"exceeds max Sophias"
14,080
supply+numfaces<1001
null
// contracts/sophiafaces.sol // SPDX-License-Identifier: MIT // ___. .__ __ _____ // \_ |__ | | ____ ____ | | ___/ ____\____ ____ ____ ______ // | __ \| | / _ \_/ ___\| |/ /\ __\\__ \ _/ ___\/ __ \ / ___/ // | \_\ \ |_( <_> ) \___| ...
payable(msg.sender).send(address(this).balance)
14,080
payable(msg.sender).send(address(this).balance)
"PROJECT_ALREADY_SETUP"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToMaxTokenId[projectId_]==0,"PROJECT_ALREADY_SETUP"
14,136
projectToMaxTokenId[projectId_]==0
"EMPTY_BASE_URI"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
bytes(baseURI_).length>0,"EMPTY_BASE_URI"
14,136
bytes(baseURI_).length>0
"INVALID_PROJECT"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToMaxTokenId[projectId_]>0,"INVALID_PROJECT"
14,136
projectToMaxTokenId[projectId_]>0
"MAX_SUPPLY"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToCurrentTokenId[projectId_].add(amount_)<=projectToMaxTokenId[projectId_],"MAX_SUPPLY"
14,136
projectToCurrentTokenId[projectId_].add(amount_)<=projectToMaxTokenId[projectId_]
"PREMINT_DISABLED"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToPreMint[projectId_],"PREMINT_DISABLED"
14,136
projectToPreMint[projectId_]
"URI_ALREADY_SET"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
bytes(_tokenURIs[tokenId_]).length==0,"URI_ALREADY_SET"
14,136
bytes(_tokenURIs[tokenId_]).length==0
"URI_EMPTY"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
bytes(uri_).length>0,"URI_EMPTY"
14,136
bytes(uri_).length>0
"PREMINT_ENABLED"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToPreMint[projectId_]==false,"PREMINT_ENABLED"
14,136
projectToPreMint[projectId_]==false
"MAX_SUPPLY_MINTED"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./interfaces/IScorpioNFT.sol"; // Proxy contracts for OpenSea compatibility contract OwnableDelegateProxy {} contract ProxyRegistry { m...
projectToCurrentTokenId[projectId_]<projectToMaxTokenId[projectId_],"MAX_SUPPLY_MINTED"
14,136
projectToCurrentTokenId[projectId_]<projectToMaxTokenId[projectId_]
"IbETHRouter: receive less ETH than amountETHmin"
pragma solidity =0.5.16; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { } function safeTransfer( ...
amounts[1]>=amountETHOutMin,"IbETHRouter: receive less ETH than amountETHmin"
14,197
amounts[1]>=amountETHOutMin
"Address has already been initialized"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./BaseUpgradeablePausable.sol"; import "../../interfaces/IGoldfinchConfig.sol"; import "./ConfigOptions.sol"; /** * @title GoldfinchConfig * @notice This contract stores mappings of useful "protocol config state", giving...
addresses[addressIndex]==address(0),"Address has already been initialized"
14,254
addresses[addressIndex]==address(0)
"Already initialized values"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./BaseUpgradeablePausable.sol"; import "../../interfaces/IGoldfinchConfig.sol"; import "./ConfigOptions.sol"; /** * @title GoldfinchConfig * @notice This contract stores mappings of useful "protocol config state", giving...
!valuesInitialized,"Already initialized values"
14,254
!valuesInitialized
"Must have go-lister role to perform this action"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./BaseUpgradeablePausable.sol"; import "../../interfaces/IGoldfinchConfig.sol"; import "./ConfigOptions.sol"; /** * @title GoldfinchConfig * @notice This contract stores mappings of useful "protocol config state", giving...
hasRole(GO_LISTER_ROLE,_msgSender()),"Must have go-lister role to perform this action"
14,254
hasRole(GO_LISTER_ROLE,_msgSender())
"Contract locked"
//SPDX-License-Identifier: Unlicensed /*** * ███████ ██ ██ ███████ ██████ ██ ██ ██████ ███ ██ ███████ ██████ ███████ ████████ ███████ * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ * █████ ██ ...
!locked&&getBlockTimestamp()>unlockTime,"Contract locked"
14,448
!locked&&getBlockTimestamp()>unlockTime
"ERC721: not owner of token"
//SPDX-License-Identifier: Unlicensed /*** * ███████ ██ ██ ███████ ██████ ██ ██ ██████ ███ ██ ███████ ██████ ███████ ████████ ███████ * ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ * █████ ██ ...
erc721.ownerOf(_tokenId)==msg.sender,"ERC721: not owner of token"
14,448
erc721.ownerOf(_tokenId)==msg.sender
"MinterRole: caller does not have the Minter role"
pragma solidity ^0.5.0; contract MinterRole is Context { using Roles for Roles.Role; event MinterAdded(address indexed account); event MinterRemoved(address indexed account); Roles.Role private _minters; constructor () internal { } modifier onlyMinter() { require(<FILL_ME>) ...
isMinter(_msgSender()),"MinterRole: caller does not have the Minter role"
14,508
isMinter(_msgSender())
"Ownable: caller is not the owner"
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
_msgSender()==m_Owner,"Ownable: caller is not the owner"
14,510
_msgSender()==m_Owner
null
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
_msgSender()==m_WebThree
14,510
_msgSender()==m_WebThree
null
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
m_TotalAlloc.add(_alloc)<=6500
14,510
m_TotalAlloc.add(_alloc)<=6500
null
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
m_TotalAlloc.add(_alloc).sub(_priorAlloc)<=6500
14,510
m_TotalAlloc.add(_alloc).sub(_priorAlloc)<=6500
"Unauthorized"
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
_msgSender()==External.owner()||_msgSender()==m_WebThree,"Unauthorized"
14,510
_msgSender()==External.owner()||_msgSender()==m_WebThree
null
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
!m_Blacklist[_sender]&&!m_Blacklist[_recipient]&&!m_Blacklist[tx.origin]
14,510
!m_Blacklist[_sender]&&!m_Blacklist[_recipient]&&!m_Blacklist[tx.origin]
"Beep Beep Boop, You're a piece of poop"
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
!AntiBot.scanAddress(_recipient,m_UniswapV2Pair,tx.origin),"Beep Beep Boop, You're a piece of poop"
14,510
!AntiBot.scanAddress(_recipient,m_UniswapV2Pair,tx.origin)
"Beep Beep Boop, You're a piece of poop"
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
!AntiBot.scanAddress(_sender,m_UniswapV2Pair,tx.origin),"Beep Beep Boop, You're a piece of poop"
14,510
!AntiBot.scanAddress(_sender,m_UniswapV2Pair,tx.origin)
null
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
balanceOf(_recipient)<m_WalletLimit
14,510
balanceOf(_recipient)<m_WalletLimit
"Liquidity already added."
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.mediu...
!m_Liquidity,"Liquidity already added."
14,510
!m_Liquidity
"Invalid land provided"
/* solhint-disable not-rely-on-time, func-order */ pragma solidity 0.5.9; import "../../contracts_common/src/Libraries/SafeMathWithRequire.sol"; import "../Land.sol"; import "../../contracts_common/src/Interfaces/ERC20.sol"; import "../../contracts_common/src/BaseWithStorage/MetaTransactionReceiver.sol"; import "../../...
_verify(proof,leaf),"Invalid land provided"
14,535
_verify(proof,leaf)
"commision transfer failed"
/* solhint-disable not-rely-on-time, func-order */ pragma solidity 0.5.9; import "../../contracts_common/src/Libraries/SigUtil.sol"; import "../../contracts_common/src/Libraries/SafeMathWithRequire.sol"; import "../../contracts_common/src/Interfaces/ERC20.sol"; import "../../contracts_common/src/BaseWithStorage/Admin.s...
token.transferFrom(buyer,referrer,commission),"commision transfer failed"
14,536
token.transferFrom(buyer,referrer,commission)
"payment transfer failed"
/* solhint-disable not-rely-on-time, func-order */ pragma solidity 0.5.9; import "../../contracts_common/src/Libraries/SigUtil.sol"; import "../../contracts_common/src/Libraries/SafeMathWithRequire.sol"; import "../../contracts_common/src/Interfaces/ERC20.sol"; import "../../contracts_common/src/BaseWithStorage/Admin.s...
token.transferFrom(buyer,destination,amountForDestination),"payment transfer failed"
14,536
token.transferFrom(buyer,destination,amountForDestination)
null
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
checkSuccess()
14,575
checkSuccess()
"INVALID_STATE"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
states[channelId]==ChannelLibrary.State.Unknown,"INVALID_STATE"
14,575
states[channelId]==ChannelLibrary.State.Unknown
"INVALID_CHANNEL"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
channel.isValid(now),"INVALID_CHANNEL"
14,575
channel.isValid(now)
"INVALID_STATE"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
states[channelId]==ChannelLibrary.State.Active,"INVALID_STATE"
14,575
states[channelId]==ChannelLibrary.State.Active
"NOT_SIGNED_BY_VALIDATORS"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
channel.isSignedBySupermajority(hashToSign,signatures),"NOT_SIGNED_BY_VALIDATORS"
14,575
channel.isSignedBySupermajority(hashToSign,signatures)
"BALANCELEAF_NOT_FOUND"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
MerkleProof.isContained(balanceLeaf,proof,stateRoot),"BALANCELEAF_NOT_FOUND"
14,575
MerkleProof.isContained(balanceLeaf,proof,stateRoot)
"WITHDRAWING_MORE_THAN_CHANNEL"
pragma solidity ^0.5.6; pragma experimental ABIEncoderV2; library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { } function div(uint a, uint b) internal pure returns (uint) { } function sub(uint a, uint b) internal pure returns (uint) { } function add(uint a,...
withdrawn[channelId]<=channel.tokenAmount,"WITHDRAWING_MORE_THAN_CHANNEL"
14,575
withdrawn[channelId]<=channel.tokenAmount
"A buyout was already completed"
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; abstract contract AlbumBuyoutManager { event BuyoutSet(address buyer, uint256 cost, uint256 end); event Buyout(address buyer, uint256 cost); event BuyoutPortionClaimed(address claimer, uint256 amount, uint256 owed); event MinReservePriceSet(ui...
!bought,"A buyout was already completed"
14,682
!bought
"collectable-dust::token-is-part-of-the-protocol"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/u...
!_protocolTokens.contains(_token),"collectable-dust::token-is-part-of-the-protocol"
14,730
!_protocolTokens.contains(_token)
"collectable-dust::token-not-part-of-the-protocol"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../interfaces/u...
_protocolTokens.contains(_token),"collectable-dust::token-not-part-of-the-protocol"
14,730
_protocolTokens.contains(_token)
"price must be a multiple of 100 wei"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
price%100==0,"price must be a multiple of 100 wei"
14,764
price%100==0
"processor must be set"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
address(processor)!=address(0),"processor must be set"
14,764
address(processor)!=address(0)
"sender not approved to revoke"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
canRevoke[msg.sender],"sender not approved to revoke"
14,764
canRevoke[msg.sender]
"must not be revoked already"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
!p.revoked,"must not be revoked already"
14,764
!p.revoked
"must be in lockup period"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
inLockupPeriod(p),"must be in lockup period"
14,764
inLockupPeriod(p)
"can't activate purchase"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
canActivatePurchase(purchaseID),"can't activate purchase"
14,764
canActivatePurchase(purchaseID)
"only some people can lockup cards"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
canLockup[msg.sender],"only some people can lockup cards"
14,764
canLockup[msg.sender]
"cannot callback before commit"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
uint64(block.number)>p.commit,"cannot callback before commit"
14,764
uint64(block.number)>p.commit
"must recommit"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
p.commit.add(uint64(256))>=block.number,"must recommit"
14,764
p.commit.add(uint64(256))>=block.number
"blockhash must not be zero"
pragma solidity ^0.5.0; interface IProcessor { function processPayment(address user, uint cost, uint items, address referrer) external payable returns (uint id); } contract Pack { enum Type { Rare, Epic, Legendary, Shiny } } contract Ownable { address payable public owner; constructor() publ...
uint(bhash)!=0,"blockhash must not be zero"
14,764
uint(bhash)!=0
null
/** * @title CoinsdomCoin Contract */ contract CoinsdomCoin is MintableToken, Pausable { using SafeMath for uint256; string public name = 'Coinsdom'; string public symbol = 'CSD'; uint256 public decimals = 18; mapping (address => bool) public tokenFallbackWhiteList; /** * @dev C...
_isContract(_address)
14,769
_isContract(_address)
null
/** * @title CoinsdomCoin Contract */ contract CoinsdomCoin is MintableToken, Pausable { using SafeMath for uint256; string public name = 'Coinsdom'; string public symbol = 'CSD'; uint256 public decimals = 18; mapping (address => bool) public tokenFallbackWhiteList; /** * @dev C...
_isContract(_receiver)
14,769
_isContract(_receiver)
null
/** * @title CoinsdomCoin Contract */ contract CoinsdomCoin is MintableToken, Pausable { using SafeMath for uint256; string public name = 'Coinsdom'; string public symbol = 'CSD'; uint256 public decimals = 18; mapping (address => bool) public tokenFallbackWhiteList; /** * @dev C...
tokenFallbackWhiteList[_receiver]
14,769
tokenFallbackWhiteList[_receiver]