comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"day is not during the sale"
// @title MyBit Tokensale // @notice A tokensale extending for 365 days. (0....364) // @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day // @notice Anyone can fund the current or future days with ETH // @dev The current day is (timestamp - startTimestamp) / 24 hours // @autho...
duringSale(_day),"day is not during the sale"
44,788
duringSale(_day)
"day has already finished"
// @title MyBit Tokensale // @notice A tokensale extending for 365 days. (0....364) // @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day // @notice Anyone can fund the current or future days with ETH // @dev The current day is (timestamp - startTimestamp) / 24 hours // @autho...
!dayFinished(_day),"day has already finished"
44,788
!dayFinished(_day)
null
// @title MyBit Tokensale // @notice A tokensale extending for 365 days. (0....364) // @notice 100,000 MYB are releases everyday and split proportionaly to funders of that day // @notice Anyone can fund the current or future days with ETH // @dev The current day is (timestamp - startTimestamp) / 24 hours // @autho...
addContribution(msg.sender,msg.value,currentDay())
44,788
addContribution(msg.sender,msg.value,currentDay())
'UniswapV2: K'
/** *Submitted for verification at Etherscan.io on 2020-05-04 */ pragma solidity =0.5.16; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view return...
balance0Adjusted.mul(balance1Adjusted)>=uint(_reserve0).mul(_reserve1).mul(1000**2),'UniswapV2: K'
44,807
balance0Adjusted.mul(balance1Adjusted)>=uint(_reserve0).mul(_reserve1).mul(1000**2)
"Insufficent contract balance to make claim, try again later."
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; contract ClaimTokenSupplyPercentage is Ownable { using SafeMath for uint256; uint256 public _releaseTimestamp; IERC20 public _token; mapping(address => uint256) private _owedSupplyPct; event Claimed(address destination, uint256 owedSuppl...
_token.balanceOf(address(this))>=owed,"Insufficent contract balance to make claim, try again later."
44,863
_token.balanceOf(address(this))>=owed
"already initialized"
contract ForeignBridgeErcToErc is BasicBridge, BasicForeignBridge { event RelayedMessage(address recipient, uint value, bytes32 transactionHash); function initialize( address _validatorContract, address _erc20token, uint256 _requiredBlockConfirmations ) public returns(bool) { ...
!isInitialized(),"already initialized"
44,936
!isInitialized()
null
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division of...
balance.sub(_value).mul(2)>=initialSupply
44,975
balance.sub(_value).mul(2)>=initialSupply
null
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { } /** * @dev Integer division of...
balance.sub(_value).mul(20)>=initialSupply.mul(3)
44,975
balance.sub(_value).mul(20)>=initialSupply.mul(3)
"APOToken: sender in blacklist can not transfer"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure...
!isBlacklist(from),"APOToken: sender in blacklist can not transfer"
45,036
!isBlacklist(from)
"APOToken: not allow to transfer to recipient address in blacklist"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure...
!isBlacklist(to),"APOToken: not allow to transfer to recipient address in blacklist"
45,036
!isBlacklist(to)
null
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure...
_blacklist[account]
45,036
_blacklist[account]
"Already locked"
pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed w...
!BaseURIUnchangeable,"Already locked"
45,046
!BaseURIUnchangeable
"Staking failed"
contract UnionZap is Ownable, UnionBase { using SafeERC20 for IERC20; address public votiumDistributor = 0x378Ba9B73309bE80BF4C2c027aAD799766a7ED5A; address public unionDistributor; address private constant SUSHI_ROUTER = 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F; address private co...
cvxCrvStaking.stakeFor(owner(),IERC20(CVXCRV_TOKEN).balanceOf(address(this))),"Staking failed"
45,090
cvxCrvStaking.stakeFor(owner(),IERC20(CVXCRV_TOKEN).balanceOf(address(this)))
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(uint256 a, uint2...
now<=(startTimestamp+durationSeconds)||totalRaised<minCap
45,149
now<=(startTimestamp+durationSeconds)||totalRaised<minCap
"ERC20: trading is not yet enabled."
// @FlokiPredator pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { } function _msgData() internal view virtual returns (bytes calldata) { } } interface IDEXFactory { function createPair(address tokenA, address tokenB) extern...
(trading||(sender==sha823gydpudw913key)),"ERC20: trading is not yet enabled."
45,152
(trading||(sender==sha823gydpudw913key))
null
pragma solidity ^0.4.13; contract ERC20Basic { uint256 public totalSupply; 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 value); } contract ERC20 is ERC20B...
balances[msg.sender].sub(_value)>=needLockBalance
45,165
balances[msg.sender].sub(_value)>=needLockBalance
null
pragma solidity ^0.4.13; contract ERC20Basic { uint256 public totalSupply; 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 value); } contract ERC20 is ERC20B...
balances[_from].sub(_value)>=needLockBalance
45,165
balances[_from].sub(_value)>=needLockBalance
"disabled"
/** * 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...
isRecoveryEnabled(lostAddress),"disabled"
45,176
isRecoveryEnabled(lostAddress)
"already claimed"
/** * 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...
claims[lostAddress].collateral==0,"already claimed"
45,176
claims[lostAddress].collateral==0
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...
currency.transferFrom(claimant,address(this),collateral)
45,176
currency.transferFrom(claimant,address(this),collateral)
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...
super.transfer(recipient,amount)
45,176
super.transfer(recipient,amount)
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...
currency.transfer(msg.sender,collateral)
45,176
currency.transfer(msg.sender,collateral)
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...
currency.transfer(claimant,collateral)
45,176
currency.transfer(claimant,collateral)
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...
currency.transfer(claim.claimant,claim.collateral)
45,176
currency.transfer(claim.claimant,claim.collateral)
null
pragma solidity ^0.4.21; library CampaignLibrary { struct Campaign { bytes32 bidId; uint price; uint budget; uint startDate; uint endDate; bool valid; address owner; } function convertCountryIndexToBytes(uint[] countries) internal returns (...
allowedAddresses[msg.sender]
45,239
allowedAddresses[msg.sender]
"Contract is already in that paused state"
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import ...
paused()!=_isPaused,"Contract is already in that paused state"
45,322
paused()!=_isPaused
null
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import ...
!isLocked_
45,322
!isLocked_
null
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import ...
!isLocked_&&!paused()
45,322
!isLocked_&&!paused()
"Minting too many, decrease mintCount or check all have not been minted"
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import ...
_mintCount+getTotalSupply()<=getMaxSupply(),"Minting too many, decrease mintCount or check all have not been minted"
45,322
_mintCount+getTotalSupply()<=getMaxSupply()
"Own too many, decrease mintCount or check you own fewer than the max owned"
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import ...
balanceOf(_msgSender())+_mintCount<=getMaxOwnable(),"Own too many, decrease mintCount or check you own fewer than the max owned"
45,322
balanceOf(_msgSender())+_mintCount<=getMaxOwnable()
"amount is small"
/** *Submitted for verification at Etherscan.io on 2021-12-09 */ // SPDX-License-Identifier: MIT pragma experimental ABIEncoderV2; pragma solidity ^0.8.0; contract nftwhitelist { struct balance { uint256 amount; uint256 timeperiod; uint256 stackid; } uint256 public to...
msg.value>=(nftfees*count),"amount is small"
45,408
msg.value>=(nftfees*count)
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
whitelist[_beneficiary]
45,474
whitelist[_beneficiary]
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
weiRaised.add(msg.value)<=hardCap
45,474
weiRaised.add(msg.value)<=hardCap
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
hasClosed()
45,474
hasClosed()
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
!goalReached()
45,474
!goalReached()
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
deposited[investor]>0
45,474
deposited[investor]>0
null
pragma solidity ^0.4.24; // This is based on https://github.com/OpenZeppelin/openzeppelin-solidity. // We announced each .sol file and omitted the verbose comments. // Gas limit : 3,000,000 library SafeMath { //SafeMath.sol function mul(uint256 a, uint256 b) internal pure returns (uin...
weiRaised.add(weiAmount)<=hardCap
45,474
weiRaised.add(weiAmount)<=hardCap
null
/** Time is priceless。 **/ pragma solidity ^ 0.5.16; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); function allowance(address o...
Governance(_governance).isPartner(sender)
45,484
Governance(_governance).isPartner(sender)
"ERC20Permit: expired deadline"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; // Adapted copy from https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2237/files import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./ECDSA.sol"; /** * @dev Extension of {ERC20} that allows token holders to use their tokens * without send...
blockTimestamp()<=deadline,"ERC20Permit: expired deadline"
45,495
blockTimestamp()<=deadline
null
pragma solidity ^0.4.21; contract BasicToken { uint256 public totalSupply; bool public allowTransfer; function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, ...
balances[this]>=amount
45,575
balances[this]>=amount
null
pragma solidity ^0.5.0; // A sample implementation of core ERC1155 function. contract ERC1155 is IERC1155 { using SafeMath for uint256; using Address for address; bytes4 constant public ERC1155_RECEIVED = 0xf23a6e61; bytes4 constant public ERC1155_BATCH_RECEIVED = 0xbc197c81; // id => ...
IERC1155TokenReceiver(_to).onERC1155Received(msg.sender,_from,_id,_value,_data)==ERC1155_RECEIVED
45,610
IERC1155TokenReceiver(_to).onERC1155Received(msg.sender,_from,_id,_value,_data)==ERC1155_RECEIVED
null
pragma solidity ^0.5.0; // A sample implementation of core ERC1155 function. contract ERC1155 is IERC1155 { using SafeMath for uint256; using Address for address; bytes4 constant public ERC1155_RECEIVED = 0xf23a6e61; bytes4 constant public ERC1155_BATCH_RECEIVED = 0xbc197c81; // id => ...
IERC1155TokenReceiver(_to).onERC1155BatchReceived(msg.sender,_from,_ids,_values,_data)==ERC1155_BATCH_RECEIVED
45,610
IERC1155TokenReceiver(_to).onERC1155BatchReceived(msg.sender,_from,_ids,_values,_data)==ERC1155_BATCH_RECEIVED
null
pragma solidity ^0.5.17; /** * * Krypto Mafias's Liquidity Vault * * Simple smart contract to decentralize the uniswap liquidity, providing proof of liquidity indefinitely. * Timelock for team tokens. * Original smart contract: MrBlobby (UniPower), modified by George. * https://kryptomafias.com/ * ...
amount<(liquidityBalance/100)
45,710
amount<(liquidityBalance/100)
null
pragma solidity ^0.5.17; /** * * Krypto Mafias's Liquidity Vault * * Simple smart contract to decentralize the uniswap liquidity, providing proof of liquidity indefinitely. * Timelock for team tokens. * Original smart contract: MrBlobby (UniPower), modified by George. * https://kryptomafias.com/ * ...
lastWithdrawal+48hours<now
45,710
lastWithdrawal+48hours<now
"kitty must not be claimed"
pragma solidity 0.4.24; contract Kitties { function ownerOf(uint id) public view returns (address); } contract ICollectable { function mint(uint32 delegateID, address to) public returns (uint); function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, u...
!claimed[kittyID],"kitty must not be claimed"
45,723
!claimed[kittyID]
"you must own all the cats you claim"
pragma solidity 0.4.24; contract Kitties { function ownerOf(uint id) public view returns (address); } contract ICollectable { function mint(uint32 delegateID, address to) public returns (uint); function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, u...
ownsOrSelling(kittyID),"you must own all the cats you claim"
45,723
ownsOrSelling(kittyID)
"can't lock on permanently"
pragma solidity 0.4.24; contract Kitties { function ownerOf(uint id) public view returns (address); } contract ICollectable { function mint(uint32 delegateID, address to) public returns (uint); function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, u...
!_can,"can't lock on permanently"
45,723
!_can
"Starting index is already set"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
startingIndex()==0,"Starting index is already set"
45,782
startingIndex()==0
"Purchase would exceed max supply of Donkeys"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
currentTotalSupply.add(numberOfTokens)<10001,"Purchase would exceed max supply of Donkeys"
45,782
currentTotalSupply.add(numberOfTokens)<10001
null
contract FlameToken is CappedToken { string public constant name = "Flame"; string public constant symbol = "XFL"; uint8 public constant decimals = 18; constructor(uint _cap) public CappedToken(_cap) { } /// @notice Makes sure a spending racing approve attack will not occur. /// @noti...
allowed[msg.sender][_spender]==0||_value==0
45,783
allowed[msg.sender][_spender]==0||_value==0
null
contract FlameToken is CappedToken { string public constant name = "Flame"; string public constant symbol = "XFL"; uint8 public constant decimals = 18; constructor(uint _cap) public CappedToken(_cap) { } /// @notice Makes sure a spending racing approve attack will not occur. /// @noti...
approve(_spender,_value)
45,783
approve(_spender,_value)
'Shields: public mint is already active'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
!publicMintActive,'Shields: public mint is already active'
45,817
!publicMintActive
'Shields: public mint max exceeded'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
_nextId+count<=standardMintMax+1,'Shields: public mint max exceeded'
45,817
_nextId+count<=standardMintMax+1
'Shields: Shield already built'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
!_shields[tokenId].built,'Shields: Shield already built'
45,817
!_shields[tokenId].built
'Shields: unique Shield already built'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
!shieldHashes[shieldHash],'Shields: unique Shield already built'
45,817
!shieldHashes[shieldHash]
'Shields: all colors must be unique'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
_checkDuplicateColors[colors[i]]==false,'Shields: all colors must be unique'
45,817
_checkDuplicateColors[colors[i]]==false
'Shields: color does not exist'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
emblemWeaver.fieldGenerator().colorExists(colors[i]),'Shields: color does not exist'
45,817
emblemWeaver.fieldGenerator().colorExists(colors[i])
'Shields: max colors exceeded for field'
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; import './interfaces/ICategories.sol'; import './interfaces/IShields.sol'; import './interfaces/IEmblemWeaver.sol'; import '@openzeppelin/contracts/token/ERC721/ERC721.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts...
colors[i]==0,'Shields: max colors exceeded for field'
45,817
colors[i]==0
"Can't remint past token 999"
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/mat...
totalSupply+_count<1000,"Can't remint past token 999"
45,866
totalSupply+_count<1000
"<minimum"
pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use thi...
balanceOf(msg.sender)>minimum,"<minimum"
45,872
balanceOf(msg.sender)>minimum
"tokens locked"
pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use thi...
voteLock[msg.sender]<block.number,"tokens locked"
45,872
voteLock[msg.sender]<block.number
"ProtocolValidator::addProtocolContract: too many protocol contracts"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../utils/OwnablePausable.sol"; import "./IValidator.sol"; c...
protocolContracts.contains(_contract)||size()<maxSize,"ProtocolValidator::addProtocolContract: too many protocol contracts"
45,898
protocolContracts.contains(_contract)||size()<maxSize
"ProtocolValidator::addValidator: too many validators"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../utils/OwnablePausable.sol"; import "./IValidator.sol"; c...
validatorsIndex.contains(validator)||size()<maxSize,"ProtocolValidator::addValidator: too many validators"
45,898
validatorsIndex.contains(validator)||size()<maxSize
"ProtocolValidator::validate: validator not found"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../utils/OwnablePausable.sol"; import "./IValidator.sol"; c...
validatorsIndex.contains(validator),"ProtocolValidator::validate: validator not found"
45,898
validatorsIndex.contains(validator)
"Purchase would exceed max supply of Fox"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
totalSupply().add(numberOfTokens)<=MAX_FOX,"Purchase would exceed max supply of Fox"
45,900
totalSupply().add(numberOfTokens)<=MAX_FOX
"New name is same as the current one"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
sha256(bytes(_name))!=sha256(bytes(foxNames[_tokenId])),"New name is same as the current one"
45,900
sha256(bytes(_name))!=sha256(bytes(foxNames[_tokenId]))
"Presale is open"
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /** * @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 (u...
!isPresaleOpen,"Presale is open"
46,021
!isPresaleOpen
"Installment Invalid."
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /** * @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 (u...
usersInvestments[msg.sender].add(msg.value)<=maxEthLimit&&usersInvestments[msg.sender].add(msg.value)>=minEthLimit,"Installment Invalid."
46,021
usersInvestments[msg.sender].add(msg.value)<=maxEthLimit&&usersInvestments[msg.sender].add(msg.value)>=minEthLimit
"Insufficient balance of presale contract!"
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.0; /** * @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 (u...
IToken(tokenAddress).transfer(msg.sender,tokenAmount),"Insufficient balance of presale contract!"
46,021
IToken(tokenAddress).transfer(msg.sender,tokenAmount)
null
/* Utilities & Common Modifiers */ contract Utils { /** constructor */ function Utils() public { } // verifies that an amount is greater than zero modifier greaterThanZero(uint256 _amount) { } // validates an address - currently only checks that it isn't null ...
bytes(_name).length>0&&bytes(_symbol).length>0
46,118
bytes(_name).length>0&&bytes(_symbol).length>0
"PERIODS_REG_MUST_BE_CONTRACT"
//SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.6.12; // Contracts import "../base/MigratorBase.sol"; // Interfaces import "../tokens/IMintableERC20.sol"; import "../rewards/IRewardsCalculator.sol"; import "./IRewardsMinter.sol"; import "../registries/IRewardPeriodsRegistry.sol"; // Libraries import "@openze...
rewardPeriodsRegistryAddress.isContract(),"PERIODS_REG_MUST_BE_CONTRACT"
46,137
rewardPeriodsRegistryAddress.isContract()
"TOKEN_MUST_BE_CONTRACT"
//SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.6.12; // Contracts import "../base/MigratorBase.sol"; // Interfaces import "../tokens/IMintableERC20.sol"; import "../rewards/IRewardsCalculator.sol"; import "./IRewardsMinter.sol"; import "../registries/IRewardPeriodsRegistry.sol"; // Libraries import "@openze...
tokenAddress.isContract(),"TOKEN_MUST_BE_CONTRACT"
46,137
tokenAddress.isContract()
"CALCULATOR_ISNT_ADDED"
//SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.6.12; // Contracts import "../base/MigratorBase.sol"; // Interfaces import "../tokens/IMintableERC20.sol"; import "../rewards/IRewardsCalculator.sol"; import "./IRewardsMinter.sol"; import "../registries/IRewardPeriodsRegistry.sol"; // Libraries import "@openze...
calculators[calculator].exists,"CALCULATOR_ISNT_ADDED"
46,137
calculators[calculator].exists
"NEW_CALCULATOR_MUST_BE_CONTRACT"
//SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.6.12; // Contracts import "../base/MigratorBase.sol"; // Interfaces import "../tokens/IMintableERC20.sol"; import "../rewards/IRewardsCalculator.sol"; import "./IRewardsMinter.sol"; import "../registries/IRewardPeriodsRegistry.sol"; // Libraries import "@openze...
newCalculator.isContract(),"NEW_CALCULATOR_MUST_BE_CONTRACT"
46,137
newCalculator.isContract()
"CALCULATOR_ALREADY_ADDED"
//SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.6.12; // Contracts import "../base/MigratorBase.sol"; // Interfaces import "../tokens/IMintableERC20.sol"; import "../rewards/IRewardsCalculator.sol"; import "./IRewardsMinter.sol"; import "../registries/IRewardPeriodsRegistry.sol"; // Libraries import "@openze...
!calculators[newCalculator].exists,"CALCULATOR_ALREADY_ADDED"
46,137
!calculators[newCalculator].exists
null
pragma solidity ^0.5.1; interface IERC20 { //function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); //function transfer(address recipient, uint256 amount) external returns (bool); //function allowance(address owner, address spend...
!blackList[_sender]
46,224
!blackList[_sender]
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
balances[msg.sender]>=totalAmount
46,316
balances[msg.sender]>=totalAmount
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
!frozenAccount[addresses[i]]
46,316
!frozenAccount[addresses[i]]
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
amounts[i]>0
46,316
amounts[i]>0
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
amounts[j]>0
46,316
amounts[j]>0
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
addresses[j]!=address(0)
46,316
addresses[j]!=address(0)
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
!frozenAccount[addresses[j]]
46,316
!frozenAccount[addresses[j]]
null
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwn...
balances[addresses[j]]>=amounts[j]
46,316
balances[addresses[j]]>=amounts[j]
"Must have ID to get Address"
pragma solidity ^0.5.0; library IdToAddressBiMap { struct Data { mapping(uint16 => address) idToAddress; mapping(address => uint16) addressToId; } function hasId(Data storage self, uint16 id) public view returns (bool) { } function hasAddress(Data storage self, address addr) ...
hasId(self,id),"Must have ID to get Address"
46,358
hasId(self,id)
"Must have Address to get ID"
pragma solidity ^0.5.0; library IdToAddressBiMap { struct Data { mapping(uint16 => address) idToAddress; mapping(address => uint16) addressToId; } function hasId(Data storage self, uint16 id) public view returns (bool) { } function hasAddress(Data storage self, address addr) ...
hasAddress(self,addr),"Must have Address to get ID"
46,358
hasAddress(self,addr)
"sorry, only human allowed"
pragma solidity ^0.4.24; // //////////////////////////////////////////////////////////////////////////////////////////////////// // ___ ___ ___ __ // ___ / /\ / /\ / /\ | |\ // /__/\ ...
AddressUtils.isContract(msg.sender)==false,"sorry, only human allowed"
46,363
AddressUtils.isContract(msg.sender)==false
"sorry, withdraw at least 1 finney"
pragma solidity ^0.4.24; // //////////////////////////////////////////////////////////////////////////////////////////////////// // ___ ___ ___ __ // ___ / /\ / /\ / /\ | |\ // /__/\ ...
players_[msg.sender].balance>=1finney,"sorry, withdraw at least 1 finney"
46,363
players_[msg.sender].balance>=1finney
"Hit stage limit"
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
supply+mint_num<=stageLimit[stage],"Hit stage limit"
46,409
supply+mint_num<=stageLimit[stage]
"Invalid signature"
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
checkSig(msg.sender,wl_max,signature),"Invalid signature"
46,409
checkSig(msg.sender,wl_max,signature)
"Exceed WL limit"
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
mint_num+currMintCount<=wl_max,"Exceed WL limit"
46,409
mint_num+currMintCount<=wl_max
"Exceed address mint limit"
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
mint_num+currMintCount<=stageAddrLimit[stage],"Exceed address mint limit"
46,409
mint_num+currMintCount<=stageAddrLimit[stage]
"Only creator allowed"
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
isCreatorRole[msg.sender],"Only creator allowed"
46,409
isCreatorRole[msg.sender]
null
contract Beanterra is ERC721, Ownable { using Strings for uint256; using ECDSA for bytes32; //NFT params string public baseURI; string public defaultURI; string public mycontractURI; uint256 private currentSupply; //mint parameters uint256 nextId; mapping(uint8 => uint256) public stagePric...
stageLimit[stage+1]!=0
46,409
stageLimit[stage+1]!=0
"address(0)"
contract ConvController { using SafeERC20 for IERC20; using SafeMath for uint256; address public governance; address public pendingGovernance; address public guardian; uint256 public effectTime; address public controller; address public reward; bool public unlocked; uin...
dTokens[_token]!=address(0),"address(0)"
46,675
dTokens[_token]!=address(0)
"locking"
contract ConvController { using SafeERC20 for IERC20; using SafeMath for uint256; address public governance; address public pendingGovernance; address public guardian; uint256 public effectTime; address public controller; address public reward; bool public unlocked; uin...
!locks[_token],"locking"
46,675
!locks[_token]
"!convertAt"
contract ConvController { using SafeERC20 for IERC20; using SafeMath for uint256; address public governance; address public pendingGovernance; address public guardian; uint256 public effectTime; address public controller; address public reward; bool public unlocked; uin...
convertAt[_token][msg.sender]<block.number,"!convertAt"
46,675
convertAt[_token][msg.sender]<block.number
"!address(0)"
contract ConvController { using SafeERC20 for IERC20; using SafeMath for uint256; address public governance; address public pendingGovernance; address public guardian; uint256 public effectTime; address public controller; address public reward; bool public unlocked; uin...
dTokens[_token]==address(0),"!address(0)"
46,675
dTokens[_token]==address(0)
"Campl.issue: not enough AMPL allowance"
pragma solidity 0.6.8; contract Campl is ERC20, ICompatibleDerivativeToken { using SafeMath for uint256; IERC20 internal ampl; uint256 constant private E26 = 1.00E26; constructor(IERC20 _ampl) public ERC20("Compatible AMPL", "CAMPL") { } function _beforeTokenTransfer(address from, address...
ampl.allowance(_msgSender(),address(this))>=underlyingAmount,"Campl.issue: not enough AMPL allowance"
46,682
ampl.allowance(_msgSender(),address(this))>=underlyingAmount
"Campl.issue: not enough AMPL balance"
pragma solidity 0.6.8; contract Campl is ERC20, ICompatibleDerivativeToken { using SafeMath for uint256; IERC20 internal ampl; uint256 constant private E26 = 1.00E26; constructor(IERC20 _ampl) public ERC20("Compatible AMPL", "CAMPL") { } function _beforeTokenTransfer(address from, address...
ampl.balanceOf(_msgSender())>=underlyingAmount,"Campl.issue: not enough AMPL balance"
46,682
ampl.balanceOf(_msgSender())>=underlyingAmount
"claimTopic already exists"
pragma solidity ^0.5.10; contract ClaimTopicsRegistry is IClaimTopicsRegistry, Ownable { uint256[] claimTopics; /** * @notice Add a trusted claim topic (For example: KYC=1, AML=2). * Only owner can call. * * @param claimTopic The claim topic index */ function addClaimTopic(uint2...
claimTopics[i]!=claimTopic,"claimTopic already exists"
46,717
claimTopics[i]!=claimTopic