comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"Sale would exceed max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzep...
totalSupply().add(_mintAmount)<=maxSupply,"Sale would exceed max supply"
394,975
totalSupply().add(_mintAmount)<=maxSupply
"Sale would exceed max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzep...
totalSupply().add(_numKitties)<=maxSupply,"Sale would exceed max supply"
394,975
totalSupply().add(_numKitties)<=maxSupply
"Not the owner of this meebit."
// contracts/LootMeebits.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LootMeebits is ERC721, Ownable { using SafeMath for uint256; using String...
meebitsContract.ownerOf(mid)==msg.sender,"Not the owner of this meebit."
395,005
meebitsContract.ownerOf(mid)==msg.sender
"Already Minted!"
// contracts/LootMeebits.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LootMeebits is ERC721, Ownable { using SafeMath for uint256; using String...
!_exists(mid),"Already Minted!"
395,005
!_exists(mid)
"Already Minted!"
// contracts/LootMeebits.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LootMeebits is ERC721, Ownable { using SafeMath for uint256; using String...
meebitsLoot[mid]==0,"Already Minted!"
395,005
meebitsLoot[mid]==0
"quantity is so big"
// contracts/LootMeebits.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LootMeebits is ERC721, Ownable { using SafeMath for uint256; using String...
quantity<=(TOKEN_LIMIT.sub(numTokens)),"quantity is so big"
395,005
quantity<=(TOKEN_LIMIT.sub(numTokens))
"Ether value sent is not correct"
// contracts/LootMeebits.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract LootMeebits is ERC721, Ownable { using SafeMath for uint256; using String...
publicPrice.mul(quantity)<=msg.value,"Ether value sent is not correct"
395,005
publicPrice.mul(quantity)<=msg.value
"Total Free supply exceeded!"
pragma solidity ^0.8.0; contract Noodles is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; //NFT Parameters string private baseURI; string private baseExtension = ".json"; string private notRevealedUri; uint256 public cost; uint256 public maxMintAmount; bo...
supply+_mintAmount<=836,"Total Free supply exceeded!"
395,140
supply+_mintAmount<=836
"Max NFTs exceeded"
pragma solidity ^0.8.0; contract Noodles is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; //NFT Parameters string private baseURI; string private baseExtension = ".json"; string private notRevealedUri; uint256 public cost; uint256 public maxMintAmount; bo...
addressFreeMintsAvailable[msg.sender]>=_mintAmount,"Max NFTs exceeded"
395,140
addressFreeMintsAvailable[msg.sender]>=_mintAmount
"Total whitelist supply exceeded!"
pragma solidity ^0.8.0; contract Noodles is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; //NFT Parameters string private baseURI; string private baseExtension = ".json"; string private notRevealedUri; uint256 public cost; uint256 public maxMintAmount; bo...
supply+_mintAmount<=4436,"Total whitelist supply exceeded!"
395,140
supply+_mintAmount<=4436
"Max NFTs exceeded"
pragma solidity ^0.8.0; contract Noodles is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; //NFT Parameters string private baseURI; string private baseExtension = ".json"; string private notRevealedUri; uint256 public cost; uint256 public maxMintAmount; bo...
addressWLMintsAvailable[msg.sender]>=_mintAmount,"Max NFTs exceeded"
395,140
addressWLMintsAvailable[msg.sender]>=_mintAmount
null
pragma solidity ^0.8.0; contract Noodles is ERC721Enumerable, Ownable { using Strings for uint256; using SafeMath for uint256; //NFT Parameters string private baseURI; string private baseExtension = ".json"; string private notRevealedUri; uint256 public cost; uint256 public maxMintAmount; bo...
supply+_mintAmount<=5555
395,140
supply+_mintAmount<=5555
null
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, u...
endTimeUnixTimestamp.sub(startTimeUnixTimestamp)>=totalDurationInDays
395,238
endTimeUnixTimestamp.sub(startTimeUnixTimestamp)>=totalDurationInDays
null
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, u...
usersBuyingInformation[user].ethersToBeSent>0
395,238
usersBuyingInformation[user].ethersToBeSent>0
null
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, u...
usersBuyingInformation[users[i]].ethersToBeSent>0
395,238
usersBuyingInformation[users[i]].ethersToBeSent>0
"WHITELIST_LIMIT_EXCEED"
@v4.3.2 pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0....
addressMintedBalance[msg.sender]+_qty<=nftPerAddressLimit,"WHITELIST_LIMIT_EXCEED"
395,402
addressMintedBalance[msg.sender]+_qty<=nftPerAddressLimit
"NO_MORE_SUPPLY"
@v4.3.2 pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0....
uint16(_qty)+nonce-1<=totalSupply,"NO_MORE_SUPPLY"
395,402
uint16(_qty)+nonce-1<=totalSupply
"NO_MORE_SUPPLY"
@v4.3.2 pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0....
uint16(_qty)+nonce-1<=earlySupply,"NO_MORE_SUPPLY"
395,402
uint16(_qty)+nonce-1<=earlySupply
"Not in window"
pragma solidity 0.4.24; import "openzeppelin-eth/contracts/math/SafeMath.sol"; import "openzeppelin-eth/contracts/ownership/Ownable.sol"; import "./lib/SafeMathInt.sol"; import "./lib/UInt256Lib.sol"; import "./UFragments.sol"; interface IOracle { function getData() external returns (uint256, bool); } /** * @title...
inRebaseWindow(),"Not in window"
395,531
inRebaseWindow()
"Not within interval"
pragma solidity 0.4.24; import "openzeppelin-eth/contracts/math/SafeMath.sol"; import "openzeppelin-eth/contracts/ownership/Ownable.sol"; import "./lib/SafeMathInt.sol"; import "./lib/UInt256Lib.sol"; import "./UFragments.sol"; interface IOracle { function getData() external returns (uint256, bool); } /** * @title...
lastRebaseTimestampSec.add(minRebaseTimeIntervalSec)<now,"Not within interval"
395,531
lastRebaseTimestampSec.add(minRebaseTimeIntervalSec)<now
"Sent ether value is incorrect"
pragma solidity ^0.8.0; contract SatoSamurais is ERC721Enumerable, Ownable { using SafeMath for uint256; using Address for address; using Strings for uint256; uint256 public constant NFT_PRICE = 50000000000000000; // 0.05 ETH uint public constant MAX_NFT_PURCHASE = 10; uint256 public MAX_SUPPLY = 100...
NFT_PRICE.mul(numberOfTokens)==msg.value,"Sent ether value is incorrect"
395,548
NFT_PRICE.mul(numberOfTokens)==msg.value
"Invalid Holder"
pragma solidity ^0.5.7; /** * @title The GXToken Governance Contract * @author NvestTechnologies * @notice The GXToken Governance Contract is the core contract governing the allocation and withdrawals through a simple multi-sig mechanism. */ /** * Copyright ©2019 Nvest Technologies. All rights reserved....
holders[_holder].valid==true,"Invalid Holder"
395,567
holders[_holder].valid==true
"All allocated supply is already taken/transfered"
pragma solidity ^0.5.7; /** * @title The GXToken Governance Contract * @author NvestTechnologies * @notice The GXToken Governance Contract is the core contract governing the allocation and withdrawals through a simple multi-sig mechanism. */ /** * Copyright ©2019 Nvest Technologies. All rights reserved....
holders[_holder].current_volume>0,"All allocated supply is already taken/transfered"
395,567
holders[_holder].current_volume>0
null
pragma solidity ^0.5.7; /** * @title The GXToken Governance Contract * @author NvestTechnologies * @notice The GXToken Governance Contract is the core contract governing the allocation and withdrawals through a simple multi-sig mechanism. */ /** * Copyright ©2019 Nvest Technologies. All rights reserved....
token.balanceOf(_holder)>=_volume
395,567
token.balanceOf(_holder)>=_volume
"Already voted"
pragma solidity ^0.5.7; /** * @title The GXToken Governance Contract * @author NvestTechnologies * @notice The GXToken Governance Contract is the core contract governing the allocation and withdrawals through a simple multi-sig mechanism. */ /** * Copyright ©2019 Nvest Technologies. All rights reserved....
holders[_holder].voting_validator[msg.sender]==false,"Already voted"
395,567
holders[_holder].voting_validator[msg.sender]==false
"Please agree upon the same volume"
pragma solidity ^0.5.7; /** * @title The GXToken Governance Contract * @author NvestTechnologies * @notice The GXToken Governance Contract is the core contract governing the allocation and withdrawals through a simple multi-sig mechanism. */ /** * Copyright ©2019 Nvest Technologies. All rights reserved....
holders[_holder].transfer_volume==_volume,"Please agree upon the same volume"
395,567
holders[_holder].transfer_volume==_volume
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC72...
payable(mainWallet).send((contract_balance*500)/1000)
395,593
payable(mainWallet).send((contract_balance*500)/1000)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC72...
payable(mainWallet).send(contract_balance)
395,593
payable(mainWallet).send(contract_balance)
"Not enough inventory"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC72...
totalMinted+_batchCount+burnCount<=totalCount,"Not enough inventory"
395,593
totalMinted+_batchCount+burnCount<=totalCount
null
/** *Submitted for verification at Etherscan.io on 2021-10-06 */ // SPDX-License-Identifier: MIT pragma solidity ^0.5.0; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view ...
!paused||msg.sender==owner
395,616
!paused||msg.sender==owner
"too early"
pragma solidity ^0.5.8; /** * @title The standard ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address, uint256) external returns (bool); function approve(address, uint256) external returns (bool); function transferFrom(address, address,...
proposals[index].time<now,"too early"
395,658
proposals[index].time<now
null
pragma solidity ^0.5.8; /** * @title The standard ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address, uint256) external returns (bool); function approve(address, uint256) external returns (bool); function transferFrom(address, address,...
token.transfer(destination,value)
395,658
token.transfer(destination,value)
"transfer already closed"
pragma solidity ^0.5.8; /** * @title The standard ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address, uint256) external returns (bool); function approve(address, uint256) external returns (bool); function transferFrom(address, address,...
!proposals[index].closed,"transfer already closed"
395,658
!proposals[index].closed
"destination mismatched"
pragma solidity ^0.5.8; /** * @title The standard ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address, uint256) external returns (bool); function approve(address, uint256) external returns (bool); function transferFrom(address, address,...
proposals[index].destination==destination,"destination mismatched"
395,658
proposals[index].destination==destination
"value mismatched"
pragma solidity ^0.5.8; /** * @title The standard ERC20 interface * @dev see https://eips.ethereum.org/EIPS/eip-20 */ interface IERC20 { function transfer(address, uint256) external returns (bool); function approve(address, uint256) external returns (bool); function transferFrom(address, address,...
proposals[index].value==value,"value mismatched"
395,658
proposals[index].value==value
"Max supply exceeded"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "contracts/utils/Counters16.sol"; impor...
_totalSupply+supply<=_maxSupply,"Max supply exceeded"
395,680
_totalSupply+supply<=_maxSupply
"Invalid proof"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "contracts/utils/Counters16.sol"; impor...
MerkleProof.verify(proof,_root,leaf),"Invalid proof"
395,680
MerkleProof.verify(proof,_root,leaf)
null
contract BaseToken is MintableToken, PausableToken { string public name; // solium-disable-line uppercase string public symbol; // solium-disable-line uppercase uint8 public constant decimals = 0; // solium-disable-line uppercase uint public cap; mapping(address => uint256) dividendBalanceOf; uint256 ...
isTokenHolder(msg.sender)
395,838
isTokenHolder(msg.sender)
null
contract BaseIPO is Ownable { using SafeMath for uint256; address wallet; bool public success = false; bool public isFinalized = false; enum Result {InProgress, Success, Failure} Result public result = Result.InProgress; enum State {Closed, IPO} State public state = State.Closed; uint public ...
!token.capReached()
395,839
!token.capReached()
null
contract BaseIPO is Ownable { using SafeMath for uint256; address wallet; bool public success = false; bool public isFinalized = false; enum Result {InProgress, Success, Failure} Result public result = Result.InProgress; enum State {Closed, IPO} State public state = State.Closed; uint public ...
!isIpoPeriodOver()
395,839
!isIpoPeriodOver()
null
contract BaseIPO is Ownable { using SafeMath for uint256; address wallet; bool public success = false; bool public isFinalized = false; enum Result {InProgress, Success, Failure} Result public result = Result.InProgress; enum State {Closed, IPO} State public state = State.Closed; uint public ...
token.isTokenHolder(msg.sender)
395,839
token.isTokenHolder(msg.sender)
'create binary executor not authorized'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
isExecutorAuthorized(address(executor)),'create binary executor not authorized'
395,851
isExecutorAuthorized(address(executor))
'create binary strategy not authorized'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
isVotingPowerStrategyAuthorized(address(strategy)),'create binary strategy not authorized'
395,851
isVotingPowerStrategyAuthorized(address(strategy))
'validate proposal creation invalid'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
IProposalValidator(address(executor)).validateBinaryProposalCreation(strategy,msg.sender,startTime,endTime,_daoOperator),'validate proposal creation invalid'
395,851
IProposalValidator(address(executor)).validateBinaryProposalCreation(strategy,msg.sender,startTime,endTime,_daoOperator)
'validate proposal creation invalid'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
IProposalValidator(address(executor)).validateGenericProposalCreation(strategy,msg.sender,startTime,endTime,options,_daoOperator),'validate proposal creation invalid'
395,851
IProposalValidator(address(executor)).validateGenericProposalCreation(strategy,msg.sender,startTime,endTime,options,_daoOperator)
'invalid state to queue'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
getProposalState(proposalId)==ProposalState.Succeeded,'invalid state to queue'
395,851
getProposalState(proposalId)==ProposalState.Succeeded
'only queued proposals'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
getProposalState(proposalId)==ProposalState.Queued,'only queued proposals'
395,851
getProposalState(proposalId)==ProposalState.Queued
'invalid voting power strategy'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
address(proposal.strategy)==msg.sender,'invalid voting power strategy'
395,851
address(proposal.strategy)==msg.sender
'duplicated action'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
!executor.isActionQueued(keccak256(abi.encode(target,value,signature,callData,executionTime,withDelegatecall))),'duplicated action'
395,851
!executor.isActionQueued(keccak256(abi.encode(target,value,signature,callData,executionTime,withDelegatecall)))
'voting closed'
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol'; import {PermissionAdmin} from '@kyber.network/utils-sc/contracts/PermissionAdmin.sol'; import {IKyberGovernance} from '../interfaces/governance/IKyberGovernance.sol'; impor...
getProposalState(proposalId)==ProposalState.Active,'voting closed'
395,851
getProposalState(proposalId)==ProposalState.Active
"Cooldown in effect"
pragma solidity >=0.7.0 <0.8.0; // SPDX-License-Identifier: Unlicensed abstract contract Context { function _msgSender() internal view virtual returns (address) { } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view retu...
_lastTX[tx.origin]<=(block.timestamp+30seconds),"Cooldown in effect"
395,888
_lastTX[tx.origin]<=(block.timestamp+30seconds)
null
pragma solidity >=0.7.0 <0.8.0; // SPDX-License-Identifier: Unlicensed abstract contract Context { function _msgSender() internal view virtual returns (address) { } } interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view retu...
balance.add(amount)<=_maxHoldings
395,888
balance.add(amount)<=_maxHoldings
"deposit milestones mismatch"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
sum.mul(milestones)==cap,"deposit milestones mismatch"
395,919
sum.mul(milestones)==cap
"not deposit client"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
_msgSender()==deposit.client,"not deposit client"
395,919
_msgSender()==deposit.client
"not deposit party"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
_msgSender()==deposit.client||_msgSender()==deposit.provider[0],"not deposit party"
395,919
_msgSender()==deposit.client||_msgSender()==deposit.provider[0]
"not deposit resolver"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
_msgSender()==deposit.resolver,"not deposit resolver"
395,919
_msgSender()==deposit.resolver
"cannot be deposit party"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
_msgSender()!=deposit.client,"cannot be deposit party"
395,919
_msgSender()!=deposit.client
"cannot be deposit party"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
_msgSender()!=deposit.provider[0],"cannot be deposit party"
395,919
_msgSender()!=deposit.provider[0]
"resolution must match deposit"
/* ██╗ ███████╗██╗ ██╗ ██║ ██╔════╝╚██╗██╔╝ ██║ █████╗ ╚███╔╝ ██║ ██╔══╝ ██╔██╗ ███████╗███████╗██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝ ██████╗ █...
clientAward.add(providerAward)==remainder.sub(resolutionFee),"resolution must match deposit"
395,919
clientAward.add(providerAward)==remainder.sub(resolutionFee)
'already added'
import "./interfaces/IHypervisor.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@uniswap/v3-core/contracts/libraries/FullMath.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/SignedSafeMath....
positions[pos].version==0,'already added'
395,944
positions[pos].version==0
'not added'
import "./interfaces/IHypervisor.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@uniswap/v3-core/contracts/libraries/FullMath.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/SignedSafeMath....
positions[pos].version!=0,'not added'
395,944
positions[pos].version!=0
"supply exceeds"
import "./interfaces/IHypervisor.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@uniswap/v3-core/contracts/libraries/FullMath.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/SignedSafeMath....
IHypervisor(pos).totalSupply()<=positions[pos].maxTotalSupply,"supply exceeds"
395,944
IHypervisor(pos).totalSupply()<=positions[pos].maxTotalSupply
'BetaBank/isPermittedByOwner'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
isPermittedCaller(_owner,msg.sender),'BetaBank/isPermittedByOwner'
395,952
isPermittedCaller(_owner,msg.sender)
'create/unauthorized'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
allowPublicCreate||msg.sender==governor,'create/unauthorized'
395,952
allowPublicCreate||msg.sender==governor
'create/underlying-not-contract'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
_underlying.isContract(),'create/underlying-not-contract'
395,952
_underlying.isContract()
'create/underlying-already-exists'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
bTokens[_underlying]==address(0),'create/underlying-already-exists'
395,952
bTokens[_underlying]==address(0)
'create/no-price'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
IBetaOracle(oracle).getAssetETHPrice(_underlying)>0,'create/no-price'
395,952
IBetaOracle(oracle).getAssetETHPrice(_underlying)>0
'open/bad-collateral'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
IBetaConfig(config).getCollFactor(_collateral)>0,'open/bad-collateral'
395,952
IBetaConfig(config).getCollFactor(_collateral)>0
'open/no-price'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
IBetaOracle(oracle).getAssetETHPrice(_collateral)>0,'open/no-price'
395,952
IBetaOracle(oracle).getAssetETHPrice(_collateral)>0
'put/too-much-collateral'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
totalCollaterals[pos.collateral]<=IBetaConfig(config).getCollMaxAmount(pos.collateral),'put/too-much-collateral'
395,952
totalCollaterals[pos.collateral]<=IBetaConfig(config).getCollMaxAmount(pos.collateral)
'liquidate/too-much-liquidation'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
debtShare<=(pos.debtShare+1)/2,'liquidate/too-much-liquidation'
395,952
debtShare<=(pos.debtShare+1)/2
'recover/not-bToken'
contract BetaBank is IBetaBank, Initializable, Pausable { using Address for address; using SafeERC20 for IERC20; event Create(address indexed underlying, address bToken); event Open(address indexed owner, uint indexed pid, address bToken, address collateral); event Borrow(address indexed owner, uint indexed p...
underlyings[_bToken]!=address(0),'recover/not-bToken'
395,952
underlyings[_bToken]!=address(0)
"there is no price data after maturity"
abstract contract UseOracle { OracleInterface internal _oracleContract; constructor(address contractAddress) public { } /// @notice Get the latest USD/ETH price and historical volatility using oracle. /// @return rateETH2USDE8 (10^-8 USD/ETH) /// @return volatilityE8 (10^-8) function ...
_oracleContract.getTimestamp(id)>timestamp,"there is no price data after maturity"
395,960
_oracleContract.getTimestamp(id)>timestamp
"Max supply exceeded!"
pragma solidity 0.8.1; //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
supply.current()+1<=maxSupply,"Max supply exceeded!"
395,986
supply.current()+1<=maxSupply
ERROR_VALUE_NOT_VALID
pragma solidity ^0.5.11; import "./SafeMath.sol"; import "./BaseToken.sol"; contract BountyTest is BaseToken { using SafeMath for uint256; string constant internal ERROR_DUPLICATE_ADDRESS = 'Reason: msg.sender and receivers can not be the same.'; // MARK: token information. string constant public name ...
balances[msg.sender]>=_value1.add(_value2).add(_fee),ERROR_VALUE_NOT_VALID
395,989
balances[msg.sender]>=_value1.add(_value2).add(_fee)
ERROR_LOCKED
pragma solidity ^0.5.11; import "./SafeMath.sol"; import "./BaseToken.sol"; contract BountyTest is BaseToken { using SafeMath for uint256; string constant internal ERROR_DUPLICATE_ADDRESS = 'Reason: msg.sender and receivers can not be the same.'; // MARK: token information. string constant public name ...
!isLocked(msg.sender,_value1.add(_value2).add(_fee)),ERROR_LOCKED
395,989
!isLocked(msg.sender,_value1.add(_value2).add(_fee))
null
/** *Submitted for verification at Etherscan.io on 2020-04-22 */ pragma solidity ^0.5.15; contract ERC20 { function totalSupply() external view returns (uint256 _totalSupply); function balanceOf(address addr_) external view returns (uint256); function transfer(address _to, uint256 _value) external ...
!isLockAddress
396,001
!isLockAddress
"NFT Per Wallet Limit Exceeds!!"
pragma solidity ^0.8.2; contract WINSANDLOSSES is ERC721, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private supply; string public uriPrefix = "ipfs://Qmb2MWfaT6i832rxrEeKEj1byPPGoQVNhk3jvPsgHXyjw7/"; string public uriSuffix = ".json"; strin...
total_nft(msg.sender)<10,"NFT Per Wallet Limit Exceeds!!"
396,068
total_nft(msg.sender)<10
null
pragma solidity^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } function div(uint256 a, uint256 b) internal pure returns (...
approvedAccount[_from]
396,085
approvedAccount[_from]
null
pragma solidity 0.5.11; contract ITokenRecipient { function tokenFallback(address from, uint value) public; } contract SafeMath { uint256 constant public MAX_UINT256 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF; function safeAdd(uint256 x, uint256 y) pure internal returns (uint256 z) {...
uint256(toAddress)!=0&&value>0
396,086
uint256(toAddress)!=0&&value>0
null
pragma solidity >=0.4.22 <0.6.0; //import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; contract LongHuContract { uint maxProfit;//最高奖池 uint maxmoneypercent; uint public contractBalance; //uint oraclizeFee; //uint oraclizeGasLimit; uint minBet; uint onoff;//游戏启用或关闭 address private ow...
codes[0]==0||codes[1]==0||codes[2]==0||codes[3]==0
396,176
codes[0]==0||codes[1]==0||codes[2]==0||codes[3]==0
null
pragma solidity >=0.4.22 <0.6.0; //import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; contract LongHuContract { uint maxProfit;//最高奖池 uint maxmoneypercent; uint public contractBalance; //uint oraclizeFee; //uint oraclizeGasLimit; uint minBet; uint onoff;//游戏启用或关闭 address private ow...
codes[0]>0
396,176
codes[0]>0
'More than one decimal encountered in string!'
pragma solidity >=0.4.22 <0.6.0; //import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; contract LongHuContract { uint maxProfit;//最高奖池 uint maxmoneypercent; uint public contractBalance; //uint oraclizeFee; //uint oraclizeGasLimit; uint minBet; uint onoff;//游戏启用或关闭 address private ow...
!decimals,'More than one decimal encountered in string!'
396,176
!decimals
"PRESALE_CLOSED"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
!saleLive&&presaleLive,"PRESALE_CLOSED"
396,178
!saleLive&&presaleLive
"EXCEED_PRIVATE"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
privateAmountMinted+tokenQuantity<=PRIVATE,"EXCEED_PRIVATE"
396,178
privateAmountMinted+tokenQuantity<=PRIVATE
"INSUFFICIENT_ETH"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
PRESALE_PRICE*tokenQuantity<=msg.value,"INSUFFICIENT_ETH"
396,178
PRESALE_PRICE*tokenQuantity<=msg.value
"DIRECT_MINT_DISALLOWED"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
matchAddresSigner(hashTransaction(msg.sender,tokenQuantity,nonce),signature),"DIRECT_MINT_DISALLOWED"
396,178
matchAddresSigner(hashTransaction(msg.sender,tokenQuantity,nonce),signature)
"ONLY_PRESALE"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
!presaleLive,"ONLY_PRESALE"
396,178
!presaleLive
"OUT_OF_STOCK"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
totalSupply()<MAX_SUPPLY_LIMIT,"OUT_OF_STOCK"
396,178
totalSupply()<MAX_SUPPLY_LIMIT
"EXCEED_PUBLIC"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
publicAmountMinted+tokenQuantity<=PUBLIC,"EXCEED_PUBLIC"
396,178
publicAmountMinted+tokenQuantity<=PUBLIC
"INSUFFICIENT_ETH"
pragma solidity ^0.8.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts//utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; contr...
LAUNCH_PRICE*tokenQuantity<=msg.value,"INSUFFICIENT_ETH"
396,178
LAUNCH_PRICE*tokenQuantity<=msg.value
null
// Dont buy this I am testing in production like Andre pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amou...
CheckUserCanSell(owner,numTokens)
396,215
CheckUserCanSell(owner,numTokens)
null
// Dont buy this I am testing in production like Andre pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amou...
getPercent(buyer)<3
396,215
getPercent(buyer)<3
null
// Dont buy this I am testing in production like Andre pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amou...
getPercentOfBuy(numTokens)<3
396,215
getPercentOfBuy(numTokens)<3
null
pragma solidity ^0.4.16; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { } function div(uint256 a, uint256 b) internal constant returns (uint256) { } function sub(uint256 a, uint256 b) internal constant returns (uint256) { } function add(uint256 a, uint2...
getLpIsWorking(500)
396,240
getLpIsWorking(500)
"duplicate"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/cryptography/ECDSA.sol"; contract OG is ERC721 { usin...
!purchased[to],"duplicate"
396,259
!purchased[to]
"BALANCE ZERO"
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; interface IPandaNFT { ...
pandaNFT.balanceOf(msg.sender)>0,"BALANCE ZERO"
396,329
pandaNFT.balanceOf(msg.sender)>0
"TX TOOK TOO LONG"
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; interface IPandaNFT { ...
block.timestamp-timestamp<=maxClaimLatency,"TX TOOK TOO LONG"
396,329
block.timestamp-timestamp<=maxClaimLatency
"INCORRECT NONCE"
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; interface IPandaNFT { ...
addressToNonce[msg.sender]==nonce,"INCORRECT NONCE"
396,329
addressToNonce[msg.sender]==nonce
"SIGNATURE NOT FROM SIGNER WALLET"
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; interface IPandaNFT { ...
recoverSigner(message,signature)==signerWallet,"SIGNATURE NOT FROM SIGNER WALLET"
396,329
recoverSigner(message,signature)==signerWallet