comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanId].startEnd[1]>=block.timestamp
345,276
loans[loanId].startEnd[1]>=block.timestamp
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
(msg.value>0&&loans[loanId].currency==address(0)&&msg.value==amount)||(loans[loanId].currency!=address(0)&&msg.value==0&&amount>0)
345,276
(msg.value>0&&loans[loanId].currency==address(0)&&msg.value==amount)||(loans[loanId].currency!=address(0)&&msg.value==0&&amount>0)
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
msg.sender.send(interestToStaterPerInstallement.div(discount))
345,276
msg.sender.send(interestToStaterPerInstallement.div(discount))
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanId].status!=Status.WITHDRAWN
345,276
loans[loanId].status!=Status.WITHDRAWN
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
(block.timestamp>=loans[loanId].startEnd[1]||loans[loanId].paidAmount>=loans[loanId].amountDue)||canBeTerminated(loanId)
345,276
(block.timestamp>=loans[loanId].startEnd[1]||loans[loanId].paidAmount>=loans[loanId].amountDue)||canBeTerminated(loanId)
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanId].status==Status.LIQUIDATED||loans[loanId].status==Status.APPROVED
345,276
loans[loanId].status==Status.LIQUIDATED||loans[loanId].status==Status.APPROVED
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanIds[i]].lender==from
345,276
loans[loanIds[i]].lender==from
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanIds[i]].status==Status.APPROVED
345,276
loans[loanIds[i]].status==Status.APPROVED
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
promissoryPermissions[loanIds[i]]==from
345,276
promissoryPermissions[loanIds[i]]==from
null
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "./LendingCore.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract LendingMethods is Ownable, LendingCore { using SafeMath for uint256; using SafeMath for uint16; // Borrower creates a loan function createLoan( uint256 loa...
loans[loanIds[i]].lender==msg.sender
345,276
loans[loanIds[i]].lender==msg.sender
"Mint exceeds reserve supply limit"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface ERC721BaseLayer { function mintTo(address recipient, uint256 tokenId, string memory uri) external; function ownerOf(uint256 tokenId) externa...
reserveMinted+amount<=reservedSupply,"Mint exceeds reserve supply limit"
345,360
reserveMinted+amount<=reservedSupply
"Purchase exceeds supply limit"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface ERC721BaseLayer { function mintTo(address recipient, uint256 tokenId, string memory uri) external; function ownerOf(uint256 tokenId) externa...
minted+amount<=maxSupply-(reservedSupply-reserveMinted),"Purchase exceeds supply limit"
345,360
minted+amount<=maxSupply-(reservedSupply-reserveMinted)
"Too many requested"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; interface ERC721BaseLayer { function mintTo(address recipient, uint256 tokenId, string memory uri) external; function ownerOf(uint256 tokenId) externa...
claimedTokens[id]<=presaleBuyLimitPerQualifyingId,"Too many requested"
345,360
claimedTokens[id]<=presaleBuyLimitPerQualifyingId
null
contract TrustaBitCrowdsale is MilestoneCrowdsale, Ownable { using SafeMath for uint256; /* Minimum contribution */ uint public constant MINIMUM_CONTRIBUTION = 15e16; /* Soft cap */ uint public constant softCapUSD = 3e6; //$3 Million USD uint public softCap; //$3 Million USD in ETH /* Hard Cap */ ...
!isEnded()
345,458
!isEnded()
null
contract TrustaBitCrowdsale is MilestoneCrowdsale, Ownable { using SafeMath for uint256; /* Minimum contribution */ uint public constant MINIMUM_CONTRIBUTION = 15e16; /* Soft cap */ uint public constant softCapUSD = 3e6; //$3 Million USD uint public softCap; //$3 Million USD in ETH /* Hard Cap */ ...
getCurrentPrice()>0
345,458
getCurrentPrice()>0
null
contract TrustaBitCrowdsale is MilestoneCrowdsale, Ownable { using SafeMath for uint256; /* Minimum contribution */ uint public constant MINIMUM_CONTRIBUTION = 15e16; /* Soft cap */ uint public constant softCapUSD = 3e6; //$3 Million USD uint public softCap; //$3 Million USD in ETH /* Hard Cap */ ...
isEnded()
345,458
isEnded()
null
contract TrustaBitCrowdsale is MilestoneCrowdsale, Ownable { using SafeMath for uint256; /* Minimum contribution */ uint public constant MINIMUM_CONTRIBUTION = 15e16; /* Soft cap */ uint public constant softCapUSD = 3e6; //$3 Million USD uint public softCap; //$3 Million USD in ETH /* Hard Cap */ ...
!softCapReached()
345,458
!softCapReached()
null
/* * @title Crypto Tulips Token Interface * @dev This contract provides interface to ERC721 support. */ contract TulipsTokenInterface is TulipsStorage, ERC721 { //// TOKEN SPECS & META DATA /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "Cry...
tulipIdToOwner[_tulipId]==msg.sender
345,471
tulipIdToOwner[_tulipId]==msg.sender
null
/* * @title Crypto Tulips Token Interface * @dev This contract provides interface to ERC721 support. */ contract TulipsTokenInterface is TulipsStorage, ERC721 { //// TOKEN SPECS & META DATA /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "Cry...
tulipIdToApproved[_tulipId]==msg.sender
345,471
tulipIdToApproved[_tulipId]==msg.sender
null
/* * @title Crypto Tulips Token Interface * @dev This contract provides interface to ERC721 support. */ contract TulipsTokenInterface is TulipsStorage, ERC721 { //// TOKEN SPECS & META DATA /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "Cry...
tulipIdToOwner[_tulipId]==_from
345,471
tulipIdToOwner[_tulipId]==_from
null
pragma solidity ^0.4.26; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { } function div(uint256 a, uint256 b) internal constant returns (uint256) { } function sub(uin...
!stopReceive[_to]
345,495
!stopReceive[_to]
null
pragma solidity ^0.4.26; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { } function div(uint256 a, uint256 b) internal constant returns (uint256) { } function sub(uin...
TokenRecipient(_recipient).tokenFallback(msg.sender,_amount,_data)
345,495
TokenRecipient(_recipient).tokenFallback(msg.sender,_amount,_data)
ERROR_BALANCE_NOT_ENOUGH
pragma solidity ^0.5.8; import "./SafeMath.sol"; import "./BaseToken.sol"; contract EggToken is BaseToken { using SafeMath for uint256; // MARK: strings for error message. string constant public ERROR_NOT_MANDATED = 'Reason: Not mandated.'; // MARK: for token information. string constant public name...
balances[_from]>=_value+_fee,ERROR_BALANCE_NOT_ENOUGH
345,560
balances[_from]>=_value+_fee
ERROR_NOT_MANDATED
pragma solidity ^0.5.8; import "./SafeMath.sol"; import "./BaseToken.sol"; contract EggToken is BaseToken { using SafeMath for uint256; // MARK: strings for error message. string constant public ERROR_NOT_MANDATED = 'Reason: Not mandated.'; // MARK: for token information. string constant public name...
mandates[_from],ERROR_NOT_MANDATED
345,560
mandates[_from]
ERROR_LOCKED
pragma solidity ^0.5.8; import "./SafeMath.sol"; import "./BaseToken.sol"; contract EggToken is BaseToken { using SafeMath for uint256; // MARK: strings for error message. string constant public ERROR_NOT_MANDATED = 'Reason: Not mandated.'; // MARK: for token information. string constant public name...
!isLocked(_from,_value),ERROR_LOCKED
345,560
!isLocked(_from,_value)
null
pragma solidity ^0.5.8; import "./SafeMath.sol"; import "./BaseToken.sol"; contract EggToken is BaseToken { using SafeMath for uint256; // MARK: strings for error message. string constant public ERROR_NOT_MANDATED = 'Reason: Not mandated.'; // MARK: for token information. string constant public name...
balances[msg.sender]>=_value1+_value2+_fee
345,560
balances[msg.sender]>=_value1+_value2+_fee
ERROR_LOCKED
pragma solidity ^0.5.8; import "./SafeMath.sol"; import "./BaseToken.sol"; contract EggToken is BaseToken { using SafeMath for uint256; // MARK: strings for error message. string constant public ERROR_NOT_MANDATED = 'Reason: Not mandated.'; // MARK: for token information. string constant public name...
!isLocked(msg.sender,_value1+_value2+_fee),ERROR_LOCKED
345,560
!isLocked(msg.sender,_value1+_value2+_fee)
null
pragma solidity ^0.4.11; 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(uint2...
totalSupply.add(_amount)<=MAX_SUPPLY
345,627
totalSupply.add(_amount)<=MAX_SUPPLY
null
pragma solidity ^0.4.11; 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(uint2...
!crowdsaleFinished
345,627
!crowdsaleFinished
null
// Import interfaces for many popular DeFi projects, or add your own! //import "../interfaces/<protocol>/<Interface>.sol"; contract Strategy is BaseStrategy { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; bool public checkLiqGauge = true; ICurveFi public constant...
wantBalance()>=_amount
345,665
wantBalance()>=_amount
"registered"
pragma solidity ^0.6.0; /// @notice The stakingRewardsAdapter registry database for Furucombo contract StakingRewardsAdapterRegistry is Ownable { mapping(address => bytes32) public adapters; bytes32 constant DEPRECATED = bytes10(0x64657072656361746564); /** * @notice Transfer ownership to tx.orig...
adapters[registration]==bytes32(0),"registered"
345,750
adapters[registration]==bytes32(0)
"no registration"
pragma solidity ^0.6.0; /// @notice The stakingRewardsAdapter registry database for Furucombo contract StakingRewardsAdapterRegistry is Ownable { mapping(address => bytes32) public adapters; bytes32 constant DEPRECATED = bytes10(0x64657072656361746564); /** * @notice Transfer ownership to tx.orig...
adapters[registration]!=bytes32(0),"no registration"
345,750
adapters[registration]!=bytes32(0)
"unregistered"
pragma solidity ^0.6.0; /// @notice The stakingRewardsAdapter registry database for Furucombo contract StakingRewardsAdapterRegistry is Ownable { mapping(address => bytes32) public adapters; bytes32 constant DEPRECATED = bytes10(0x64657072656361746564); /** * @notice Transfer ownership to tx.orig...
adapters[registration]!=DEPRECATED,"unregistered"
345,750
adapters[registration]!=DEPRECATED
"no registration"
pragma solidity ^0.6.0; /// @notice The stakingRewardsAdapter registry database for Furucombo contract StakingRewardsAdapterRegistry is Ownable { mapping(address => bytes32) public adapters; bytes32 constant DEPRECATED = bytes10(0x64657072656361746564); /** * @notice Transfer ownership to tx.orig...
adapters[adapter]!=bytes32(0),"no registration"
345,750
adapters[adapter]!=bytes32(0)
"unregistered"
pragma solidity ^0.6.0; /// @notice The stakingRewardsAdapter registry database for Furucombo contract StakingRewardsAdapterRegistry is Ownable { mapping(address => bytes32) public adapters; bytes32 constant DEPRECATED = bytes10(0x64657072656361746564); /** * @notice Transfer ownership to tx.orig...
adapters[adapter]!=DEPRECATED,"unregistered"
345,750
adapters[adapter]!=DEPRECATED
"Unable"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { } function _msgData() internal view virtual returns (bytes memory) { } } library SafeMath { function add(uint256 a, uint256 b) internal...
claimedPreSaleTokens[_msgSender()]==false,"Unable"
345,754
claimedPreSaleTokens[_msgSender()]==false
null
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { ...
distributors[msg.sender]
345,767
distributors[msg.sender]
null
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { ...
balances[address(this)]>=_amount
345,767
balances[address(this)]>=_amount
null
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */ contract StandardToken is ERC20, BasicToken { ...
balances[_addr]>=_amount
345,767
balances[_addr]>=_amount
"Not enough free mints"
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract ...
tokensMinted+numberOfTokens<=freeMints,"Not enough free mints"
345,861
tokensMinted+numberOfTokens<=freeMints
"You have already minted 10!"
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract ...
addressesThatMinted[msg.sender]+numberOfTokens<=10,"You have already minted 10!"
345,861
addressesThatMinted[msg.sender]+numberOfTokens<=10
"Not enough supply"
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract ...
tokensMinted+numberOfTokens<=EtherPantherSupply,"Not enough supply"
345,861
tokensMinted+numberOfTokens<=EtherPantherSupply
"You have already minted 50!"
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract ...
addressesThatMinted[msg.sender]+numberOfTokens<=50,"You have already minted 50!"
345,861
addressesThatMinted[msg.sender]+numberOfTokens<=50
"You are not Whitelisted"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
amIWhiteListed(),"You are not Whitelisted"
345,901
amIWhiteListed()
"max presale tokens minted"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
minted+amount<=phase_presale_max_tokens,"max presale tokens minted"
345,901
minted+amount<=phase_presale_max_tokens
"max expansion tokens minted"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
minted+amount<=EXPANSION_TOKENS,"max expansion tokens minted"
345,901
minted+amount<=EXPANSION_TOKENS
"Invalid ether amount"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
amount*PRESALE_MINT_PRICE==msg.value,"Invalid ether amount"
345,901
amount*PRESALE_MINT_PRICE==msg.value
"max tokens minted"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
minted+amount<=phase_max_tokens,"max tokens minted"
345,901
minted+amount<=phase_max_tokens
"Invalid ether amount"
pragma solidity ^0.8.0; contract Nobleape is ERC721Enumerable, Ownable, Pausable { uint16 public constant MAX_TOKENS = 50000; uint16 public constant EXPANSION_TOKENS = 10000; string public baseExtension = ".json"; string public notRevealedUri; uint256 public constant PRESALE_MINT_PRICE = .069 ...
amount*PUBLICSALE_MINT_PRICE==msg.value,"Invalid ether amount"
345,901
amount*PUBLICSALE_MINT_PRICE==msg.value
"Exceed max supply!"
//SPDX-License-Identifier: MIT /* __________________________ ,.,,uod8B8bou,,., \________|:|______________\ .:i!T?TFRRBBBBBBBBBBBBBBBB8bou,.. _|:|_________ ||||||||||||||||?TFRRBBBBBBBBBBBBBB8m:. __|:::| \ \_...
totalSupply()+mintNum<=MAX_TOKEN_SUPPLY,"Exceed max supply!"
345,902
totalSupply()+mintNum<=MAX_TOKEN_SUPPLY
"Only allow mint 1"
//SPDX-License-Identifier: MIT /* __________________________ ,.,,uod8B8bou,,., \________|:|______________\ .:i!T?TFRRBBBBBBBBBBBBBBBB8bou,.. _|:|_________ ||||||||||||||||?TFRRBBBBBBBBBBBBBB8m:. __|:::| \ \_...
addrWhitelistNum[msg.sender]==0,"Only allow mint 1"
345,902
addrWhitelistNum[msg.sender]==0
"Reach max whitelist limit!"
//SPDX-License-Identifier: MIT /* __________________________ ,.,,uod8B8bou,,., \________|:|______________\ .:i!T?TFRRBBBBBBBBBBBBBBBB8bou,.. _|:|_________ ||||||||||||||||?TFRRBBBBBBBBBBBBBB8m:. __|:::| \ \_...
claimedWhitelistNum+1<=maxWhitelistNum,"Reach max whitelist limit!"
345,902
claimedWhitelistNum+1<=maxWhitelistNum
"Not enough balance"
pragma solidity 0.4.23; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in ...
token.balanceOf(address(this)).sub(num).sub(user_lock_amount)>=_amount,"Not enough balance"
345,963
token.balanceOf(address(this)).sub(num).sub(user_lock_amount)>=_amount
"Not enough balance"
pragma solidity 0.4.23; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in ...
token.balanceOf(address(this)).add(releasedAmount).sub(contract_lock_amount).sub(user_lock_amount)>=_amount,"Not enough balance"
345,963
token.balanceOf(address(this)).add(releasedAmount).sub(contract_lock_amount).sub(user_lock_amount)>=_amount
null
pragma solidity 0.4.23; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in ...
token.transfer(msg.sender,remainingAmount_)
345,963
token.transfer(msg.sender,remainingAmount_)
"Ether value sent is not correct"
pragma solidity ^0.8.0; /** ______________ ______________ _________ ___________.____ .____ _________ __________________ _______ ___________ \__ ___/ | \_ _____/ \_ ___ \\_ _____/| | | | / _____/ \____ /\_____ \ \ \ \_ _____/ | | / ~ \ __)_ / \ ...
cellPrice*amount<=msg.value,"Ether value sent is not correct"
345,972
cellPrice*amount<=msg.value
"Ether value sent is not correct"
pragma solidity ^0.8.0; /** ______________ ______________ _________ ___________.____ .____ _________ __________________ _______ ___________ \__ ___/ | \_ _____/ \_ ___ \\_ _____/| | | | / _____/ \____ /\_____ \ \ \ \_ _____/ | | / ~ \ __)_ / \ ...
getPackPrice(amount)*amount<=msg.value,"Ether value sent is not correct"
345,972
getPackPrice(amount)*amount<=msg.value
"Nonce already used"
pragma solidity ^0.8.0; /** ______________ ______________ _________ ___________.____ .____ _________ __________________ _______ ___________ \__ ___/ | \_ _____/ \_ ___ \\_ _____/| | | | / _____/ \____ /\_____ \ \ \ \_ _____/ | | / ~ \ __)_ / \ ...
!mintNonces[msg.sender][nonce],"Nonce already used"
345,972
!mintNonces[msg.sender][nonce]
"NONEXISTENT_TOKEN"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Pausable.sol"; import '@openzeppelin/contracts/math/SafeMath...
tokenSupply[_id]>0,"NONEXISTENT_TOKEN"
345,992
tokenSupply[_id]>0
"not possible when finalized"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Pausable.sol"; import '@openzeppelin/contracts/math/SafeMath...
!isSistasFinalized,"not possible when finalized"
345,992
!isSistasFinalized
"not possible when finalized"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Pausable.sol"; import '@openzeppelin/contracts/math/SafeMath...
!isBratsFinalized,"not possible when finalized"
345,992
!isBratsFinalized
"sender is not owner of dude"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Pausable.sol"; import '@openzeppelin/contracts/math/SafeMath...
dudesContract.ownerOf(dudeIds[i])==msg.sender,"sender is not owner of dude"
345,992
dudesContract.ownerOf(dudeIds[i])==msg.sender
"trait for this dude has already been claimed"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import "@openzeppelin/contracts/utils/Counters.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/utils/Pausable.sol"; import '@openzeppelin/contracts/math/SafeMath...
!claimedMap[dudeIds[i]],"trait for this dude has already been claimed"
345,992
!claimedMap[dudeIds[i]]
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
baseToken.transferFrom(paying,address(this),totPrice-alreadyPaid)
346,030
baseToken.transferFrom(paying,address(this),totPrice-alreadyPaid)
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
baseToken.transfer(paying,alreadyPaid-totPrice)
346,030
baseToken.transfer(paying,alreadyPaid-totPrice)
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
shareToken.transfer(recipient,shares)
346,030
shareToken.transfer(recipient,shares)
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
shareToken.transferFrom(seller,address(this),shares)
346,030
shareToken.transferFrom(seller,address(this),shares)
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
baseToken.transfer(copyright,fee)
346,030
baseToken.transfer(copyright,fee)
null
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
baseToken.transfer(recipient,totPrice-fee)
346,030
baseToken.transfer(recipient,totPrice-fee)
"Transfer failed"
/** * SPDX-License-Identifier: LicenseRef-Aktionariat * * MIT License with Automated License Fee Payments * * Copyright (c) 2020 Aktionariat AG (aktionariat.com) * * Permission is hereby granted to any person obtaining a copy of this software * and associated documentation files (the "Software"), to deal in the Softwar...
erc20.transfer(to,amount),"Transfer failed"
346,030
erc20.transfer(to,amount)
'para error'
pragma solidity ^0.6.2; contract Presale { using SafeMath for uint256; IERC20 public badger = IERC20(0x3472A5A71965499acd81997a54BBA8D852C6E53d); address public wbtc = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599; IERC20 public digg = IERC20(0x798D1bE841a82a273720CE31c822C61a67a601C3); INFTHG pu...
salePrice[level]==0&&price>0&&amount>0,'para error'
346,093
salePrice[level]==0&&price>0&&amount>0
"already registered for presale"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract S16Presale is Ownable { address private admin; //address of the s16 owner mapping(address => bool) public regForPresaleMint; uint256 public preSaleRegisterPrice = 0.016 ether; uint256 pr...
regForPresaleMint[msg.sender]==false,"already registered for presale"
346,106
regForPresaleMint[msg.sender]==false
"NFT not found"
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/ReentrancyGuard.sol'; import "./interface/IRMU.sol"; import "./interface/IHopeNonTradable.sol"; import "./interfa...
cardCosts[_card]!=0,"NFT not found"
346,268
cardCosts[_card]!=0
"Wrong amount, 0.1 multiples allowed"
/* ░█████╗░██████╗░░█████╗░░██╗░░░░░░░██╗██████╗░░██████╗██╗░░██╗░█████╗░██████╗░██╗███╗░░██╗░██████╗░  ██╗░█████╗░ ██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║██╔══██╗██╔════╝██║░░██║██╔══██╗██╔══██╗██║████╗░██║██╔════╝░  ██║██╔══██╗ ██║░░╚═╝██████╔╝██║░░██║░╚██╗████╗██╔╝██║░░██║╚█████╗░███████║███████║██████╔╝██║██╔██╗█...
_eth%100000000000000000==0,"Wrong amount, 0.1 multiples allowed"
346,381
_eth%100000000000000000==0
"limit still left"
/* ░█████╗░██████╗░░█████╗░░██╗░░░░░░░██╗██████╗░░██████╗██╗░░██╗░█████╗░██████╗░██╗███╗░░██╗░██████╗░  ██╗░█████╗░ ██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║██╔══██╗██╔════╝██║░░██║██╔══██╗██╔══██╗██║████╗░██║██╔════╝░  ██║██╔══██╗ ██║░░╚═╝██████╔╝██║░░██║░╚██╗████╗██╔╝██║░░██║╚█████╗░███████║███████║██████╔╝██║██╔██╗█...
player[msg.sender].incomeLimitLeft==0,"limit still left"
346,381
player[msg.sender].incomeLimitLeft==0
"Short of funds in contract, sorry"
/* ░█████╗░██████╗░░█████╗░░██╗░░░░░░░██╗██████╗░░██████╗██╗░░██╗░█████╗░██████╗░██╗███╗░░██╗░██████╗░  ██╗░█████╗░ ██╔══██╗██╔══██╗██╔══██╗░██║░░██╗░░██║██╔══██╗██╔════╝██║░░██║██╔══██╗██╔══██╗██║████╗░██║██╔════╝░  ██║██╔══██╗ ██║░░╚═╝██████╔╝██║░░██║░╚██╗████╗██╔╝██║░░██║╚█████╗░███████║███████║██████╔╝██║██╔██╗█...
address(this).balance>=_earnings,"Short of funds in contract, sorry"
346,381
address(this).balance>=_earnings
"Exceeds max supply"
//SPDX-License-Identifier: Unlicense pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; contract OwnableDelegateProxy {} /** * ...
_nextTokenId.current()<MAX_SUPPLY,"Exceeds max supply"
346,525
_nextTokenId.current()<MAX_SUPPLY
"Caller is not an editor"
/// SPDX-License-Identifier: Unlicensed pragma solidity 0.8.9; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "./ConstantsAF.sol"; abstract contract AFRoles is AccessControlEnumerable { modifier onlyEditor() { require(<FILL_ME>) _; } modifier onlyContract() { ...
hasRole(ConstantsAF.EDITOR_ROLE,msg.sender),"Caller is not an editor"
346,540
hasRole(ConstantsAF.EDITOR_ROLE,msg.sender)
"Caller is not a contract"
/// SPDX-License-Identifier: Unlicensed pragma solidity 0.8.9; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "./ConstantsAF.sol"; abstract contract AFRoles is AccessControlEnumerable { modifier onlyEditor() { } modifier onlyContract() { require(<FILL_ME>) _; ...
hasRole(ConstantsAF.CONTRACT_ROLE,msg.sender),"Caller is not a contract"
346,540
hasRole(ConstantsAF.CONTRACT_ROLE,msg.sender)
"Caller is not admin nor role manager"
/// SPDX-License-Identifier: Unlicensed pragma solidity 0.8.9; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "./ConstantsAF.sol"; abstract contract AFRoles is AccessControlEnumerable { modifier onlyEditor() { } modifier onlyContract() { } function setRole(bytes32 role, ...
hasRole(DEFAULT_ADMIN_ROLE,msg.sender)||hasRole(ConstantsAF.ROLE_MANAGER_ROLE,msg.sender),"Caller is not admin nor role manager"
346,540
hasRole(DEFAULT_ADMIN_ROLE,msg.sender)||hasRole(ConstantsAF.ROLE_MANAGER_ROLE,msg.sender)
"Sum of percentile should be 100"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./libraries/TransferHelper.sol"; contract ERC20Crowdsale is Ownable { bool public isEnabled = false; // ERC20 Token address => pric...
charities+carbonOffset+ccFund+metaCarbon+extra==100,"Sum of percentile should be 100"
346,696
charities+carbonOffset+ccFund+metaCarbon+extra==100
"Price in this token was not set"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./libraries/TransferHelper.sol"; contract ERC20Crowdsale is Ownable { bool public isEnabled = false; // ERC20 Token address => pric...
basePrice[token]>0,"Price in this token was not set"
346,696
basePrice[token]>0
"Sum of percentile should be 100"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./libraries/TransferHelper.sol"; contract ERC20Crowdsale is Ownable { bool public isEnabled = false; // ERC20 Token address => pric...
charitiesPercentile+carbonOffsetPercentile+ccFundPercentile+metaCarbonPercentile+extraPercentile==100,"Sum of percentile should be 100"
346,696
charitiesPercentile+carbonOffsetPercentile+ccFundPercentile+metaCarbonPercentile+extraPercentile==100
"LPStaking: stakeToken_ should be a contract"
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.8; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Ad...
stakeToken_.isContract(),"LPStaking: stakeToken_ should be a contract"
346,797
stakeToken_.isContract()
"LPStaking: Please use your individual account"
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.8; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Ad...
!address(msg.sender).isContract(),"LPStaking: Please use your individual account"
346,797
!address(msg.sender).isContract()
"not qulifiled as new root"
pragma solidity ^0.5.8; import './ERC20.sol'; library address_make_payable { function make_payable(address x) internal pure returns (address payable) { } } contract VDPoolBasic { function price() external view returns (uint256); function buyToken(uint256 ethAmount) external returns (uint256); function...
!isSignedUp(),"not qulifiled as new root"
346,866
!isSignedUp()
"phase already settled"
pragma solidity ^0.5.8; import './ERC20.sol'; library address_make_payable { function make_payable(address x) internal pure returns (address payable) { } } contract VDPoolBasic { function price() external view returns (uint256); function buyToken(uint256 ethAmount) external returns (uint256); function...
!settled[phase],"phase already settled"
346,866
!settled[phase]
"Arr length not eq"
// SPDX-License-Identifier: MIT pragma solidity =0.8.10; abstract contract IDFSRegistry { function getAddr(bytes4 _id) public view virtual returns (address); function addNewContract( bytes32 _id, address _contractAddr, uint256 _waitPeriod ) public virtual; function startContractC...
(_ids.length==_contractAddrs.length)&&(_ids.length==_waitPeriods.length),"Arr length not eq"
346,897
(_ids.length==_contractAddrs.length)&&(_ids.length==_waitPeriods.length)
null
pragma solidity ^0.4.19; contract GoldTokenStorage is ResolverClient, DigixConstants { struct FeeConfiguration { uint256 base; uint256 rate; } struct GlobalConfig { bytes32 current_version; bool no_demurrage_fee; bool no_transfer_fee; uint256 minimum_transfer_amount; Fees fe...
init(CONTRACT_STORAGE_GOLD_TOKEN,_resolver)
346,923
init(CONTRACT_STORAGE_GOLD_TOKEN,_resolver)
null
pragma solidity ^0.4.19; contract AssetsStorageElectron is ResolverClient, BytesIteratorStorage, DigixConstants, DigixConstantsElectron { using DoublyLinkedList for DoublyLinkedList.Bytes; uint256 public recast_block_threshold; mapping (bytes32 => bytes32) custodian_by_asset_id; mapping (bytes32 => bytes32...
init(CONTRACT_STORAGE_ASSETS_ELECTRON,_resolver)
346,943
init(CONTRACT_STORAGE_ASSETS_ELECTRON,_resolver)
null
pragma solidity ^0.4.19; contract AssetsStorageElectron is ResolverClient, BytesIteratorStorage, DigixConstants, DigixConstantsElectron { using DoublyLinkedList for DoublyLinkedList.Bytes; uint256 public recast_block_threshold; mapping (bytes32 => bytes32) custodian_by_asset_id; mapping (bytes32 => bytes32...
custodian_by_asset_id[_item]==bytes32(0x0)
346,943
custodian_by_asset_id[_item]==bytes32(0x0)
null
pragma solidity ^0.4.19; contract AssetsStorageElectron is ResolverClient, BytesIteratorStorage, DigixConstants, DigixConstantsElectron { using DoublyLinkedList for DoublyLinkedList.Bytes; uint256 public recast_block_threshold; mapping (bytes32 => bytes32) custodian_by_asset_id; mapping (bytes32 => bytes32...
custodian_by_global_audit_doc[_doc]==bytes32(0x0)
346,943
custodian_by_global_audit_doc[_doc]==bytes32(0x0)
null
pragma solidity ^0.4.19; contract AssetsStorageElectron is ResolverClient, BytesIteratorStorage, DigixConstants, DigixConstantsElectron { using DoublyLinkedList for DoublyLinkedList.Bytes; uint256 public recast_block_threshold; mapping (bytes32 => bytes32) custodian_by_asset_id; mapping (bytes32 => bytes32...
global_audit_timestamp[_doc]==0
346,943
global_audit_timestamp[_doc]==0
null
pragma solidity ^0.4.19; contract AssetsStorageElectron is ResolverClient, BytesIteratorStorage, DigixConstants, DigixConstantsElectron { using DoublyLinkedList for DoublyLinkedList.Bytes; uint256 public recast_block_threshold; mapping (bytes32 => bytes32) custodian_by_asset_id; mapping (bytes32 => bytes32...
custodian_by_asset_id[_item]!=bytes32(0x0)
346,943
custodian_by_asset_id[_item]!=bytes32(0x0)
null
/// math.sol -- mixin for inline numerical wizardry // Copyright (C) 2015, 2016, 2017 DappHub, LLC // Licensed under the Apache License, Version 2.0 (the "License"). // You may not use this file except in compliance with the License. // Unless required by applicable law or agreed to in writing, software // distri...
add(tokens,category.amountMinted)<=category.mintLimit
347,156
add(tokens,category.amountMinted)<=category.mintLimit
null
pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256 supply); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 val...
totalSupply_+amount>totalSupply_
347,243
totalSupply_+amount>totalSupply_
"already transacted"
// Copyright (c) 2018-2020 double jump.tokyo inc. pragma solidity 0.5.16; library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (...
isApplicable(msg.sender,_hash,_time),"already transacted"
347,250
isApplicable(msg.sender,_hash,_time)
"invalid signature"
// Copyright (c) 2018-2020 double jump.tokyo inc. pragma solidity 0.5.16; library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (...
validateSig(msg.sender,_hash,_time,_signature),"invalid signature"
347,250
validateSig(msg.sender,_hash,_time,_signature)
"beneficiary didn't receive fees"
// SPDX-License-Identifier: GNU-3.0 pragma solidity =0.6.12; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/ReentrancyGuard.sol'; import '@uniswap/v2-periphery...
fromERC20.balanceOf(_beneficiary)>=beneficiaryBalance.add(fee),"beneficiary didn't receive fees"
347,259
fromERC20.balanceOf(_beneficiary)>=beneficiaryBalance.add(fee)
"Sold out!"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; contract TipsyTiger is ERC721Enumerable, Ownable { using Strings for uint256; string public PROVENANCE = ""; string _ba...
supply+num<=maxSupply-100,"Sold out!"
347,314
supply+num<=maxSupply-100