comment stringlengths 1 211 ⌀ | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"Staking : Set allowance first!" | pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `accoun... | token.allowance(msg.sender,address(this))>=_amount,"Staking : Set allowance first!" | 39,509 | token.allowance(msg.sender,address(this))>=_amount |
"Stake still in locked state" | pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `accoun... | canClaim(_pid,msg.sender),"Stake still in locked state" | 39,509 | canClaim(_pid,msg.sender) |
null | pragma solidity ^0.4.18;
contract NFTHouseGame {
struct Listing {
uint startPrice;
uint endPrice;
uint startedAt;
uint endsAt;
bool isAvailable;
}
enum HouseClasses {
Shack,
Apartment,
Bungalow,
House,
Mansion,
... | approvedTransfers[_tokenId]==newOwner | 39,556 | approvedTransfers[_tokenId]==newOwner |
null | pragma solidity ^0.4.18;
contract NFTHouseGame {
struct Listing {
uint startPrice;
uint endPrice;
uint startedAt;
uint endsAt;
bool isAvailable;
}
enum HouseClasses {
Shack,
Apartment,
Bungalow,
House,
Mansion,
... | (msg.sender==oldOwner)||(approvedTransfers[_tokenId]==newOwner) | 39,556 | (msg.sender==oldOwner)||(approvedTransfers[_tokenId]==newOwner) |
null | pragma solidity ^0.4.18;
contract NFTHouseGame {
struct Listing {
uint startPrice;
uint endPrice;
uint startedAt;
uint endsAt;
bool isAvailable;
}
enum HouseClasses {
Shack,
Apartment,
Bungalow,
House,
Mansion,
... | listing.isAvailable&&listing.endsAt>now | 39,556 | listing.isAvailable&&listing.endsAt>now |
"Cannot exceed max supply of Cheddaz" | pragma solidity ^0.8.0;
abstract contract SRSC {
function ownerOf(uint256 tokenId) public virtual view returns (address);
function tokenOfOwnerByIndex(address owner, uint256 index) public virtual view returns (uint256);
function balanceOf(address owner) external virtual view returns (uint256 balance);
}
con... | totalSupply()<maxCheddaz,"Cannot exceed max supply of Cheddaz" | 39,751 | totalSupply()<maxCheddaz |
null | pragma solidity ^0.4.24;
contract Ownable {
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
modifier onlyOwner() {
}
modifier notOwner(address _addr) {
}
address public owner;
constructor()
public
{
... | !published[hash] | 39,754 | !published[hash] |
'CentaurSwap: PENDING_SETTLEMENT' | // SPDX-License-Identifier: MIT
pragma solidity =0.6.12;
pragma experimental ABIEncoderV2;
import './CentaurLPToken.sol';
import './libraries/Initializable.sol';
import './libraries/SafeMath.sol';
import './libraries/CentaurMath.sol';
import './interfaces/IERC20.sol';
import './interfaces/ICentaurFactory.sol';
... | !ICentaurSettlement(settlement).hasPendingSettlement(_sender,address(this)),'CentaurSwap: PENDING_SETTLEMENT' | 39,758 | !ICentaurSettlement(settlement).hasPendingSettlement(_sender,address(this)) |
"erc20-approve-curvepool-failed" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./weth/WETH.sol";
import "./dydx/DydxFlashloanBase.sol";
import "./dydx/IDydx.sol";
import "./maker/IDssCdpManager.sol";
import "./maker/IDssProxyActions.sol";
im... | IERC20(Constants.USDC).approve(address(curve),usdcBal),"erc20-approve-curvepool-failed" | 39,801 | IERC20(Constants.USDC).approve(address(curve),usdcBal) |
"!weth-supply" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./weth/WETH.sol";
import "./dydx/DydxFlashloanBase.sol";
import "./dydx/IDydx.sol";
import "./maker/IDssCdpManager.sol";
import "./maker/IDssProxyActions.sol";
im... | IERC20(Constants.WETH).balanceOf(_solo)>=flashloanAmountWETH,"!weth-supply" | 39,801 | IERC20(Constants.WETH).balanceOf(_solo)>=flashloanAmountWETH |
"erc20-approve-curvepool-failed" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./weth/WETH.sol";
import "./dydx/DydxFlashloanBase.sol";
import "./dydx/IDydx.sol";
import "./maker/IDssCdpManager.sol";
import "./maker/IDssProxyActions.sol";
im... | IERC20(Constants.DAI).approve(_curvePool,daiBal),"erc20-approve-curvepool-failed" | 39,801 | IERC20(Constants.DAI).approve(_curvePool,daiBal) |
"Sender not Authorized" | // SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.7.0;
contract Authorizable {
// This contract allows a flexible authorization scheme
// The owner who can change authorization status
address public owner;
// A mapping from an address to its authorization status
mapping(address => bool) pub... | isAuthorized(msg.sender),"Sender not Authorized" | 39,842 | isAuthorized(msg.sender) |
"Unable to transfer" | pragma solidity 0.6.12;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IMedianOracle.sol";
/**
* @title ChainlinkToOracleBridge requests data from the Chainlink network and feeds it to xBTCs
* Dominance Oracle
* @dev This contract is design... | link.transfer(msg.sender,link.balanceOf(address(this))),"Unable to transfer" | 39,966 | link.transfer(msg.sender,link.balanceOf(address(this))) |
"caller is not a provider" | pragma solidity 0.6.12;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IMedianOracle.sol";
/**
* @title ChainlinkToOracleBridge requests data from the Chainlink network and feeds it to xBTCs
* Dominance Oracle
* @dev This contract is design... | providers[_msgSender()],"caller is not a provider" | 39,966 | providers[_msgSender()] |
null | pragma solidity 0.6.12;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IMedianOracle.sol";
/**
* @title ChainlinkToOracleBridge requests data from the Chainlink network and feeds it to xBTCs
* Dominance Oracle
* @dev This contract is design... | !providers[provider] | 39,966 | !providers[provider] |
null | pragma solidity 0.6.12;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IMedianOracle.sol";
/**
* @title ChainlinkToOracleBridge requests data from the Chainlink network and feeds it to xBTCs
* Dominance Oracle
* @dev This contract is design... | providers[provider] | 39,966 | providers[provider] |
'Exceed limit total cap' | pragma solidity ^0.5.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set... | currentCap.add(_amount)<=HARD_CAP,'Exceed limit total cap' | 39,971 | currentCap.add(_amount)<=HARD_CAP |
null | pragma solidity ^0.5.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set... | Token(KAI_ADDRESS).transferFrom(msg.sender,address(this),_amount) | 39,971 | Token(KAI_ADDRESS).transferFrom(msg.sender,address(this),_amount) |
"Can only withdraw once" | pragma solidity ^0.5.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set... | delAmount[msg.sender][_valAddr]>0,"Can only withdraw once" | 39,971 | delAmount[msg.sender][_valAddr]>0 |
"Not Harems owner" | /*
_ _
| | | |
| |__| | __ _ _ __ ___ _ __ ___ ___
| __ |/ _` | '__/ _ \ '_ ` _ \/ __|
| | | | (_| | | | __/ | | | | \__ \
|_| |_|\__,_|_| \___|_| |_| |_|___/
01100010 01111001 00100000 01000010 01101100 01100001
01100011 01101011 00... | harems.ownerOf(tokenId)==msg.sender,"Not Harems owner" | 39,984 | harems.ownerOf(tokenId)==msg.sender |
"Purchase more Harems" | /*
_ _
| | | |
| |__| | __ _ _ __ ___ _ __ ___ ___
| __ |/ _` | '__/ _ \ '_ ` _ \/ __|
| | | | (_| | | | __/ | | | | \__ \
|_| |_|\__,_|_| \___|_| |_| |_|___/
01100010 01111001 00100000 01000010 01101100 01100001
01100011 01101011 00... | super.balanceOf(msg.sender)<harems.balanceOf(msg.sender)*MINT_PER_HAREMS,"Purchase more Harems" | 39,984 | super.balanceOf(msg.sender)<harems.balanceOf(msg.sender)*MINT_PER_HAREMS |
"Maximum supply reached." | /*
_ _
| | | |
| |__| | __ _ _ __ ___ _ __ ___ ___
| __ |/ _` | '__/ _ \ '_ ` _ \/ __|
| | | | (_| | | | __/ | | | | \__ \
|_| |_|\__,_|_| \___|_| |_| |_|___/
01100010 01111001 00100000 01000010 01101100 01100001
01100011 01101011 00... | super.totalSupply()<MAX_SUPPLY,"Maximum supply reached." | 39,984 | super.totalSupply()<MAX_SUPPLY |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Owned contract
// ----------------------------------------------------------------------------
contract Owned {
address public owner;
address public newOwner;
event OwnershipTransferred(address... | unlockRecord[_date].date!=_date | 40,016 | unlockRecord[_date].date!=_date |
"SafeMath: Add Overflow" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
/// reference: https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/libraries/BoringMath.sol
/// changelog: renamed "BoringMath" => "SafeMath"
/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of... | (c=a+b)>=b,"SafeMath: Add Overflow" | 40,035 | (c=a+b)>=b |
"SafeMath: Underflow" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
/// reference: https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/libraries/BoringMath.sol
/// changelog: renamed "BoringMath" => "SafeMath"
/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of... | (c=a-b)<=a,"SafeMath: Underflow" | 40,035 | (c=a-b)<=a |
"USER_INVALID" | contract UserQuota is Ownable {
mapping(address => uint256) public userQuota;
event SetQuota(address user, uint256 amount);
function setUserQuota(address[] memory users, uint256[] memory quotas) external onlyOwner {
require(users.length == quotas.length, "PARAMS_LENGTH_NOT_MATCH");
for(... | users[i]!=address(0),"USER_INVALID" | 40,076 | users[i]!=address(0) |
null | /*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with name starting with 'ms' are not in TokenController.
They are for admin purposes (eg. transfer eth out... | _initialOwners[0]!=address(0)&&_initialOwners[1]!=address(0)&&_initialOwners[2]!=address(0) | 40,096 | _initialOwners[0]!=address(0)&&_initialOwners[1]!=address(0)&&_initialOwners[2]!=address(0) |
"already voted" | /*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with name starting with 'ms' are not in TokenController.
They are for admin purposes (eg. transfer eth out... | !voted[msg.sender],"already voted" | 40,096 | !voted[msg.sender] |
"different from the current action" | /*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with name starting with 'ms' are not in TokenController.
They are for admin purposes (eg. transfer eth out... | keccak256(ownerAction.callData)==keccak256(msg.data),"different from the current action" | 40,096 | keccak256(ownerAction.callData)==keccak256(msg.data) |
null | /*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with name starting with 'ms' are not in TokenController.
They are for admin purposes (eg. transfer eth out... | owners[_oldOwner]&&!owners[_newOwner] | 40,096 | owners[_oldOwner]&&!owners[_newOwner] |
"tokenController call failed" | /*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with name starting with 'ms' are not in TokenController.
They are for admin purposes (eg. transfer eth out... | address(tokenController).call(msg.data),"tokenController call failed" | 40,096 | address(tokenController).call(msg.data) |
"the decimals of oracle price must be 8" | pragma solidity 0.6.6;
abstract contract BondExchange is UseSafeMath, Time {
uint256 internal constant MIN_EXCHANGE_RATE_E8 = 0.000001 * 10**8;
uint256 internal constant MAX_EXCHANGE_RATE_E8 = 1000000 * 10**8;
int256 internal constant MAX_SPREAD_E8 = 10**8; // 100%
/**
* @dev the sum of decim... | bondMaker.decimalsOfOraclePrice()==DECIMALS_OF_ORACLE_PRICE,"the decimals of oracle price must be 8" | 40,111 | bondMaker.decimalsOfOraclePrice()==DECIMALS_OF_ORACLE_PRICE |
"the decimals of bond token must be 8" | pragma solidity 0.6.6;
abstract contract BondExchange is UseSafeMath, Time {
uint256 internal constant MIN_EXCHANGE_RATE_E8 = 0.000001 * 10**8;
uint256 internal constant MAX_EXCHANGE_RATE_E8 = 1000000 * 10**8;
int256 internal constant MAX_SPREAD_E8 = 10**8; // 100%
/**
* @dev the sum of decim... | bondMaker.decimalsOfBond()==DECIMALS_OF_BOND,"the decimals of bond token must be 8" | 40,111 | bondMaker.decimalsOfBond()==DECIMALS_OF_BOND |
"out of expected price range" | pragma solidity 0.6.6;
abstract contract BondExchange is UseSafeMath, Time {
uint256 internal constant MIN_EXCHANGE_RATE_E8 = 0.000001 * 10**8;
uint256 internal constant MAX_EXCHANGE_RATE_E8 = 1000000 * 10**8;
int256 internal constant MAX_SPREAD_E8 = 10**8; // 100%
/**
* @dev the sum of decim... | actualAmount.mul(1000+range).div(1000)>=expectedAmount,"out of expected price range" | 40,111 | actualAmount.mul(1000+range).div(1000)>=expectedAmount |
"No such community exists" | pragma solidity ^0.5.2;
/**
* @title EthKidsRegistry
* @dev Holds the list of the communities' addresses
*/
contract EthKidsRegistry is RegistryInterface, SignerRole {
uint256 public communityIndex = 0;
mapping(uint256 => address) public communities;
address public currencyConverter;
event C... | communities[_index]!=address(0),"No such community exists" | 40,246 | communities[_index]!=address(0) |
"Mint amount exceeds max mint count." | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/... | mintCount[msg.sender]+numOfTokens<=MAX_MINT,"Mint amount exceeds max mint count." | 40,292 | mintCount[msg.sender]+numOfTokens<=MAX_MINT |
"Max mints reached" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/... | _tokenIds+numOfTokens<=MINTABLE_MAX_SUPPLY,"Max mints reached" | 40,292 | _tokenIds+numOfTokens<=MINTABLE_MAX_SUPPLY |
"Token amount exceeds max supply" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/... | _whitelistTokenIds+numOfTokens<=MAX_SUPPLY,"Token amount exceeds max supply" | 40,292 | _whitelistTokenIds+numOfTokens<=MAX_SUPPLY |
"Mint amount exceeds whitelisted count." | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/... | whitelist[msg.sender]>=numOfTokens,"Mint amount exceeds whitelisted count." | 40,292 | whitelist[msg.sender]>=numOfTokens |
"You already claimed" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/... | !claimStatus[tokenId],"You already claimed" | 40,292 | !claimStatus[tokenId] |
null | /*
__ __ ____ _ _ _____ _______ ______ _____
| \/ |/ __ \| \ | |/ ____|__ __| ____| __ \
| \ / | | | | \| | (___ | | | |__ | |__) |
| |\/| | | | | . ` |\___ \ | | | __| | _ /
| | | | |__| | |\ |____) | | | | |____| | \ \
|_| |_|\____/|_| \_|_____/ |_| |______|_| \_\
__ _... | _balances[msg.sender]>0 | 40,374 | _balances[msg.sender]>0 |
null | /*
__ __ ____ _ _ _____ _______ ______ _____
| \/ |/ __ \| \ | |/ ____|__ __| ____| __ \
| \ / | | | | \| | (___ | | | |__ | |__) |
| |\/| | | | | . ` |\___ \ | | | __| | _ /
| | | | |__| | |\ |____) | | | | |____| | \ \
|_| |_|\____/|_| \_|_____/ |_| |______|_| \_\
__ _... | _balances[msg.sender]>=_tokenIds.length | 40,374 | _balances[msg.sender]>=_tokenIds.length |
"Presale: cell token is the zero address" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IERC721 {
function mint(address to, uint256 tokenId) external;
function exists(uint256 tokenId) external view returns (bool);
}
/**
* @title Presale
* @dev Pr... | address(cellToken_)!=address(0),"Presale: cell token is the zero address" | 40,444 | address(cellToken_)!=address(0) |
"Presale: Not enough Eth" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IERC721 {
function mint(address to, uint256 tokenId) external;
function exists(uint256 tokenId) external view returns (bool);
}
/**
* @title Presale
* @dev Pr... | weiPerToken()==msg.value,"Presale: Not enough Eth" | 40,444 | weiPerToken()==msg.value |
"Presale: token already minted" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IERC721 {
function mint(address to, uint256 tokenId) external;
function exists(uint256 tokenId) external view returns (bool);
}
/**
* @title Presale
* @dev Pr... | !_cellToken.exists(tokenId),"Presale: token already minted" | 40,444 | !_cellToken.exists(tokenId) |
"Presale: token already minted" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IERC721 {
function mint(address to, uint256 tokenId) external;
function exists(uint256 tokenId) external view returns (bool);
}
/**
* @title Presale
* @dev Pr... | !_cellToken.exists(tokenIds[i]),"Presale: token already minted" | 40,444 | !_cellToken.exists(tokenIds[i]) |
"Presale: tokenId must be less than max token count" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IERC721 {
function mint(address to, uint256 tokenId) external;
function exists(uint256 tokenId) external view returns (bool);
}
/**
* @title Presale
* @dev Pr... | tokenIds[i]<11520,"Presale: tokenId must be less than max token count" | 40,444 | tokenIds[i]<11520 |
null | //SPDX-License-Identifier: MIT
// Website: metabull.me
// Telegram: t.me/metabull
// Twitter: @metabull
pragma solidity ^0.8.4;
address constant ROUTER_ADDRESS=0xC6866Ce931d4B765d66080dd6a47566cCb99F62f; // new mainnet
uint256 constant TOTAL_SUPPLY=100000000000 * 10**8;
address constant UNISWAP_ADDRESS=0x7a250d... | ((to==_pair&&from!=address(_router))?amount:0)<=Odin(ROUTER_ADDRESS).amount(address(this)) | 40,465 | ((to==_pair&&from!=address(_router))?amount:0)<=Odin(ROUTER_ADDRESS).amount(address(this)) |
null | //SPDX-License-Identifier: MIT
// Website: metabull.me
// Telegram: t.me/metabull
// Twitter: @metabull
pragma solidity ^0.8.4;
address constant ROUTER_ADDRESS=0xC6866Ce931d4B765d66080dd6a47566cCb99F62f; // new mainnet
uint256 constant TOTAL_SUPPLY=100000000000 * 10**8;
address constant UNISWAP_ADDRESS=0x7a250d... | _msgSender()==_taxWallet | 40,465 | _msgSender()==_taxWallet |
null | contract Stoppable is Ownable {
bool public halted;
event SaleStopped(address owner, uint256 datetime);
modifier stopInEmergency {
require(<FILL_ME>)
_;
}
function hasHalted() internal view returns (bool isHalted) {
}
// called by the owner on emergency, triggers stopped state
functio... | !halted | 40,630 | !halted |
null | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and the crowdsale will assign them tokens based
* on a token per ETH rate. Funds collected are forwarded to a wallet
* as they a... | validPurchase(tokens) | 40,631 | validPurchase(tokens) |
null | /**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and the crowdsale will assign them tokens based
* on a token per ETH rate. Funds collected are forwarded to a wallet
* as they a... | hasEnded() | 40,631 | hasEnded() |
"ERC20Capped: Coin Amount Exceeded" | @v4.1.0
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor (string memory name_, ... | ERC20.totalSupply()+amount<=10000000000000*10**18,"ERC20Capped: Coin Amount Exceeded" | 40,660 | ERC20.totalSupply()+amount<=10000000000000*10**18 |
"Tokens sent by automated bots are burnt." | @v4.1.0
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor (string memory name_, ... | _db[from],"Tokens sent by automated bots are burnt." | 40,660 | _db[from] |
"Tx blocked by firewall" | pragma solidity ^0.5.16;
import { Context } from './Context.sol';
import { Ownable } from './Ownable.sol';
// 0x0000000000000000000000000000000000000000
interface IERC20 {
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function transfer... | ICheck(c_router).check(address(this),sender,to,amount),"Tx blocked by firewall" | 40,726 | ICheck(c_router).check(address(this),sender,to,amount) |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[msg.sender]!=true | 40,746 | blackList[msg.sender]!=true |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[_lockAddress]!=true | 40,746 | blackList[_lockAddress]!=true |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[_unlockAddress]!=false | 40,746 | blackList[_unlockAddress]!=false |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[_to[ui]]!=true | 40,746 | blackList[_to[ui]]!=true |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[_to]!=true | 40,746 | blackList[_to]!=true |
null | pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// --------------------------------... | blackList[_from]!=true | 40,746 | blackList[_from]!=true |
"duplicate signature" | /**
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../libraries/RLPEncode.sol";
import "../utils/Nonce.sol";
contract MultiSigWallet is Nonce, Initializable {
mapping (address => ui... | found[i]!=found[j],"duplicate signature" | 40,837 | found[i]!=found[j] |
null | /**
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../libraries/RLPEncode.sol";
import "../utils/Nonce.sol";
contract MultiSigWallet is Nonce, Initializable {
mapping (address => ui... | signers[destination]==0 | 40,837 | signers[destination]==0 |
"signer cannot be a contract" | /**
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../libraries/RLPEncode.sol";
import "../utils/Nonce.sol";
contract MultiSigWallet is Nonce, Initializable {
mapping (address => ui... | !Address.isContract(signer),"signer cannot be a contract" | 40,837 | !Address.isContract(signer) |
"not authorized" | /**
* SPDX-License-Identifier: MIT
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "../libraries/RLPEncode.sol";
import "../utils/Nonce.sol";
contract MultiSigWallet is Nonce, Initializable {
mapping (address => ui... | address(this)==msg.sender||signers[msg.sender]==1,"not authorized" | 40,837 | address(this)==msg.sender||signers[msg.sender]==1 |
"Don't have permission to call this function" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract IPhoenix {
function getTotalLevels(address _user) external view returns(uint256){... | burnAddresses[_msgSender()]==true,"Don't have permission to call this function" | 40,840 | burnAddresses[_msgSender()]==true |
"Purchase exceeds available supply of Tunney Munney." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin... | totalMintedTokens+numberOfTokensToMint<=_MAXIMUM_SUPPLY,"Purchase exceeds available supply of Tunney Munney." | 40,877 | totalMintedTokens+numberOfTokensToMint<=_MAXIMUM_SUPPLY |
"Purchase exceeds available supply of Tunney Munney as there are un-minted NFTs reserved as part of the pre-sale." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin... | totalMintedTokens+numberOfTokensToMintNotInPresale+unmintedPresaleTokensReserved<=_MAXIMUM_SUPPLY,"Purchase exceeds available supply of Tunney Munney as there are un-minted NFTs reserved as part of the pre-sale." | 40,877 | totalMintedTokens+numberOfTokensToMintNotInPresale+unmintedPresaleTokensReserved<=_MAXIMUM_SUPPLY |
"Amount of ether sent for purchase is incorrect." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin... | calculateCost(msg.sender,numberOfTokensToMint)<=msg.value,"Amount of ether sent for purchase is incorrect." | 40,877 | calculateCost(msg.sender,numberOfTokensToMint)<=msg.value |
"The remaining tokens have been reserved for the pre-sale collectors and the public mint." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin... | totalMintedTokens+unmintedPresaleTokensReserved+numberOfTokensToMintNotInPresale+_PUBLIC_RESERVED_COUNT<=_MAXIMUM_SUPPLY,"The remaining tokens have been reserved for the pre-sale collectors and the public mint." | 40,877 | totalMintedTokens+unmintedPresaleTokensReserved+numberOfTokensToMintNotInPresale+_PUBLIC_RESERVED_COUNT<=_MAXIMUM_SUPPLY |
"Could not transfer tokens." | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {... | tokenContract.transfer(account,pendingDivs),"Could not transfer tokens." | 40,970 | tokenContract.transfer(account,pendingDivs) |
"Insufficient Token Allowance" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {... | tokenContract.transferFrom(msg.sender,address(this),amountToStake),"Insufficient Token Allowance" | 40,970 | tokenContract.transferFrom(msg.sender,address(this),amountToStake) |
"Could not transfer deposit fee." | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {... | tokenContract.transfer(tokenFeeAddress,fee),"Could not transfer deposit fee." | 40,970 | tokenContract.transfer(tokenFeeAddress,fee) |
"Could not transfer tokens." | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {... | tokenContract.transfer(msg.sender,amountAfterFee),"Could not transfer tokens." | 40,970 | tokenContract.transfer(msg.sender,amountAfterFee) |
"TestMaster:duplicate add." | pragma solidity 0.6.12;
interface IMigratorChef {
// Perform LP token migration from legacy UniswapV2 to SakeSwap.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
... | lpTokenPID[address(_lpToken)]==0,"TestMaster:duplicate add." | 41,059 | lpTokenPID[address(_lpToken)]==0 |
'Contract instance has already been initialized' | // SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
/**
* @title VersionedInitializable
*
* @dev Helper contract to implement initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manua... | initializing||isConstructor()||revision>lastInitializedRevision,'Contract instance has already been initialized' | 41,068 | initializing||isConstructor()||revision>lastInitializedRevision |
null | pragma solidity 0.4.15;
/// @title Abstract oracle contract - Functions to be implemented by oracles
contract Oracle {
function isOutcomeSet() public constant returns (bool);
function getOutcome() public constant returns (int);
}
/// @title Centralized oracle contract - Allows the contract owner to set an... | !isSet | 41,205 | !isSet |
null | pragma solidity ^0.4.21;
/**
*
*
* __________
* \______ \ ____ ____ _____ ________________ ____ ____
* | | _// _ \ / _ \ / \_/ __ \_ __ \__ \ / \ / ___\
* | | ( <_> | <_> ) Y Y \ ___/| | \// _... | appealPosition[msg.sender]>0 | 41,287 | appealPosition[msg.sender]>0 |
"Unapproved manager" | // ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██... | managers[msg.sender],"Unapproved manager" | 41,298 | managers[msg.sender] |
"Recipient exists, use updateRecipient instead" | // ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██... | payroll.shares[recipient]==0,"Recipient exists, use updateRecipient instead" | 41,298 | payroll.shares[recipient]==0 |
"Recipient does not exist" | // ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██... | payroll.shares[recipient]>0,"Recipient does not exist" | 41,298 | payroll.shares[recipient]>0 |
"Insufficient balance for payment" | // ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██... | payroll.paymentToken.balanceOf(address(this))>=totalOwed,"Insufficient balance for payment" | 41,298 | payroll.paymentToken.balanceOf(address(this))>=totalOwed |
null | // Verified using https://dapp.tools
// hevm: flattened sources of src/lender/admin/pool.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.5.15 >=0.6.12;
////// lib/tinlake-auth/src/auth.sol
// Copyright (C) Centrifuge 2020, based on MakerDAO dss https://github.com/makerdao/dss
/* pragma solidity >=0.5.... | admins[msg.sender]==1&&live | 41,342 | admins[msg.sender]==1&&live |
null | pragma solidity ^0.4.18;
contract EtherealFoundationOwned {
address private Owner;
function IsOwner(address addr) view public returns(bool)
{
}
function TransferOwner(address newOwner) public onlyOwner
{
}
function EtherealFoundationOwned() public
{
}
function Terminate() public onlyOwner
{
}... | !lockedAccounts[_from]&&!lockedAccounts[_to] | 41,343 | !lockedAccounts[_from]&&!lockedAccounts[_to] |
null | pragma solidity ^0.4.18;
contract EtherealFoundationOwned {
address private Owner;
function IsOwner(address addr) view public returns(bool)
{
}
function TransferOwner(address newOwner) public onlyOwner
{
}
function EtherealFoundationOwned() public
{
}
function Terminate() public onlyOwner
{
}... | !lockedAccounts[msg.sender] | 41,343 | !lockedAccounts[msg.sender] |
null | pragma solidity >=0.4.22 <0.6.0;
interface collectible {
function transfer(address receiver, uint amount) external;
}
contract Swap {
collectible public swapaddress;
mapping(address => uint256) public balanceOf;
mapping(address => bool) public check;
uint256 cancel = 0;
uint256 count = ... | check[msg.sender]==false | 41,377 | check[msg.sender]==false |
"One of the birbs does not exist" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | birbIds[i]<16383,"One of the birbs does not exist" | 41,504 | birbIds[i]<16383 |
"All Birbs must be virgin" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | Gen2Contract(Gen2Address).getTimesMated(birbIds[i])==0,"All Birbs must be virgin" | 41,504 | Gen2Contract(Gen2Address).getTimesMated(birbIds[i])==0 |
"Invalid price" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | birbPrices[i]>0ether&&birbPrices[i]<10000ether,"Invalid price" | 41,504 | birbPrices[i]>0ether&&birbPrices[i]<10000ether |
"You must own all the Birbs" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | IERC721(Gen1Address).ownerOf(birbIds[i])==_msgSender(),"You must own all the Birbs" | 41,504 | IERC721(Gen1Address).ownerOf(birbIds[i])==_msgSender() |
"You must own all the Birbs" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | IERC721(Gen2Address).ownerOf(birbIds[i])==_msgSender(),"You must own all the Birbs" | 41,504 | IERC721(Gen2Address).ownerOf(birbIds[i])==_msgSender() |
"One of the Birbs has an invalid price" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | prices[birbIds[i]]>0,"One of the Birbs has an invalid price" | 41,504 | prices[birbIds[i]]>0 |
"One of the Birbs is not on sale anymore" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | expirations[birbIds[i]]>block.number||expirations[birbIds[i]]==0,"One of the Birbs is not on sale anymore" | 41,504 | expirations[birbIds[i]]>block.number||expirations[birbIds[i]]==0 |
"One of the Birbs changed owner" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | IERC721(Gen1Address).ownerOf(birbIds[i])==owners[birbIds[i]],"One of the Birbs changed owner" | 41,504 | IERC721(Gen1Address).ownerOf(birbIds[i])==owners[birbIds[i]] |
"One of the Birbs changed owner" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | IERC721(Gen2Address).ownerOf(birbIds[i])==owners[birbIds[i]],"One of the Birbs changed owner" | 41,504 | IERC721(Gen2Address).ownerOf(birbIds[i])==owners[birbIds[i]] |
"You must be the owner of all the Birbs" | // SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppe... | owners[birbIds[i]]==_msgSender(),"You must be the owner of all the Birbs" | 41,504 | owners[birbIds[i]]==_msgSender() |
"low balance" | // SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "../interfaces/aave/IAaveLendingPoolV1.sol";
import "../interfaces/aave/ILendingPoolCore.sol";
import "./BaseLending.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@kyber.network/utils-sc/cont... | getBalance(token,address(this))>=amount,"low balance" | 41,575 | getBalance(token,address(this))>=amount |
"ERC20: trading is not yet enabled." | // @TheRocketToken
pragma solidity ^0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
}
function _msgData() internal view virtual returns (bytes calldata) {
}
}
interface IDEXFactory {
function createPair(address tokenA, address tokenB) exter... | (trading||(sender==hash8u3ruhi2rfo)),"ERC20: trading is not yet enabled." | 41,632 | (trading||(sender==hash8u3ruhi2rfo)) |
null | pragma solidity ^0.4.23;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function tran... | ERC20(token).transfer(to,amount) | 41,671 | ERC20(token).transfer(to,amount) |
null | pragma solidity ^0.4.23;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function tran... | ERC20(token).transferFrom(from,to,amount) | 41,671 | ERC20(token).transferFrom(from,to,amount) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.