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.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
_isApprovedOrOwner(msg.sender,tokenId)
22,545
_isApprovedOrOwner(msg.sender,tokenId)
null
pragma solidity 0.5.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
_checkOnERC721Received(from,to,childId,_data)
22,545
_checkOnERC721Received(from,to,childId,_data)
null
pragma solidity 0.5.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
_tokenResolvers[tokenId]==msg.sender
22,545
_tokenResolvers[tokenId]==msg.sender
null
pragma solidity 0.5.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
bytes(label).length!=0
22,545
bytes(label).length!=0
null
pragma solidity 0.5.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
_exists(childId)
22,545
_exists(childId)
null
pragma solidity 0.5.12; // solium-disable no-empty-blocks,error-reason /** * @title Registry * @dev An ERC721 Token see https://eips.ethereum.org/EIPS/eip-721. With * additional functions so other trusted contracts to interact with the tokens. */ contract Registry is IRegistry, ControllerRole, ERC721Burnable...
_checkOnERC721Received(address(0),to,_childId(tokenId,label),_data)
22,545
_checkOnERC721Received(address(0),to,_childId(tokenId,label),_data)
"can't undo blacklisting"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "../reserve/GoodReserveCDai.sol"; import "../Interfaces.sol"; import "../utils/DSMath.sol"; import "../utils/DAOUpgradeableContract.sol"; /** * @title GoodFundManager contract that transfer interest from the staking contract * to the reserve contract and...
(_isBlackListed||!rewardsForStakingContract[_stakingAddress].isBlackListed),"can't undo blacklisting"
22,553
(_isBlackListed||!rewardsForStakingContract[_stakingAddress].isBlackListed)
"ubi bridge transfer failed"
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "../reserve/GoodReserveCDai.sol"; import "../Interfaces.sol"; import "../utils/DSMath.sol"; import "../utils/DAOUpgradeableContract.sol"; /** * @title GoodFundManager contract that transfer interest from the staking contract * to the reserve contract and...
token.transferAndCall(nameService.getAddress("BRIDGE_CONTRACT"),gdUBI,abi.encodePacked(nameService.getAddress("UBI_RECIPIENT"))),"ubi bridge transfer failed"
22,553
token.transferAndCall(nameService.getAddress("BRIDGE_CONTRACT"),gdUBI,abi.encodePacked(nameService.getAddress("UBI_RECIPIENT")))
null
pragma solidity ^0.4.25; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, ...
referrals[_referree].referrer==address(0)||referrals[_referree].referrer==msg.sender
22,582
referrals[_referree].referrer==address(0)||referrals[_referree].referrer==msg.sender
null
pragma solidity ^0.4.25; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, ...
balances[msg.sender]>=_value&&_value>0&&now>blockedTill[msg.sender]
22,582
balances[msg.sender]>=_value&&_value>0&&now>blockedTill[msg.sender]
null
pragma solidity ^0.4.25; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { } function div(uint256 a, uint256 b) internal pure returns (uint256) { } function sub(uint256 a, ...
allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0&&now>blockedTill[_from]
22,582
allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0&&now>blockedTill[_from]
"New epoch not ready yet"
pragma solidity 0.6.12; // TROPVault distributes fees equally amongst staked pools // Have fun reading it. Hopefully it's bug-free. God bless. contract TimeLockLPTokenStaking { using SafeMath for uint256; using Address for address; // Info of each user. struct UserInfo { uint256 amount; ...
poolInfo.epochCalculationStartBlock+50000<block.number,"New epoch not ready yet"
22,684
poolInfo.epochCalculationStartBlock+50000<block.number
"stake should not have fee"
pragma solidity 0.6.12; // TROPVault distributes fees equally amongst staked pools // Have fun reading it. Hopefully it's bug-free. God bless. contract TimeLockLPTokenStaking { using SafeMath for uint256; using Address for address; // Info of each user. struct UserInfo { uint256 amount; ...
trop.balanceOf(address(this)).sub(balBefore)==_amount,"stake should not have fee"
22,684
trop.balanceOf(address(this)).sub(balBefore)==_amount
"withdraw: insufficient allowance"
pragma solidity 0.6.12; // TROPVault distributes fees equally amongst staked pools // Have fun reading it. Hopefully it's bug-free. God bless. contract TimeLockLPTokenStaking { using SafeMath for uint256; using Address for address; // Info of each user. struct UserInfo { uint256 amount; ...
pool.allowance[owner][msg.sender]>=_amount,"withdraw: insufficient allowance"
22,684
pool.allowance[owner][msg.sender]>=_amount
"Withdrawing from this pool is disabled"
pragma solidity 0.6.12; // TROPVault distributes fees equally amongst staked pools // Have fun reading it. Hopefully it's bug-free. God bless. contract TimeLockLPTokenStaking { using SafeMath for uint256; using Address for address; // Info of each user. struct UserInfo { uint256 amount; ...
pool.emergencyWithdrawable,"Withdrawing from this pool is disabled"
22,684
pool.emergencyWithdrawable
null
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract CryptoFoxes{ function buyTicket(address _to, uint _count) public payable{} function price(uint256 _count) public view returns (uin...
payable(_msgSender()).send(address(this).balance)
22,715
payable(_msgSender()).send(address(this).balance)
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 Inte...
isPayFeeSafe(_contractAddress)&&isGetLastModifiedNonceSafe(_contractAddress)
22,767
isPayFeeSafe(_contractAddress)&&isGetLastModifiedNonceSafe(_contractAddress)
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 Inte...
!consumed[hash]
22,767
!consumed[hash]
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 Inte...
signedHash.recover(_signature)==msg.sender
22,767
signedHash.recover(_signature)==msg.sender
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 Inte...
signedHash.recover(_signature)==_signer
22,767
signedHash.recover(_signature)==_signer
"Too many requested"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC1155Collection.sol"; import "./CollectionBase.sol"; /** * ERC1155 Collection Drop Contract (Base) */ abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Co...
(presalePurchaseLimit==0||useDynamicPresalePurchaseLimit||amount<=(presalePurchaseLimit-balance))&&(purchaseLimit==0||amount<=(purchaseLimit-balance)),"Too many requested"
22,816
(presalePurchaseLimit==0||useDynamicPresalePurchaseLimit||amount<=(presalePurchaseLimit-balance))&&(purchaseLimit==0||amount<=(purchaseLimit-balance))
"Already active"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC1155Collection.sol"; import "./CollectionBase.sol"; /** * ERC1155 Collection Drop Contract (Base) */ abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Co...
!active,"Already active"
22,816
!active
"Too many requested"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC1155Collection.sol"; import "./CollectionBase.sol"; /** * ERC1155 Collection Drop Contract (Base) */ abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Co...
purchaseCount+reserveCount+amount<=maxSupply,"Too many requested"
22,816
purchaseCount+reserveCount+amount<=maxSupply
"Too many requested"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC1155Collection.sol"; import "./CollectionBase.sol"; /** * ERC1155 Collection Drop Contract (Base) */ abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Co...
purchaseCount+reserveCount+totalAmount<=maxSupply,"Too many requested"
22,816
purchaseCount+reserveCount+totalAmount<=maxSupply
"Transfer locked until sale ends"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC1155Collection.sol"; import "./CollectionBase.sol"; /** * ERC1155 Collection Drop Contract (Base) */ abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Co...
!transferLocked||purchaseRemaining()==0||(active&&block.timestamp>=endTime)||from==address(0),"Transfer locked until sale ends"
22,816
!transferLocked||purchaseRemaining()==0||(active&&block.timestamp>=endTime)||from==address(0)
null
/* Kasei Inu (KASEI) Website: https://kaseiinu.space Telegram: https://t.me/kaseiInuETH */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; abstract contract Context { function _msgSender() internal view virtual returns (address) { } } interface IERC20 { function totalSupply() exte...
_msgSender()==_marsAddress||_msgSender()==_marketingAddress
22,862
_msgSender()==_marsAddress||_msgSender()==_marketingAddress
null
/* Kasei Inu (KASEI) Website: https://kaseiinu.space Telegram: https://t.me/kaseiInuETH */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; abstract contract Context { function _msgSender() internal view virtual returns (address) { } } interface IERC20 { function totalSupply() exte...
_msgSender()==_marsAddress||_msgSender()==_marketingAddress||_msgSender()==owner()
22,862
_msgSender()==_marsAddress||_msgSender()==_marketingAddress||_msgSender()==owner()
null
pragma solidity ^0.5.1; contract ERC20Interface { // 代币名称 string public name; // 代币符号或者说简写 string public symbol; // 代币小数点位数,代币的最小单位 uint8 public decimals; // 代币的发行总量 uint public totalSupply; // 实现代币交易,用于给某个地址转移代币 function transfer(address to, uint tokens) public return...
balanceOf[msg.sender]>=tokens
22,905
balanceOf[msg.sender]>=tokens
null
pragma solidity ^0.5.1; contract ERC20Interface { // 代币名称 string public name; // 代币符号或者说简写 string public symbol; // 代币小数点位数,代币的最小单位 uint8 public decimals; // 代币的发行总量 uint public totalSupply; // 实现代币交易,用于给某个地址转移代币 function transfer(address to, uint tokens) public return...
balanceOf[to]+tokens>=balanceOf[to]
22,905
balanceOf[to]+tokens>=balanceOf[to]
null
pragma solidity ^0.5.1; contract ERC20Interface { // 代币名称 string public name; // 代币符号或者说简写 string public symbol; // 代币小数点位数,代币的最小单位 uint8 public decimals; // 代币的发行总量 uint public totalSupply; // 实现代币交易,用于给某个地址转移代币 function transfer(address to, uint tokens) public return...
balanceOf[from]>=tokens
22,905
balanceOf[from]>=tokens
null
pragma solidity ^0.5.1; contract ERC20Interface { // 代币名称 string public name; // 代币符号或者说简写 string public symbol; // 代币小数点位数,代币的最小单位 uint8 public decimals; // 代币的发行总量 uint public totalSupply; // 实现代币交易,用于给某个地址转移代币 function transfer(address to, uint tokens) public return...
allowed[from][msg.sender]<=tokens
22,905
allowed[from][msg.sender]<=tokens
"caller not a minter"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
isMinter[_msgSender()]==true,"caller not a minter"
22,918
isMinter[_msgSender()]==true
"token limit reached"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
totalSupply()<tokenLimit,"token limit reached"
22,918
totalSupply()<tokenLimit
"batch exceeds token limit"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
totalSupply()+tokenIds.length<=tokenLimit,"batch exceeds token limit"
22,918
totalSupply()+tokenIds.length<=tokenLimit
"token owner not contract owner"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
ownerOf(tokenId)==owner(),"token owner not contract owner"
22,918
ownerOf(tokenId)==owner()
"bad maker ids"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
ownerOf(offer.makerIds[i])==offer.maker,"bad maker ids"
22,918
ownerOf(offer.makerIds[i])==offer.maker
"bad taker ids"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
ownerOf(offer.takerIds[i])==offer.taker,"bad taker ids"
22,918
ownerOf(offer.takerIds[i])==offer.taker
"offer cancelled or completed"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
_cancelledOrCompletedOffers[_offer_hash]!=true,"offer cancelled or completed"
22,918
_cancelledOrCompletedOffers[_offer_hash]!=true
"marketplace paused"
// ___ _ ___ _ _ _ // / __\_ __ _ _ _ __ | |_ ___ / __\(_)| |_ (_) ___ ___ // / / | '__|| | | || '_ \ | __|/ _ \ / / | || __|| | / _ \/ __| // / /___| | | |_| || |_) || |_| (_) |/ /___ | || |_ | || __/\__ \ // \____/|_| \__, || ._...
!marketPaused,"marketplace paused"
22,918
!marketPaused
null
pragma solidity ^0.4.24; contract Ownable { address public owner; constructor() public { } modifier onlyOwner() { } } contract MultiTransfer is Ownable { event Transacted( address msgSender, // 트랜잭션을 시작한 메시지의 발신자 주소 address toAddress, // 트랜잭션이 전송된 주소 ...
_to[ui]!=address(0)
23,035
_to[ui]!=address(0)
"Not eligible"
// SPDX-License-Identifier: MIT pragma solidity 0.6.8; import "./NFTX.sol"; contract NFTXv2 is NFTX { /* function transferERC721(uint256 vaultId, uint256 tokenId, address to) public virtual onlyOwner { store.nft(vaultId).transferFrom(address(this), to, tokenId); } functio...
isEligible(vaultId,nftId),"Not eligible"
23,144
isEligible(vaultId,nftId)
"Already owner"
// SPDX-License-Identifier: MIT pragma solidity 0.6.8; import "./NFTX.sol"; contract NFTXv2 is NFTX { /* function transferERC721(uint256 vaultId, uint256 tokenId, address to) public virtual onlyOwner { store.nft(vaultId).transferFrom(address(this), to, tokenId); } functio...
store.nft(vaultId).ownerOf(nftId)!=address(this),"Already owner"
23,144
store.nft(vaultId).ownerOf(nftId)!=address(this)
"Not received"
// SPDX-License-Identifier: MIT pragma solidity 0.6.8; import "./NFTX.sol"; contract NFTXv2 is NFTX { /* function transferERC721(uint256 vaultId, uint256 tokenId, address to) public virtual onlyOwner { store.nft(vaultId).transferFrom(address(this), to, tokenId); } functio...
store.nft(vaultId).ownerOf(nftId)==address(this),"Not received"
23,144
store.nft(vaultId).ownerOf(nftId)==address(this)
"Staking amount greater than ALPHA balance"
// SPDX-License-Identifier: ISC pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpg...
IERC20(alphaStaking.alpha()).balanceOf(address(this))>=amount,"Staking amount greater than ALPHA balance"
23,201
IERC20(alphaStaking.alpha()).balanceOf(address(this))>=amount
"Zero token balance"
// SPDX-License-Identifier: ISC pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpg...
IERC20(token).balanceOf(address(this))>0,"Zero token balance"
23,201
IERC20(token).balanceOf(address(this))>0
"Invalid proof length"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Merkle { function checkMembership( bytes32 leaf, uint256 index, bytes32 rootHash, bytes memory proof ) internal pure returns (bool) { require(<FILL_ME>) uint256 proofHeight = proof.length / 32; ...
proof.length%32==0,"Invalid proof length"
23,231
proof.length%32==0
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
addressType[_to]==0||addressType[_to]==_type
23,246
addressType[_to]==0||addressType[_to]==_type
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
addressType[_to]==0||addressType[_to]==1
23,246
addressType[_to]==0||addressType[_to]==1
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
addressType[_to]==0||addressType[_to]==2
23,246
addressType[_to]==0||addressType[_to]==2
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
canTransfer(msg.sender,_value)
23,246
canTransfer(msg.sender,_value)
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
safeSub(balances[_from],_value)>=releaseForSeed[_from][index]
23,246
safeSub(balances[_from],_value)>=releaseForSeed[_from][index]
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
safeSub(balances[_from],_value)>=releaseForTeamAndAdvisor[_from][index]
23,246
safeSub(balances[_from],_value)>=releaseForTeamAndAdvisor[_from][index]
null
pragma solidity ^0.4.18; contract SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns(uint256) { } function safeSub(uint256 a, uint256 b) internal pure returns(uint256) { } function safeMul(uint256 a, uint256 b) internal pure returns(uint256) { } function safeDiv(...
canTransfer(_from,_value)
23,246
canTransfer(_from,_value)
"Exceeds maximum supply of TheYogi"
pragma solidity ^0.8.0; /// @author Hammad Ghazi contract TheYogi is ERC721Enumerable, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenId; uint256 public constant MAX_YOGI = 3333; uint256 public price = 30000000000000000; //0.03 Ether string baseTokenURI; bo...
totalSupply()+_count<=MAX_YOGI,"Exceeds maximum supply of TheYogi"
23,253
totalSupply()+_count<=MAX_YOGI
'onlyOwner'
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol'; import './interfaces/external/INonfungiblePositionManager.sol'; import './i...
_msgSender()==owner,'onlyOwner'
23,369
_msgSender()==owner
'onlyOwnerOrManager'
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol'; import './interfaces/external/INonfungiblePositionManager.sol'; import './i...
_managers.contains(_msgSender())||_msgSender()==owner,'onlyOwnerOrManager'
23,369
_managers.contains(_msgSender())||_msgSender()==owner
null
// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol'; import './interfaces/external/INonfungiblePositionManager.sol'; import './i...
pm.ownerOf(tokenId)==address(this)
23,369
pm.ownerOf(tokenId)==address(this)
"total supply will exceed Max supply"
//created by ClassyDogs pragma solidity >=0.7.0 <0.9.0; contract ClassyDogs is ERC721A, Ownable { using Strings for uint256; string public BaseURI = "ipfs://QmX8RqZ1eGvX3gpeLoLtQNQqaGm7dMzxQyJGcUt4Nv5ke6/"; string public BaseExtension = ".json"; uint256 private ExpectedAmountOfTokens = 10000; ...
totalSupply()+quantity<=CurrentMaxSupply,"total supply will exceed Max supply"
23,387
totalSupply()+quantity<=CurrentMaxSupply
"you have exceeded the number of tokens that can be minted by one user"
//created by ClassyDogs pragma solidity >=0.7.0 <0.9.0; contract ClassyDogs is ERC721A, Ownable { using Strings for uint256; string public BaseURI = "ipfs://QmX8RqZ1eGvX3gpeLoLtQNQqaGm7dMzxQyJGcUt4Nv5ke6/"; string public BaseExtension = ".json"; uint256 private ExpectedAmountOfTokens = 10000; ...
whiteListed[msg.sender]+quantity<=10,"you have exceeded the number of tokens that can be minted by one user"
23,387
whiteListed[msg.sender]+quantity<=10
'MixinLockManager: caller does not have the LockManager role'
pragma solidity 0.5.17; // This contract mostly follows the pattern established by openzeppelin in // openzeppelin/contracts-ethereum-package/contracts/access/roles import '@openzeppelin/contracts-ethereum-package/contracts/access/Roles.sol'; contract MixinLockManagerRole { using Roles for Roles.Role; event LockMan...
isLockManager(msg.sender),'MixinLockManager: caller does not have the LockManager role'
23,394
isLockManager(msg.sender)
"Token is zero address"
pragma solidity ^0.6.0; contract GeoLock is Claimable { using SafeMath for uint; uint256 public constant MAX_LOCK_AMOUNT = 300000000000000000000000; uint256 public constant MULTIPLIER = 3; IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); // ...
address(_geoToken)!=address(0),"Token is zero address"
23,425
address(_geoToken)!=address(0)
"Total lock amount exceeds MAX_LOCK_AMOUNT"
pragma solidity ^0.6.0; contract GeoLock is Claimable { using SafeMath for uint; uint256 public constant MAX_LOCK_AMOUNT = 300000000000000000000000; uint256 public constant MULTIPLIER = 3; IERC1820Registry private _erc1820 = IERC1820Registry(0x1820a4B7618BdE71Dce8cdc73aAB6C95905faD24); // ...
_userAsset.add(_amount)<=MAX_LOCK_AMOUNT,"Total lock amount exceeds MAX_LOCK_AMOUNT"
23,425
_userAsset.add(_amount)<=MAX_LOCK_AMOUNT
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
address(to)!=address(0)
23,516
address(to)!=address(0)
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
balances[address(this)]>=tokens
23,516
balances[address(this)]>=tokens
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
balances[to]+tokens>=balances[to]
23,516
balances[to]+tokens>=balances[to]
"Sorry!, Already an Investor"
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
isInvertor[msg.sender]==false,"Sorry!, Already an Investor"
23,516
isInvertor[msg.sender]==false
"Insufficient Funds!"
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
transfer(address(this),_tokens),"Insufficient Funds!"
23,516
transfer(address(this),_tokens)
"Sorry!, Not investor"
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
isInvertor[msg.sender]==true,"Sorry!, Not investor"
23,516
isInvertor[msg.sender]==true
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
accounts[msg.sender].balance>0
23,516
accounts[msg.sender].balance>0
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
_transfer(msg.sender,owing.add(accounts[msg.sender].balance))
23,516
_transfer(msg.sender,owing.add(accounts[msg.sender].balance))
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
_transfer(msg.sender,owing)
23,516
_transfer(msg.sender,owing)
null
pragma solidity ^0.6.0; // SPDX-License-Identifier: UNLICENSED /** * @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...
balances[from]>=tokens
23,516
balances[from]>=tokens
null
pragma solidity ^0.4.8; contract Token{ uint256 public totalSupply; function balanceOf(address _owner) constant returns (uint256 balance); function transfer(address _to, uint256 _value) returns (bool success); function transferFrom(address _from, address _to, uint256 _value) returns (bool s...
_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData)
23,550
_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))),msg.sender,_value,this,_extraData)
"bad t0 balance"
pragma solidity 0.5.16; pragma experimental ABIEncoderV2; interface IUniswapGoblin { function lpToken() external view returns (IUniswapV2Pair); } contract UniswapGoblinConfig is Ownable { using SafeToken for address; using SafeMath for uint256; struct Config { bool acceptDebt; ...
t0bal.mul(100)<=r0.mul(101),"bad t0 balance"
23,551
t0bal.mul(100)<=r0.mul(101)
"bad t1 balance"
pragma solidity 0.5.16; pragma experimental ABIEncoderV2; interface IUniswapGoblin { function lpToken() external view returns (IUniswapV2Pair); } contract UniswapGoblinConfig is Ownable { using SafeToken for address; using SafeMath for uint256; struct Config { bool acceptDebt; ...
t1bal.mul(100)<=r1.mul(101),"bad t1 balance"
23,551
t1bal.mul(100)<=r1.mul(101)
"!stable"
pragma solidity 0.5.16; pragma experimental ABIEncoderV2; interface IUniswapGoblin { function lpToken() external view returns (IUniswapV2Pair); } contract UniswapGoblinConfig is Ownable { using SafeToken for address; using SafeMath for uint256; struct Config { bool acceptDebt; ...
isStable(goblin),"!stable"
23,551
isStable(goblin)
"Familiar has already been minted"
pragma solidity 0.7.6; /** * @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 wi...
!_exists(familiarIds[i]),"Familiar has already been minted"
23,617
!_exists(familiarIds[i])
"Ether amount sent is insufficient"
pragma solidity 0.7.6; /** * @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 wi...
(publicPrice*familiarIds.length)<=msg.value,"Ether amount sent is insufficient"
23,617
(publicPrice*familiarIds.length)<=msg.value
"Familiar has already been minted"
pragma solidity 0.7.6; /** * @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 wi...
!_exists(familiarId),"Familiar has already been minted"
23,617
!_exists(familiarId)
"MSW: Already owner"
pragma solidity ^0.4.24; /** * @title MultiSig * @dev Simple MultiSig using off-chain signing. * @author Julien Niset - <julien@argent.im> */ contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 10; // Incrementing counter to prevent replay attacks uint256 public nonce; // T...
isOwner[_owner]==false,"MSW: Already owner"
23,642
isOwner[_owner]==false
"MSW: Not an owner"
pragma solidity ^0.4.24; /** * @title MultiSig * @dev Simple MultiSig using off-chain signing. * @author Julien Niset - <julien@argent.im> */ contract MultiSigWallet { uint constant public MAX_OWNER_COUNT = 10; // Incrementing counter to prevent replay attacks uint256 public nonce; // T...
isOwner[_owner]==true,"MSW: Not an owner"
23,642
isOwner[_owner]==true
'Sender must be the maintainer'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import { AccessControl } from '../../../@openzeppelin/contracts/access/AccessControl.sol'; import {SynthereumTICInterface} from './interfaces/ITIC.sol'; import '../../../@openzeppelin/contracts/utils/ReentrancyGuard.s...
hasRole(MAINTAINER_ROLE,msg.sender),'Sender must be the maintainer'
23,737
hasRole(MAINTAINER_ROLE,msg.sender)
'Sender must be the liquidity provider'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import { AccessControl } from '../../../@openzeppelin/contracts/access/AccessControl.sol'; import {SynthereumTICInterface} from './interfaces/ITIC.sol'; import '../../../@openzeppelin/contracts/utils/ReentrancyGuard.s...
hasRole(LIQUIDITY_PROVIDER_ROLE,msg.sender),'Sender must be the liquidity provider'
23,737
hasRole(LIQUIDITY_PROVIDER_ROLE,msg.sender)
'Sender must be the validator'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import { AccessControl } from '../../../@openzeppelin/contracts/access/AccessControl.sol'; import {SynthereumTICInterface} from './interfaces/ITIC.sol'; import '../../../@openzeppelin/contracts/utils/ReentrancyGuard.s...
hasRole(VALIDATOR_ROLE,msg.sender),'Sender must be the validator'
23,737
hasRole(VALIDATOR_ROLE,msg.sender)
'UnorderedKeySet(101) - Key already exists in the set.'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; library HitchensUnorderedKeySetLib { struct Set { mapping(bytes32 => uint256) keyPointers; bytes32[] keyList; } function insert(Set storage self, bytes32 key) internal { require(key != 0x0, 'UnorderedKeySet(100) - Key cannot be 0x0'); ...
!exists(self,key),'UnorderedKeySet(101) - Key already exists in the set.'
23,739
!exists(self,key)
'UnorderedKeySet(102) - Key does not exist in the set.'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; library HitchensUnorderedKeySetLib { struct Set { mapping(bytes32 => uint256) keyPointers; bytes32[] keyList; } function insert(Set storage self, bytes32 key) internal { } function remove(Set storage self, bytes32 key) internal { re...
exists(self,key),'UnorderedKeySet(102) - Key does not exist in the set.'
23,739
exists(self,key)
'CR is more than 100%'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import '../../../../../@openzeppelin/contracts/math/SafeMath.sol'; import '../../../../../@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import './PerpetualPositionManagerPoolParty.sol'; import '../../common/impleme...
params.liquidatableParams.collateralRequirement.isGreaterThan(1),'CR is more than 100%'
23,748
params.liquidatableParams.collateralRequirement.isGreaterThan(1)
'Rewards are more than 100%'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import '../../../../../@openzeppelin/contracts/math/SafeMath.sol'; import '../../../../../@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import './PerpetualPositionManagerPoolParty.sol'; import '../../common/impleme...
params.liquidatableParams.sponsorDisputeRewardPct.add(params.liquidatableParams.disputerDisputeRewardPct).isLessThan(1),'Rewards are more than 100%'
23,748
params.liquidatableParams.sponsorDisputeRewardPct.add(params.liquidatableParams.disputerDisputeRewardPct).isLessThan(1)
'Liquidation not disputable'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import '../../../../../@openzeppelin/contracts/math/SafeMath.sol'; import '../../../../../@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import './PerpetualPositionManagerPoolParty.sol'; import '../../common/impleme...
(getCurrentTime()<_getLiquidationExpiry(liquidation))&&(liquidation.state==Status.PreDispute),'Liquidation not disputable'
23,748
(getCurrentTime()<_getLiquidationExpiry(liquidation))&&(liquidation.state==Status.PreDispute)
'Liquidation not withdrawable'
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import '../../../../../@openzeppelin/contracts/math/SafeMath.sol'; import '../../../../../@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import './PerpetualPositionManagerPoolParty.sol'; import '../../common/impleme...
(state>Status.PreDispute)||((_getLiquidationExpiry(liquidation)<=getCurrentTime())&&(state==Status.PreDispute)),'Liquidation not withdrawable'
23,748
(state>Status.PreDispute)||((_getLiquidationExpiry(liquidation)<=getCurrentTime())&&(state==Status.PreDispute))
null
contract PaintingOwnership is BitpaintingBase, ERC721 { /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "BitPaintings"; string public constant symbol = "BP"; ERC721Metadata public erc721Metadata; bytes4 constant InterfaceSignature_ERC16...
_owns(msg.sender,_tokenId)
23,786
_owns(msg.sender,_tokenId)
null
contract PaintingOwnership is BitpaintingBase, ERC721 { /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "BitPaintings"; string public constant symbol = "BP"; ERC721Metadata public erc721Metadata; bytes4 constant InterfaceSignature_ERC16...
_approvedFor(msg.sender,_tokenId)
23,786
_approvedFor(msg.sender,_tokenId)
null
contract PaintingOwnership is BitpaintingBase, ERC721 { /// @notice Name and symbol of the non fungible token, as defined in ERC721. string public constant name = "BitPaintings"; string public constant symbol = "BP"; ERC721Metadata public erc721Metadata; bytes4 constant InterfaceSignature_ERC16...
_owns(_from,_tokenId)
23,786
_owns(_from,_tokenId)
"BF: wallet locked"
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
!lockStorage.isLocked(_wallet),"BF: wallet locked"
23,806
!lockStorage.isLocked(_wallet)
"BF: must be wallet owner"
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
isOwner(_wallet,msg.sender),"BF: must be wallet owner"
23,806
isOwner(_wallet,msg.sender)
"BF: must be a wallet feature"
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
versionManager.isFeatureAuthorised(_wallet,msg.sender),"BF: must be a wallet feature"
23,806
versionManager.isFeatureAuthorised(_wallet,msg.sender)
"BF: must be owner or feature"
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
isFeatureAuthorisedInVersionManager(_wallet,_sender)||isOwner(_wallet,_sender),"BF: must be owner or feature"
23,806
isFeatureAuthorisedInVersionManager(_wallet,_sender)||isOwner(_wallet,_sender)
null
// SPDX-License-Identifier: MIT 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...
tokenBlacklist[msg.sender]==false
23,844
tokenBlacklist[msg.sender]==false
null
// SPDX-License-Identifier: MIT 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...
tokenBlacklist[_address]!=_isBlackListed
23,844
tokenBlacklist[_address]!=_isBlackListed
null
pragma solidity 0.4.24; /** * @title Roles * @author Francisco Giordano (@frangio) * @dev Library for managing addresses assigned to a Role. * See RBAC.sol for example usage. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an address access to this...
has(role,addr)
23,991
has(role,addr)