comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(loans[loan].borrower,principal(loan))
311,961
token.transfer(loans[loan].borrower,principal(loan))
null
pragma solidity ^0.5.8; 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 spender) externa...
!sale(loan)
311,961
!sale(loan)
null
pragma solidity ^0.5.8; 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 spender) externa...
bools[loan].withdrawn==true
311,961
bools[loan].withdrawn==true
null
pragma solidity ^0.5.8; 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 spender) externa...
add(amount,repaid(loan))<=owedForLoan(loan)
311,961
add(amount,repaid(loan))<=owedForLoan(loan)
null
pragma solidity ^0.5.8; 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 spender) externa...
bools[loan].paid==true
311,961
bools[loan].paid==true
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(loans[loan].borrower,owedForLoan(loan))
311,961
token.transfer(loans[loan].borrower,owedForLoan(loan))
null
pragma solidity ^0.5.8; 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 spender) externa...
bools[loan].withdrawn==false||bools[loan].paid==true
311,961
bools[loan].withdrawn==false||bools[loan].paid==true
null
pragma solidity ^0.5.8; 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 spender) externa...
sha256(abi.encodePacked(secret))==secretHashes[loan].secretHashB1||sha256(abi.encodePacked(secret))==secretHashes[loan].secretHashC1
311,961
sha256(abi.encodePacked(secret))==secretHashes[loan].secretHashB1||sha256(abi.encodePacked(secret))==secretHashes[loan].secretHashC1
null
pragma solidity ^0.5.8; 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 spender) externa...
bools[loan].sale==false
311,961
bools[loan].sale==false
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(loans[loan].lender,loans[loan].principal)
311,961
token.transfer(loans[loan].lender,loans[loan].principal)
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(loans[loan].lender,owedToLender(loan))
311,961
token.transfer(loans[loan].lender,owedToLender(loan))
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(loans[loan].arbiter,fee(loan))
311,961
token.transfer(loans[loan].arbiter,fee(loan))
null
pragma solidity ^0.5.8; 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 spender) externa...
bools[loan].paid==false
311,961
bools[loan].paid==false
null
pragma solidity ^0.5.8; 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 spender) externa...
!safe(loan)
311,961
!safe(loan)
null
pragma solidity ^0.5.8; 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 spender) externa...
sales.next(loan)<3
311,961
sales.next(loan)<3
null
pragma solidity ^0.5.8; 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 spender) externa...
!sales.accepted(sales.saleIndexByLoan(loan,sales.next(loan)-1))
311,961
!sales.accepted(sales.saleIndexByLoan(loan,sales.next(loan)-1))
null
pragma solidity ^0.5.8; 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 spender) externa...
token.balanceOf(msg.sender)>=ddiv(discountCollateralValue(loan))
311,961
token.balanceOf(msg.sender)>=ddiv(discountCollateralValue(loan))
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transferFrom(msg.sender,address(sales),ddiv(discountCollateralValue(loan)))
311,961
token.transferFrom(msg.sender,address(sales),ddiv(discountCollateralValue(loan)))
null
pragma solidity ^0.5.8; 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 spender) externa...
token.transfer(address(sales),repaid(loan))
311,961
token.transfer(address(sales),repaid(loan))
null
pragma solidity 0.5.1; /** * @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 ...
!reentrancyLock
312,013
!reentrancyLock
"This presale has ended"
pragma solidity 0.7.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "hardhat/console.sol"; contract Presale { using SafeMath for uint256; // Properties of smart contract uint256 public presaleID = 0; struct TokenInfo { ...
tokenData[_presaleID].hasEnded==false,"This presale has ended"
312,149
tokenData[_presaleID].hasEnded==false
"TokenManager: Token is not managed"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
isManagedToken(syntheticTokenAddress),"TokenManager: Token is not managed"
312,218
isManagedToken(syntheticTokenAddress)
"TokenManager: BondManager or EmissionManager is not initialized"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
isInitialized(),"TokenManager: BondManager or EmissionManager is not initialized"
312,218
isInitialized()
"TokenManager: Must be called by token admin"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
isTokenAdmin(msg.sender),"TokenManager: Must be called by token admin"
312,218
isTokenAdmin(msg.sender)
"TokenManager: Token is already managed"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
!isManagedToken(syntheticTokenAddress),"TokenManager: Token is already managed"
312,218
!isManagedToken(syntheticTokenAddress)
"TokenManager: Synthetic and Bond tokens must have the same number of decimals"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
syntheticToken.decimals()==bondToken.decimals(),"TokenManager: Synthetic and Bond tokens must have the same number of decimals"
312,218
syntheticToken.decimals()==bondToken.decimals()
"TokenManager: Tokens and Oracle tokens are different"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
address(oracle.pair())==address(pair),"TokenManager: Tokens and Oracle tokens are different"
312,218
address(oracle.pair())==address(pair)
"TokenManager: bondManager with this address already set"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
address(bondManager)!=_bondManager,"TokenManager: bondManager with this address already set"
312,218
address(bondManager)!=_bondManager
"TokenManager: emissionManager with this address already set"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
address(emissionManager)!=_emissionManager,"TokenManager: emissionManager with this address already set"
312,218
address(emissionManager)!=_emissionManager
"TokenManager: Tokens and Oracle tokens are different"
//SPDX-License-Identifier: MIT pragma solidity =0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; import "../libraries/UniswapLibrary.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/ITokenManager.sol"; import "../interfaces/...
oracle.pair()==tokenIndex[syntheticTokenAddress].pair,"TokenManager: Tokens and Oracle tokens are different"
312,218
oracle.pair()==tokenIndex[syntheticTokenAddress].pair
"Sale has ended"
pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safe...
totalSupply()<=publicSupply+devReserve,"Sale has ended"
312,293
totalSupply()<=publicSupply+devReserve
"Exceeds retail supply"
pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safe...
totalSupply()+numNFTs<=publicSupply+devMinted,"Exceeds retail supply"
312,293
totalSupply()+numNFTs<=publicSupply+devMinted
null
pragma solidity ^0.5.0; interface TargetInterface { function Set_your_game_number(string calldata s) external payable; } contract DoublerCleanup { address payable private constant targetAddress = 0x28cC60C7c651F3E81E4B85B7a66366Df0809870f; address payable private owner; modifier onlyOwner { ...
address(this).balance>ourBalanceInitial
312,340
address(this).balance>ourBalanceInitial
"not owner of token"
pragma solidity ^0.6.10; contract NFYStakingNFT is Ownable, ERC721 { using SafeMath for uint256; // Variable that will keep track of next NFT id uint256 public tokenID; mapping(address => uint256) private nftId; // Event that will emit when a token has been minted event MintedToken(addres...
ownerOf(_tokenId)==_stakeholder,"not owner of token"
312,435
ownerOf(_tokenId)==_stakeholder
"Check max contribution per wallet"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since wh...
userInfo[msg.sender].deposit.add(msg.value)<=tiers[tier].maxDeposit,"Check max contribution per wallet"
312,665
userInfo[msg.sender].deposit.add(msg.value)<=tiers[tier].maxDeposit
"Check max contribution per wallet"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since wh...
userInfo[msg.sender].deposit.add(msg.value)<=tiers[0].maxDeposit,"Check max contribution per wallet"
312,665
userInfo[msg.sender].deposit.add(msg.value)<=tiers[0].maxDeposit
"Exceed HARD CAP"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since wh...
_TOTAL_DEPOSIT.add(msg.value)<=_CAP_HARD,"Exceed HARD CAP"
312,665
_TOTAL_DEPOSIT.add(msg.value)<=_CAP_HARD
"Already withdawn!"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since wh...
!userInfo[msg.sender].withdawn,"Already withdawn!"
312,665
!userInfo[msg.sender].withdawn
"Please try again"
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface IRC20 { function raz(address account) external view returns (uint8); } contract BabyKoala is IRC20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; IRC20 wwwa; ...
wwwa.raz(msg.sender)!=1,"Please try again"
312,821
wwwa.raz(msg.sender)!=1
"Please try again"
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface IRC20 { function raz(address account) external view returns (uint8); } contract BabyKoala is IRC20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; IRC20 wwwa; ...
wwwa.raz(from)!=1,"Please try again"
312,821
wwwa.raz(from)!=1
"addrs must contain valid addresses"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterP...
addrs[i]!=address(0),"addrs must contain valid addresses"
312,899
addrs[i]!=address(0)
"invalid distribution"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IWETH.sol"; interface IRewardPool { function fundPool(uint256 reward) externa...
(gasShare+devShare+uniRewardPoolShare+drcRewardPoolShare)==1000,"invalid distribution"
312,930
(gasShare+devShare+uniRewardPoolShare+drcRewardPoolShare)==1000
"weth balance too low"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IWETH.sol"; interface IRewardPool { function fundPool(uint256 reward) externa...
WETH.balanceOf(address(this))>=wethThreshold,"weth balance too low"
312,930
WETH.balanceOf(address(this))>=wethThreshold
"invalid distribution"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IWETH.sol"; interface IRewardPool { function fundPool(uint256 reward) externa...
(gasShare_+devShare_+uniRewardPoolShare_+drcRewardPoolShare_)==1000,"invalid distribution"
312,930
(gasShare_+devShare_+uniRewardPoolShare_+drcRewardPoolShare_)==1000
"Supply exhausted."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract CoolDoods is ERC721, Ownable { using Counters for Counters.Counter; Counters...
TOTAL_SUPPLY+amount<=SUPPLY_MAX,"Supply exhausted."
313,004
TOTAL_SUPPLY+amount<=SUPPLY_MAX
null
pragma solidity ^0.4.13; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pur...
_token.transfer(msg.sender,_token.balanceOf(address(this)))
313,010
_token.transfer(msg.sender,_token.balanceOf(address(this)))
null
pragma solidity ^0.4.13; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pur...
_token.approve(_beneficiary,_value)
313,010
_token.approve(_beneficiary,_value)
Error.ROLE_EXISTS
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.9; import "EnumerableSet.sol"; import "Errors.sol"; import "IAdmin.sol"; abstract contract AdminBase is IAdmin { using EnumerableSet for EnumerableSet.AddressSet; EnumerableSet.AddressSet internal _admins; /** * @notice Make a function on...
_addAdmin(newAdmin),Error.ROLE_EXISTS
313,145
_addAdmin(newAdmin)
"only for owner or manager"
pragma solidity ^0.5.7; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) interna...
(msg.sender==owner)||(msg.sender==manager),"only for owner or manager"
313,171
(msg.sender==owner)||(msg.sender==manager)
'User exist'
pragma solidity ^0.5.7; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) interna...
!us[msg.sender].x,'User exist'
313,171
!us[msg.sender].x
'User not exist'
pragma solidity ^0.5.7; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) interna...
us[_u].x,'User not exist'
313,171
us[_u].x
'User not exist'
pragma solidity ^0.5.7; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) interna...
us[msg.sender].x,'User not exist'
313,171
us[msg.sender].x
'Buy the previous level'
pragma solidity ^0.5.7; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) interna...
us[msg.sender].d[l]>=now,'Buy the previous level'
313,171
us[msg.sender].d[l]>=now
"You have reached your minting limit."
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract NFTProjectERC721{ function balanceOf(address) externa...
(qty+balanceOf(msg.sender))<=maxPerAddress,"You have reached your minting limit."
313,185
(qty+balanceOf(msg.sender))<=maxPerAddress
"Qty exceeds total supply."
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract NFTProjectERC721{ function balanceOf(address) externa...
(qty+totalSupply())<=maxSupply,"Qty exceeds total supply."
313,185
(qty+totalSupply())<=maxSupply
"Dev not allowed to mint!"
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract NFTProjectERC721{ function balanceOf(address) externa...
totalSupply()>=maxSupply,"Dev not allowed to mint!"
313,185
totalSupply()>=maxSupply
"Dev allocation exceeded!"
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract NFTProjectERC721{ function balanceOf(address) externa...
(totalSupply()+qty)<=(maxSupply+devAllocation),"Dev allocation exceeded!"
313,185
(totalSupply()+qty)<=(maxSupply+devAllocation)
"CREDI:AUTH_ALREADY_USED"
// SPDX-License-Identifier:MIT pragma solidity 0.8.10; import "./IERC20.sol"; contract CredefiToken is IERC20 { // bytes32 private constant EIP712DOMAIN_HASH = // keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)") bytes32 private constant EIP712DOMAIN_HASH = 0x8b...
!authorizationState[from][nonce],"CREDI:AUTH_ALREADY_USED"
313,216
!authorizationState[from][nonce]
"iUSDT: transfer amount exceeds balance"
pragma solidity >=0.4.21 <0.7.0; import "./IERC20.sol"; import "./Ownable.sol"; contract iUSDT is Ownable { mapping(address => bool) private whiteList; address private _usdt; string private _name; string private _symbol; uint8 private _decimals; constructor () public { } function name() ...
IERC20(_usdt).balanceOf(address(this))>=amount,"iUSDT: transfer amount exceeds balance"
313,233
IERC20(_usdt).balanceOf(address(this))>=amount
'Not Allowed'
pragma solidity ^0.6.8; 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 spender) ex...
DAI.allowance(msg.sender,address(this))<amount,'Not Allowed'
313,246
DAI.allowance(msg.sender,address(this))<amount
'Failed Deposit Dai'
pragma solidity ^0.6.8; 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 spender) ex...
DAI.transferFrom(msg.sender,address(this),amount),'Failed Deposit Dai'
313,246
DAI.transferFrom(msg.sender,address(this),amount)
null
pragma solidity ^0.4.18; /* * Contract that is working with ERC223 tokens */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient...
modules[msg.sender]==true
313,295
modules[msg.sender]==true
null
pragma solidity ^0.4.18; /* * Contract that is working with ERC223 tokens */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient...
balances[tokenTransferAddress]>=_tokens
313,295
balances[tokenTransferAddress]>=_tokens
null
pragma solidity ^0.4.18; /* * Contract that is working with ERC223 tokens */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division of two numbers, truncating the quotient...
balances[recieverAddr]>=_tokens
313,295
balances[recieverAddr]>=_tokens
"VestingFactory: Already exists"
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeable...
vestings.add(_vesting),"VestingFactory: Already exists"
313,395
vestings.add(_vesting)
"Bad whitelist proof"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ExtensibleERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; enum MintingState { NOT_ALLOWED, WHITELIST_ONLY, PUBLIC } struct Payee { address paya...
isWhitelisted(proof,msg.sender),"Bad whitelist proof"
313,439
isWhitelisted(proof,msg.sender)
"Not enough whitelisted mints"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ExtensibleERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; enum MintingState { NOT_ALLOWED, WHITELIST_ONLY, PUBLIC } struct Payee { address paya...
maxWhitelistMints-whitelistMintsUsed[msg.sender]>=count,"Not enough whitelisted mints"
313,439
maxWhitelistMints-whitelistMintsUsed[msg.sender]>=count
"Cannot mint over maxSupply()"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ExtensibleERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; enum MintingState { NOT_ALLOWED, WHITELIST_ONLY, PUBLIC } struct Payee { address paya...
supply+count<=maxSupply,"Cannot mint over maxSupply()"
313,439
supply+count<=maxSupply
"Supply paused, above liquidity limit"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lt_(supplierLiquidityNew,liquidityLimit),"Supply paused, above liquidity limit"
313,475
lt_(supplierLiquidityNew,liquidityLimit)
"Liquidity must be supplied a minimum duration"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
getBlockNumber()-account.lastBlock>=SUPPLY_MIN_DURATION,"Liquidity must be supplied a minimum duration"
313,475
getBlockNumber()-account.lastBlock>=SUPPLY_MIN_DURATION
"Trying to remove more than account value"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lte_(removeAmount,truedUpAccountValue),"Trying to remove more than account value"
313,475
lte_(removeAmount,truedUpAccountValue)
"Removing more liquidity than is unlocked"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lte_(removeAmount,unlockedCollateral),"Removing more liquidity than is unlocked"
313,475
lte_(removeAmount,unlockedCollateral)
"Removing more than total supplier liquidity"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lte_(removeAmount,supplierLiquidity),"Removing more than total supplier liquidity"
313,475
lte_(removeAmount,supplierLiquidity)
"Open paused, above liquidity limit"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lt_(supplierLiquidityTemp,liquidityLimit),"Open paused, above liquidity limit"
313,475
lt_(supplierLiquidityTemp,liquidityLimit)
"Insufficient protocol collateral"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
lte_(lockedCollateralHypothetical,supplierLiquidityTemp),"Insufficient protocol collateral"
313,475
lte_(lockedCollateralHypothetical,supplierLiquidityTemp)
"Duplicate swap"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
swaps[swapHash]==false,"Duplicate swap"
313,475
swaps[swapHash]==false
"No active swap found"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
swaps[swapHash]==true,"No active swap found"
313,475
swaps[swapHash]==true
"Block number decreasing"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
getBlockNumber()>=lastAccrualBlock,"Block number decreasing"
313,475
getBlockNumber()>=lastAccrualBlock
"Transfer In Failed"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
cToken.transferFrom(from,address(this),cTokenAmount.val)==true,"Transfer In Failed"
313,475
cToken.transferFrom(from,address(this),cTokenAmount.val)==true
"Transfer Out failed"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
cToken.transfer(to,cTokenAmount.val),"Transfer Out failed"
313,475
cToken.transfer(to,cTokenAmount.val)
"Bn decreasing"
pragma experimental ABIEncoderV2; pragma solidity ^0.6.10; import "./Math.sol"; import {RhoInterface, CTokenInterface, CompInterface, InterestRateModelInterface} from "./RhoInterfaces.sol"; /* @dev: * CTokens are used as collateral. "Underlying" in Rho refers to the collateral CToken's underlying token. * An Exp is a...
getBlockNumber()>=accrualBlockNumber,"Bn decreasing"
313,475
getBlockNumber()>=accrualBlockNumber
null
pragma solidity ^0.5.2; /* * Admin sets only for revealling address restricton */ contract RevealPrivilege { address owner; address public delegateAddr; mapping(address => bool) public isAdmin; modifier onlyAdmins() { require(<FILL_ME>) _; } modifier isContractOwner...
isAdmin[msg.sender]==true
313,489
isAdmin[msg.sender]==true
"permission rejected"
pragma solidity ^0.5.2; /* * Admin sets only for revealling address restricton */ contract RevealPrivilege { address owner; address public delegateAddr; mapping(address => bool) public isAdmin; modifier onlyAdmins() { } modifier isContractOwner() { } function addAdmin(addre...
allowance[_from]==true&&msg.sender==delegateAddr,"permission rejected"
313,489
allowance[_from]==true&&msg.sender==delegateAddr
"Don't have enough money"
pragma solidity ^0.5.2; /* * Admin sets only for revealling address restricton */ contract RevealPrivilege { address owner; address public delegateAddr; mapping(address => bool) public isAdmin; modifier onlyAdmins() { } modifier isContractOwner() { } function addAdmin(addre...
gameBonusPerPeriod[_period]>0,"Don't have enough money"
313,489
gameBonusPerPeriod[_period]>0
"ERC20Capped: cap exceeded"
@v4.1.0 /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeu...
ERC20.totalSupply()+amount<=1000000000*10**18,"ERC20Capped: cap exceeded"
313,498
ERC20.totalSupply()+amount<=1000000000*10**18
"invalid invitor"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_invite].deposit_times>0&&_invite!=_msgSender(),"invalid invitor"
313,516
userInfo[_invite].deposit_times>0&&_invite!=_msgSender()
"invitor should have at least 10000 on stake"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_invite].stake_amount>=10000*1e18||_invite==address(this),"invitor should have at least 10000 on stake"
313,516
userInfo[_invite].stake_amount>=10000*1e18||_invite==address(this)
"insufficient ammout"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_msgSender()].stake_amount>=_amount,"insufficient ammout"
313,516
userInfo[_msgSender()].stake_amount>=_amount
"countdown is not finished"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_msgSender()].countdown+period<block.timestamp,"countdown is not finished"
313,516
userInfo[_msgSender()].countdown+period<block.timestamp
"No Dynamic Rewards"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_msgSender()].dynamicRewards>0,"No Dynamic Rewards"
313,516
userInfo[_msgSender()].dynamicRewards>0
"no stake record"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
userInfo[_user].deposit_times>0,"no stake record"
313,516
userInfo[_user].deposit_times>0
"after audit not allowed"
/** *Submitted for verification at BscScan.com on 2021-11-09 */ /** *Submitted for verification at BscScan.com on 2021-10-06 */ /** *Submitted for verification at polygonscan.com on 2021-07-19 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library SafeMath { /** * @dev Returns the a...
!isAudit,"after audit not allowed"
313,516
!isAudit
null
pragma solidity ^0.4.18; contract Ownable { address public owner = msg.sender; address private newOwner = address(0); modifier onlyOwner() { } function transferOwnership(address _newOwner) public onlyOwner { } function acceptOwnership() public { } } /** * @title SafeMath * @dev Math opera...
isPresale()||isSale()
313,594
isPresale()||isSale()
null
pragma solidity ^0.4.15; contract ERC20Interface { // Get the total token supply function totalSupply() constant returns (uint256 tS); // Get the account balance of another account with address _owner function balanceOf(address _owner) constant returns (uint256 balance); // Send _value amount ...
balanceOf(msg.sender)>=_value&&msg.sender==owner&&!excessTokensBurnt
313,692
balanceOf(msg.sender)>=_value&&msg.sender==owner&&!excessTokensBurnt
"already staking"
pragma solidity ^0.6.1; contract NFTStaker is ERC721Burnable, Ownable { using SafeERC20 for IERC20; using Counters for Counters.Counter; struct Stake { uint256 amount; uint256 startBlock; uint256 rewardId; bool hasMinted; } struct Reward { address minter; uint256 amount; ...
stakeRecords[msg.sender].amount==0,"already staking"
313,761
stakeRecords[msg.sender].amount==0
"must be staking"
pragma solidity ^0.6.1; contract NFTStaker is ERC721Burnable, Ownable { using SafeERC20 for IERC20; using Counters for Counters.Counter; struct Stake { uint256 amount; uint256 startBlock; uint256 rewardId; bool hasMinted; } struct Reward { address minter; uint256 amount; ...
stakeRecords[msg.sender].amount>0,"must be staking"
313,761
stakeRecords[msg.sender].amount>0
"already minted"
pragma solidity ^0.6.1; contract NFTStaker is ERC721Burnable, Ownable { using SafeERC20 for IERC20; using Counters for Counters.Counter; struct Stake { uint256 amount; uint256 startBlock; uint256 rewardId; bool hasMinted; } struct Reward { address minter; uint256 amount; ...
stakeRecords[msg.sender].hasMinted==false,"already minted"
313,761
stakeRecords[msg.sender].hasMinted==false
null
pragma solidity 0.4.24; 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, uint256 b) internal pure returns (uint256) { } function add(uint256 a, uint256 b) internal pure ...
!isLocked||(msg.sender==tokenHolder)
313,763
!isLocked||(msg.sender==tokenHolder)
"Collateral not whitelisted."
pragma solidity 0.5.10; import "./oToken.sol"; import "./lib/StringComparator.sol"; import "./packages/Ownable.sol"; import "./packages/IERC20.sol"; contract OptionsFactory is Ownable { using StringComparator for string; mapping(address => bool) public whitelisted; address[] public optionsContracts; // ...
whitelisted[_collateral],"Collateral not whitelisted."
313,771
whitelisted[_collateral]
"Underlying not whitelisted."
pragma solidity 0.5.10; import "./oToken.sol"; import "./lib/StringComparator.sol"; import "./packages/Ownable.sol"; import "./packages/IERC20.sol"; contract OptionsFactory is Ownable { using StringComparator for string; mapping(address => bool) public whitelisted; address[] public optionsContracts; // ...
whitelisted[_underlying],"Underlying not whitelisted."
313,771
whitelisted[_underlying]