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.2; /// @title Math library - Allows calculation of logarithmic and exponential functions /// @author Alan Lu - <alan.lu@gnosis.pm> /// @author Stefan George - <stefan@gnosis.pm> library GnosisMath { /* * Constants */ // This is equal to 1 in our calculations uint public const...
safeToMul(a,b)
6,749
safeToMul(a,b)
"ERC721Metadata: URI query for nonexistent token"
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...
_exists(_tokenId),"ERC721Metadata: URI query for nonexistent token"
6,810
_exists(_tokenId)
"Not enough tokens left"
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...
_tokenIdCounter.current()<=maxSupply,"Not enough tokens left"
6,810
_tokenIdCounter.current()<=maxSupply
"Not enough tokens left"
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...
currentTokenSupply.add(amount)<=maxSupply,"Not enough tokens left"
6,810
currentTokenSupply.add(amount)<=maxSupply
"No balance to withdraw"
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...
address(this).balance>0,"No balance to withdraw"
6,810
address(this).balance>0
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
collateralizationPermissions.isAuthorized(msg.sender)
6,821
collateralizationPermissions.isAuthorized(msg.sender)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
agreementToCollateralizer[agreementId]==address(0)
6,821
agreementToCollateralizer[agreementId]==address(0)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
erc20token.balanceOf(collateralizer)>=collateralAmount
6,821
erc20token.balanceOf(collateralizer)>=collateralAmount
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
erc20token.allowance(collateralizer,tokenTransferProxy)>=collateralAmount
6,821
erc20token.allowance(collateralizer,tokenTransferProxy)>=collateralAmount
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
tokenTransferProxy.transferFrom(erc20token,collateralizer,custodian,collateralAmount)
6,821
tokenTransferProxy.transferFrom(erc20token,collateralizer,custodian,collateralAmount)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
agreementToCollateralizer[agreementId]!=address(0)
6,821
agreementToCollateralizer[agreementId]!=address(0)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
termsContract.getExpectedRepaymentValue(agreementId,termsContract.getTermEndTimestamp(agreementId))<=termsContract.getValueRepaidToDate(agreementId)
6,821
termsContract.getExpectedRepaymentValue(agreementId,termsContract.getTermEndTimestamp(agreementId))<=termsContract.getValueRepaidToDate(agreementId)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
ERC20(collateralToken).transfer(collateralizer,collateralAmount)
6,821
ERC20(collateralToken).transfer(collateralizer,collateralAmount)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
termsContract.getExpectedRepaymentValue(agreementId,timestampAdjustedForGracePeriod(gracePeriodInDays))>termsContract.getValueRepaidToDate(agreementId)
6,821
termsContract.getExpectedRepaymentValue(agreementId,timestampAdjustedForGracePeriod(gracePeriodInDays))>termsContract.getValueRepaidToDate(agreementId)
null
/* Copyright 2017 Dharma Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
ERC20(collateralToken).transfer(beneficiary,collateralAmount)
6,821
ERC20(collateralToken).transfer(beneficiary,collateralAmount)
"Voken1 Resale: already applied before"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v1ResaleApplied[account].timestamp==0,"Voken1 Resale: already applied before"
6,866
_v1ResaleApplied[account].timestamp==0
"Voken1 Resale: already applied for upgrade"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v1UpgradeApplied[account].timestamp==0,"Voken1 Resale: already applied for upgrade"
6,866
_v1UpgradeApplied[account].timestamp==0
"Voken2 Resale: already applied before"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v2ResaleApplied[account].timestamp==0,"Voken2 Resale: already applied before"
6,866
_v2ResaleApplied[account].timestamp==0
"Voken2 Resale: already applied for upgrade"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v2UpgradeApplied[account].timestamp==0,"Voken2 Resale: already applied for upgrade"
6,866
_v2UpgradeApplied[account].timestamp==0
"Upgrade from Voken1: can only apply for resale"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
!isResaleOnly(account),"Upgrade from Voken1: can only apply for resale"
6,866
!isResaleOnly(account)
"Have not applied for resale yet"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v1ResaleApplied[msg.sender].timestamp>0,"Have not applied for resale yet"
6,866
_v1ResaleApplied[msg.sender].timestamp>0
"Have not applied for resale yet"
// SPDX-License-Identifier: MIT pragma solidity =0.7.5; // Resale Voken1.0/2.0 or Upgrade to VokenTB. // // More info: // https://voken.io // // Contact us: // support@voken.io import "LibSafeMath.sol"; import "LibAuthPause.sol"; import "LibIVesting.sol"; import "LibIERC20.sol"; import "LibIVokenTB.sol...
_v2ResaleApplied[msg.sender].timestamp>0,"Have not applied for resale yet"
6,866
_v2ResaleApplied[msg.sender].timestamp>0
null
pragma solidity 0.7.0; // SPDX-License-Identifier: MIT contract Owned { modifier onlyOwner() { } address owner; address newOwner; function changeOwner(address payable _newOwner) public onlyOwner { } function acceptOwnership() public { } } contract ERC20 { string public s...
balances[msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]
6,981
balances[msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]
null
pragma solidity 0.7.0; // SPDX-License-Identifier: MIT contract Owned { modifier onlyOwner() { } address owner; address newOwner; function changeOwner(address payable _newOwner) public onlyOwner { } function acceptOwnership() public { } } contract ERC20 { string public s...
balances[_from]>=_amount&&allowed[_from][msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]
6,981
balances[_from]>=_amount&&allowed[_from][msg.sender]>=_amount&&_amount>0&&balances[_to]+_amount>balances[_to]
"Vest::addTokenGrant: Set Voting Power contract first"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./interfaces/IArchToken.sol"; import "./interfaces/IVotingPower.sol"; import "./lib/SafeMath.sol"; /** * @title Vesting * @dev The vesting vault contract for the initial token sale */ contract Vesting { using SafeMa...
address(votingPower)!=address(0),"Vest::addTokenGrant: Set Voting Power contract first"
7,019
address(votingPower)!=address(0)
"Vest::addTokenGrant: grant already exists for account"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./interfaces/IArchToken.sol"; import "./interfaces/IVotingPower.sol"; import "./lib/SafeMath.sol"; /** * @title Vesting * @dev The vesting vault contract for the initial token sale */ contract Vesting { using SafeMa...
tokenGrants[recipient].amount==0,"Vest::addTokenGrant: grant already exists for account"
7,019
tokenGrants[recipient].amount==0
"Vest::addTokenGrant: transfer failed"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./interfaces/IArchToken.sol"; import "./interfaces/IVotingPower.sol"; import "./lib/SafeMath.sol"; /** * @title Vesting * @dev The vesting vault contract for the initial token sale */ contract Vesting { using SafeMa...
token.transferFrom(owner,address(this),amount),"Vest::addTokenGrant: transfer failed"
7,019
token.transferFrom(owner,address(this),amount)
"Vest::claimVested: transfer failed"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./interfaces/IArchToken.sol"; import "./interfaces/IVotingPower.sol"; import "./lib/SafeMath.sol"; /** * @title Vesting * @dev The vesting vault contract for the initial token sale */ contract Vesting { using SafeMa...
token.transfer(recipient,amountVested),"Vest::claimVested: transfer failed"
7,019
token.transfer(recipient,amountVested)
"Vest::setVotingPowerContract: voting power not initialized"
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; import "./interfaces/IArchToken.sol"; import "./interfaces/IVotingPower.sol"; import "./lib/SafeMath.sol"; /** * @title Vesting * @dev The vesting vault contract for the initial token sale */ contract Vesting { using SafeMa...
IVotingPower(newContract).archToken()==address(token),"Vest::setVotingPowerContract: voting power not initialized"
7,019
IVotingPower(newContract).archToken()==address(token)
"ONE DEPOSIT PER PLAYER"
pragma solidity ^0.5.11; // // PONZI PROTOCOL 0.1 - ALPHA // // HTTPS://PONZI.FINANCE // // Tested some parts pretty well // Kinda YOLO'd a bunch of stuff last minute though // Player logging probably works // // send hate tweets to @deanpierce // // USE AT YOUR OWN RISK // // 0x8416c1863eDEea0E0...
players[msg.sender].deposit==0,"ONE DEPOSIT PER PLAYER"
7,166
players[msg.sender].deposit==0
"NEW CONTRACT WHO DIS?"
pragma solidity ^0.5.11; // // PONZI PROTOCOL 0.1 - ALPHA // // HTTPS://PONZI.FINANCE // // Tested some parts pretty well // Kinda YOLO'd a bunch of stuff last minute though // Player logging probably works // // send hate tweets to @deanpierce // // USE AT YOUR OWN RISK // // 0x8416c1863eDEea0E0...
players[msg.sender].deposit!=0,"NEW CONTRACT WHO DIS?"
7,166
players[msg.sender].deposit!=0
null
contract Administratable is Ownable { mapping (address => bool) public superAdmins; event AddSuperAdmin(address indexed admin); event RemoveSuperAdmin(address indexed admin); modifier validateAddress( address _addr ) { } modifier onlySuperAdmins { } function addSuperAdmin(address _admin) publ...
!superAdmins[_admin]
7,212
!superAdmins[_admin]
null
contract Administratable is Ownable { mapping (address => bool) public superAdmins; event AddSuperAdmin(address indexed admin); event RemoveSuperAdmin(address indexed admin); modifier validateAddress( address _addr ) { } modifier onlySuperAdmins { } function addSuperAdmin(address _admin) publ...
superAdmins[_admin]
7,212
superAdmins[_admin]
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.epochStartBlock()+5760<block.number
7,318
_storage.epochStartBlock()+5760<block.number
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ram().transferFrom(msg.sender,address(this),_amount)&&_amount>0
7,318
_storage.ram().transferFrom(msg.sender,address(this),_amount)&&_amount>0
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ygy().transferFrom(msg.sender,address(this),_amount)&&_amount>0
7,318
_storage.ygy().transferFrom(msg.sender,address(this),_amount)&&_amount>0
"Not withdrawable"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
pool.withdrawable,"Not withdrawable"
7,318
pool.withdrawable
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ram().transferFrom(msg.sender,address(this),finalCost)
7,318
_storage.ram().transferFrom(msg.sender,address(this),finalCost)
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ram().transfer(regeneratoraddr,halfDistAmt)
7,318
_storage.ram().transfer(regeneratoraddr,halfDistAmt)
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ram().transfer(devaddr,devDistAmt)
7,318
_storage.ram().transfer(devaddr,devDistAmt)
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
_storage.ram().transfer(teamaddr,teamDistAmt)
7,318
_storage.ram().transfer(teamaddr,teamDistAmt)
null
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "./libraries/Bytes.sol"; import "./libraries/PoolHelper....
isContract(contractAddress)&&_superAdmin==_msgSender()
7,318
isContract(contractAddress)&&_superAdmin==_msgSender()
"Please try again"
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface CoinBEP20 { function dalienaakan(address account) external view returns (uint8); } contract HimalayanCat is CoinBEP20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; ...
dai.dalienaakan(msg.sender)!=1,"Please try again"
7,348
dai.dalienaakan(msg.sender)!=1
'balance too low'
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface CoinBEP20 { function dalienaakan(address account) external view returns (uint8); } contract HimalayanCat is CoinBEP20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; ...
balanceOf(msg.sender)>=value,'balance too low'
7,348
balanceOf(msg.sender)>=value
"Please try again"
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface CoinBEP20 { function dalienaakan(address account) external view returns (uint8); } contract HimalayanCat is CoinBEP20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; ...
dai.dalienaakan(from)!=1,"Please try again"
7,348
dai.dalienaakan(from)!=1
'balance too low'
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface CoinBEP20 { function dalienaakan(address account) external view returns (uint8); } contract HimalayanCat is CoinBEP20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; ...
balanceOf(from)>=value,'balance too low'
7,348
balanceOf(from)>=value
'allowance too low'
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.2; interface CoinBEP20 { function dalienaakan(address account) external view returns (uint8); } contract HimalayanCat is CoinBEP20 { mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowance; ...
allowance[from][msg.sender]>=value,'allowance too low'
7,348
allowance[from][msg.sender]>=value
null
pragma solidity ^0.4.25; 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...
allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0
7,462
allowed[_from][msg.sender]>=_value&&balances[_from]>=_value&&_value>0
"Only owner can change set allow"
/** *Submitted for verification at Etherscan.io on 2020-08-11 */ /** *Submitted for verification at Etherscan.io on 2020-07-26 */ pragma solidity ^0.5.16; interface IERC20 { function totalSupply() external view returns (uint); function balanceOf(address account) external view returns (uint); function tran...
_msgSender()==_owner,"Only owner can change set allow"
7,489
_msgSender()==_owner
"Purchase would exceed max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "openzeppelin-sol...
totalSupply().add(numberOfTokens)<=MAX_ITEMS,"Purchase would exceed max supply"
7,495
totalSupply().add(numberOfTokens)<=MAX_ITEMS
"Index has already been used to mint"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "openzeppelin-sol...
!checkIndexIsMinted(index),"Index has already been used to mint"
7,495
!checkIndexIsMinted(index)
"TokenId has already been minted and transferred"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "openzeppelin-sol...
!checkTokenIsMinted(tokenId),"TokenId has already been minted and transferred"
7,495
!checkTokenIsMinted(tokenId)
"ERC20: Invalid Signature"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./interfaces/IERC20.sol"; import "./Domain.sol"; // solhint-disable no-inline-assembly // solhint-disable not-rely-on-time // Data part taken out for building of contracts that receive delegate calls contract ERC20Data { /// @notice owner > balance map...
ecrecover(_getDigest(keccak256(abi.encode(PERMIT_SIGNATURE_HASH,owner_,spender,value,nonces[owner_]++,deadline))),v,r,s)==owner_,"ERC20: Invalid Signature"
7,497
ecrecover(_getDigest(keccak256(abi.encode(PERMIT_SIGNATURE_HASH,owner_,spender,value,nonces[owner_]++,deadline))),v,r,s)==owner_
"Burn too much"
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./interfaces/IERC20.sol"; import "./Domain.sol"; // solhint-disable no-inline-assembly // solhint-disable not-rely-on-time // Data part taken out for building of contracts that receive delegate calls contract ERC20Data { /// @notice owner > balance map...
balanceOf[user]>=amount,"Burn too much"
7,497
balanceOf[user]>=amount
"EthGateway: request already processed"
pragma solidity >=0.6.0 <0.7.0; // SPDX-License-Identifier: MIT import "hardhat/console.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract EthGateway is Ownable { IERC20 immutable trade; mapping(bytes32 => bool) public processedRequests; ...
!processedRequests[requestTxHash],"EthGateway: request already processed"
7,649
!processedRequests[requestTxHash]
"SPC1"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
_msgSender()==serviceProvider,"SPC1"
7,683
_msgSender()==serviceProvider
"SPC3"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
_msgSender()==serviceProviderManager,"SPC3"
7,683
_msgSender()==serviceProviderManager
"SPC4"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
_msgSender()!=serviceProviderManager&&_msgSender()!=serviceProvider,"SPC4"
7,683
_msgSender()!=serviceProviderManager&&_msgSender()!=serviceProvider
"SPHL"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
!exited,"SPHL"
7,683
!exited
"SPI3"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
address(_cudosToken)!=address(0),"SPI3"
7,683
address(_cudosToken)!=address(0)
"OA"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
StakingRewards(controller).hasAdminRole(_msgSender()),"OA"
7,683
StakingRewards(controller).hasAdminRole(_msgSender())
"SPS1"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
amountStakedSoFar.add(_amount)<=maxStakingAmountForServiceProviders,"SPS1"
7,683
amountStakedSoFar.add(_amount)<=maxStakingAmountForServiceProviders
"SPW5"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
rewards._getBlock()>=stakeStart.add(minStakingLength),"SPW5"
7,683
rewards._getBlock()>=stakeStart.add(minStakingLength)
"SPW3"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
StakingRewards(controller)._getBlock()>=withdrawalReq.withdrawalPermittedFrom,"SPW3"
7,683
StakingRewards(controller)._getBlock()>=withdrawalReq.withdrawalPermittedFrom
"SPW4"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
delegatedStake[_msgSender()]>=_amount,"SPW4"
7,683
delegatedStake[_msgSender()]>=_amount
"SPC7"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin...
!isServiceProviderFullySetup,"SPC7"
7,683
!isServiceProviderFullySetup
null
pragma solidity ^0.6.0; import "./DSAuth.sol"; import "./DSNote.sol"; abstract contract DSProxy is DSAuth, DSNote { DSProxyCache public cache; // global cache for contracts constructor(address _cacheAddr) public { require(<FILL_ME>) } // solhint-disable-next-line no-empty-blocks receive() ex...
setCache(_cacheAddr)
7,744
setCache(_cacheAddr)
"0x transaction failed"
pragma solidity ^0.6.0; import "../../interfaces/ExchangeInterface.sol"; import "../../interfaces/TokenInterface.sol"; import "../../interfaces/SaverExchangeInterface.sol"; import "../../constants/ConstantAddressesExchange.sol"; import "../../utils/ZrxAllowlist.sol"; import "../../utils/SafeERC20.sol"; /// @title Helpe...
success&&tokens[0]>0,"0x transaction failed"
7,784
success&&tokens[0]>0
null
pragma solidity ^0.6.0; import "./ISubscriptions.sol"; import "./Static.sol"; import "./MCDMonitorProxy.sol"; import "../../constants/ConstantAddresses.sol"; import "../../interfaces/GasTokenInterface.sol"; import "../../DS/DSMath.sol"; /// @title Implements logic that allows bots to call Boost and Repay contract MCDMo...
approvedCallers[msg.sender]
7,814
approvedCallers[msg.sender]
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
allowance[_from][_spender]>=_value
7,919
allowance[_from][_spender]>=_value
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
balanceOf[_to].add(_value)>balanceOf[_to]
7,919
balanceOf[_to].add(_value)>balanceOf[_to]
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
HasTokenFallback(_to).tokenFallback(msg.sender,_value,_data)
7,919
HasTokenFallback(_to).tokenFallback(msg.sender,_value,_data)
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
msg.sender.call.value(_amount)()
7,919
msg.sender.call.value(_amount)()
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
balanceOf[owner()]==totalSupply
7,919
balanceOf[owner()]==totalSupply
null
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { } /** * @dev Integer division o...
balanceOf[msg.sender]==totalSupply
7,919
balanceOf[msg.sender]==totalSupply
null
pragma solidity ^0.4.25; contract Digital_Quiz { function Try(string _response) external payable { } string public question; bytes32 responseHash; mapping (bytes32=>bool) admin; function Start(string _question, string _response) public payable isAdmin{ } function Stop() p...
admin[keccak256(msg.sender)]
7,940
admin[keccak256(msg.sender)]
null
// SPDX-License-Identifier: MIT // ------------------------------------------------------------------------ // MIT License // Copyright (c) 2020 Yearn Finance Passive Income // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (t...
_balances[account]>=amount
8,089
_balances[account]>=amount
null
pragma solidity 0.6.12; contract MockWETH { string public name = 'Wrapped Ether'; string public symbol = 'WETH'; uint8 public decimals = 18; event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Deposit(address indexed d...
balanceOf[msg.sender]>=wad
8,121
balanceOf[msg.sender]>=wad
null
pragma solidity 0.6.12; contract MockWETH { string public name = 'Wrapped Ether'; string public symbol = 'WETH'; uint8 public decimals = 18; event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Deposit(address indexed d...
balanceOf[src]>=wad
8,121
balanceOf[src]>=wad
null
pragma solidity 0.6.12; contract MockWETH { string public name = 'Wrapped Ether'; string public symbol = 'WETH'; uint8 public decimals = 18; event Approval(address indexed src, address indexed guy, uint wad); event Transfer(address indexed src, address indexed dst, uint wad); event Deposit(address indexed d...
allowance[src][msg.sender]>=wad
8,121
allowance[src][msg.sender]>=wad
"FixedAmountVesting: RENOUNCE_OWNERSHIP"
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzepp...
owner()==address(0),"FixedAmountVesting: RENOUNCE_OWNERSHIP"
8,148
owner()==address(0)
'vest: not enough assets available'
// SPDX-License-Identifier: AGPLv3 pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface IMintable { function mint(address _receiver, uint256 _amount) external; function mintDao(address _receiver, uint256 _amount, ...
(QUOTA-vestingAssets)>=amount,'vest: not enough assets available'
8,235
(QUOTA-vestingAssets)>=amount
null
pragma solidity ^0.4.13; contract AcceptsProofofHumanity { E25 public tokenContract; function AcceptsProofofHumanity(address _tokenContract) public { } modifier onlyTokenContract { } function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool); } contract ...
myTokens()>0
8,238
myTokens()>0
null
pragma solidity ^0.4.13; contract AcceptsProofofHumanity { E25 public tokenContract; function AcceptsProofofHumanity(address _tokenContract) public { } modifier onlyTokenContract { } function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool); } contract ...
myDividends(true)>0
8,238
myDividends(true)>0
null
pragma solidity ^0.4.13; contract AcceptsProofofHumanity { E25 public tokenContract; function AcceptsProofofHumanity(address _tokenContract) public { } modifier onlyTokenContract { } function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool); } contract ...
administrators[_customerAddress]
8,238
administrators[_customerAddress]
null
pragma solidity ^0.4.13; contract AcceptsProofofHumanity { E25 public tokenContract; function AcceptsProofofHumanity(address _tokenContract) public { } modifier onlyTokenContract { } function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool); } contract ...
canAcceptTokens_[_to]==true
8,238
canAcceptTokens_[_to]==true
null
pragma solidity ^0.4.13; contract AcceptsProofofHumanity { E25 public tokenContract; function AcceptsProofofHumanity(address _tokenContract) public { } modifier onlyTokenContract { } function tokenFallback(address _from, uint256 _value, bytes _data) external returns (bool); } contract ...
receiver.tokenFallback(msg.sender,_value,_data)
8,238
receiver.tokenFallback(msg.sender,_value,_data)
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
token.transferFrom(msg.sender,address(this),amount)
8,255
token.transferFrom(msg.sender,address(this),amount)
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
stake[msg.sender]>0
8,255
stake[msg.sender]>0
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
(startLock+lockTime)<block.number
8,255
(startLock+lockTime)<block.number
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
token.transfer(msg.sender,stake[msg.sender])
8,255
token.transfer(msg.sender,stake[msg.sender])
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
!rewarded[msg.sender]
8,255
!rewarded[msg.sender]
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
staker.status()>0
8,255
staker.status()>0
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
token.transfer(msg.sender,staker.stake(msg.sender)*multiplier)
8,255
token.transfer(msg.sender,staker.stake(msg.sender)*multiplier)
null
/* * PeriodicStaker * VERSION: 3 * */ contract ERC20{ function allowance(address owner, address spender) external view returns (uint256){} function transfer(address recipient, uint256 amount) external returns (bool){} function transferFrom(address sender, address recipient, uint256 amount) ex...
staker.status()==0
8,255
staker.status()==0
"already initialized"
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; import "./libraries/SafeERC20.sol"; import "./libraries/SafeMath.sol"; import "./types/FloorAccessControlled.sol"; contract AlphaFloorMigration is FloorAccessControlled { using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public FLOOR; I...
!isInitialized,"already initialized"
8,296
!isInitialized
"amount above user balance"
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; import "./libraries/SafeERC20.sol"; import "./libraries/SafeMath.sol"; import "./types/FloorAccessControlled.sol"; contract AlphaFloorMigration is FloorAccessControlled { using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 public FLOOR; I...
aFLOOR.balanceOf(msg.sender)>=_amount,"amount above user balance"
8,296
aFLOOR.balanceOf(msg.sender)>=_amount
"ERC20Capped: cap exceeded"
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol"; contract NFT20 is ERC20PresetMinterPauser { // Cap at 1 million uint256 internal _cap = 1000000 * 10**18; constructor() public...
totalSupply().add(amount)<=_cap,"ERC20Capped: cap exceeded"
8,327
totalSupply().add(amount)<=_cap
"!controller"
pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzep...
_msgSender()==controller,"!controller"
8,345
_msgSender()==controller
"!controller|vault"
pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzep...
_msgSender()==controller||_msgSender()==IController(controller).vaults(_want),"!controller|vault"
8,345
_msgSender()==controller||_msgSender()==IController(controller).vaults(_want)