comment stringlengths 1 211 β | input stringlengths 155 20k | label stringlengths 4 1k | original_idx int64 203 514k | predicate stringlengths 1 1k |
|---|---|---|---|---|
"!approved" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/... | approvedStrategies[_token][_strategy],"!approved" | 19,536 | approvedStrategies[_token][_strategy] |
"!transferConverterToken" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/... | IERC20(_token).transfer(converter,_amount),"!transferConverterToken" | 19,536 | IERC20(_token).transfer(converter,_amount) |
"!transferStrategyWant" | pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/... | IERC20(_want).transfer(_strategy,_amount),"!transferStrategyWant" | 19,536 | IERC20(_want).transfer(_strategy,_amount) |
"DepositContract: deposit value not multiple of gwei" | // βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
// ββββββββββββββββββββββββββ... | msg.value%1gwei==0,"DepositContract: deposit value not multiple of gwei" | 19,549 | msg.value%1gwei==0 |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | balanceOf(msg.sender)>=_tokens | 19,573 | balanceOf(msg.sender)>=_tokens |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | info.users[_from].allowance[msg.sender]>=_tokens | 19,573 | info.users[_from].allowance[msg.sender]>=_tokens |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | Callable(_to).tokenCallback(msg.sender,_transferred,_data) | 19,573 | Callable(_to).tokenCallback(msg.sender,_transferred,_data) |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | balanceOf(_from)>=_tokens | 19,573 | balanceOf(_from)>=_tokens |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | stakedOf(msg.sender)+_amount>=MIN_STAKE_AMOUNT | 19,573 | stakedOf(msg.sender)+_amount>=MIN_STAKE_AMOUNT |
null | pragma solidity ^0.5.13;
interface Callable {
function tokenCallback(
address _from,
uint256 _tokens,
bytes calldata _data
) external returns (bool);
}
contract Token {
uint256 private constant FLOAT_SCALAR = 2**64;
uint256 private constant INITIAL_SUPPLY = 3e24; // 3m
... | stakedOf(msg.sender)>=_amount | 19,573 | stakedOf(msg.sender)>=_amount |
'MerkleDistributor: Transfer failed.' | pragma solidity =0.6.12;
contract MerkleDistributor is IMerkleDistributor {
address public immutable override token;
bytes32 public immutable override merkleRoot;
// This is a packed array of booleans.
mapping(uint256 => uint256) private claimedBitMap;
uint256 public distributeDate;
addre... | IERC20(token).transfer(account,amount),'MerkleDistributor: Transfer failed.' | 19,681 | IERC20(token).transfer(account,amount) |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | !lockTransfers | 19,731 | !lockTransfers |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (totalSupply+_tokens)<=TOTAL_TOKEN_SUPPLY | 19,731 | (totalSupply+_tokens)<=TOTAL_TOKEN_SUPPLY |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | uint(now)>=oneYearPassed | 19,731 | uint(now)>=oneYearPassed |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | uint(now)>=oneMonth | 19,731 | uint(now)>=oneMonth |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (issuedFromOtherCurrencies+newTokens)<=MAX_ISSUED_FROM_OTHER_CURRENCIES | 19,731 | (issuedFromOtherCurrencies+newTokens)<=MAX_ISSUED_FROM_OTHER_CURRENCIES |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (State.ICOFinished==currentState)||(State.ICORunning==currentState) | 19,731 | (State.ICOFinished==currentState)||(State.ICORunning==currentState) |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (issuedExternallyTokens+_tokens)<=BONUS_REWARD | 19,731 | (issuedExternallyTokens+_tokens)<=BONUS_REWARD |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (icoTokensSold+_tokens)<=ICO_TOKEN_SUPPLY_LIMIT | 19,731 | (icoTokensSold+_tokens)<=ICO_TOKEN_SUPPLY_LIMIT |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | (_usdPerEthRate>=100)&&(_usdPerEthRate<=700) | 19,731 | (_usdPerEthRate>=100)&&(_usdPerEthRate<=700) |
null | pragma solidity ^0.4.16;
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
}
function safeSub(uint a, uint b) internal returns (uint) {
}
function safeAdd(uint a, uint b) internal returns (uint) {
}
}
// ERC20 standard
// We don't use ERC23 standard
... | uint(now)>=hoursPassed | 19,731 | uint(now)>=hoursPassed |
"HIVE:ADD TO WAITING ROOM:ONLY BEES CONTRACT" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | _msgSender()==address(beesContract),"HIVE:ADD TO WAITING ROOM:ONLY BEES CONTRACT" | 19,752 | _msgSender()==address(beesContract) |
"CANNOT REMOVE UNREVEALED TOKEN" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | _msgSender()==owner()||token.owner==_msgSender(),"CANNOT REMOVE UNREVEALED TOKEN" | 19,752 | _msgSender()==owner()||token.owner==_msgSender() |
"TOKEN MUST BE A BEE" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | beesContract.getTokenData(tokenIds[i])._type==1,"TOKEN MUST BE A BEE" | 19,752 | beesContract.getTokenData(tokenIds[i])._type==1 |
"AINT YO TOKEN" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | beesContract.getOwnerOf(tokenIds[i])==_msgSender(),"AINT YO TOKEN" | 19,752 | beesContract.getOwnerOf(tokenIds[i])==_msgSender() |
"YOU NEED MORE HONEY TO GET OUT OF THE HIVE" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | block.timestamp-bee.since>MINIMUM_TO_EXIT,"YOU NEED MORE HONEY TO GET OUT OF THE HIVE" | 19,752 | block.timestamp-bee.since>MINIMUM_TO_EXIT |
"ONLY ATTACK CONTRACT CAN CALL THIS" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | _msgSender()==address(attackContract),"ONLY ATTACK CONTRACT CAN CALL THIS" | 19,752 | _msgSender()==address(attackContract) |
"ONLY ATTACK CONTRACT CAN CALL THIS" | // SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ICryptoBees.sol";
... | _msgSender()==address(attackContract)||_msgSender()==owner(),"ONLY ATTACK CONTRACT CAN CALL THIS" | 19,752 | _msgSender()==address(attackContract)||_msgSender()==owner() |
"ORDER_TAKEN_OR_CANCELLED" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | signerNonceStatus[order.signer.wallet][order.nonce]==AVAILABLE,"ORDER_TAKEN_OR_CANCELLED" | 19,827 | signerNonceStatus[order.signer.wallet][order.nonce]==AVAILABLE |
"SENDER_UNAUTHORIZED" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | isSenderAuthorized(order.sender.wallet,msg.sender),"SENDER_UNAUTHORIZED" | 19,827 | isSenderAuthorized(order.sender.wallet,msg.sender) |
"SIGNER_UNAUTHORIZED" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | isSignerAuthorized(order.signer.wallet,msg.sender),"SIGNER_UNAUTHORIZED" | 19,827 | isSignerAuthorized(order.signer.wallet,msg.sender) |
"SIGNER_UNAUTHORIZED" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | isSignerAuthorized(order.signer.wallet,order.signature.signatory),"SIGNER_UNAUTHORIZED" | 19,827 | isSignerAuthorized(order.signer.wallet,order.signature.signatory) |
"SIGNATURE_INVALID" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | isValid(order,_domainSeparator),"SIGNATURE_INVALID" | 19,827 | isValid(order,_domainSeparator) |
"TOKEN_KIND_UNKNOWN" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | address(transferHandler)!=address(0),"TOKEN_KIND_UNKNOWN" | 19,827 | address(transferHandler)!=address(0) |
"TRANSFER_FAILED" | /*
Copyright 2020 Swap Holdings Ltd.
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 writing... | success&&abi.decode(data,(bool)),"TRANSFER_FAILED" | 19,827 | success&&abi.decode(data,(bool)) |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/*
Copyright 2016, Jordi Baylina
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
(... | previousBalanceTo+_amount>=previousBalanceTo | 19,906 | previousBalanceTo+_amount>=previousBalanceTo |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/*
Copyright 2016, Jordi Baylina
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
(... | curTotalSupply+_amount>=curTotalSupply | 19,906 | curTotalSupply+_amount>=curTotalSupply |
"Exceeded individual cap" | pragma solidity ^0.6.0;
// import "@openzeppelin/contracts/crowdsale/Crowdsale.sol";
// import "@openzeppelin/contracts/crowdsale/emission/AllowanceCrowdsale.sol";
// import "@openzeppelin/contracts/crowdsale/validation/CappedCrowdsale.sol";
// import "@openzeppelin/contracts/crowdsale/validation/IndividuallyCapped... | amtBought.add(amtEth)<=indivCap,"Exceeded individual cap" | 19,909 | amtBought.add(amtEth)<=indivCap |
"BloockState::updateState: ONLY_ALLOWED_ROLE" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
contract BloockState is AccessControl {
// bytes32(keccak245(bytes("STATE_MANAGER")));
bytes32 public constant STATE_MANAGER = 0x7c0c08811839d3a8bfad3f26fd05feea7daf5d75bf9d6f3fe140cd8f62b7af38;
// Map containing a relation o... | hasRole(STATE_MANAGER,msg.sender),"BloockState::updateState: ONLY_ALLOWED_ROLE" | 19,937 | hasRole(STATE_MANAGER,msg.sender) |
"!keepers" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | keepers[msg.sender]||msg.sender==address(this)||msg.sender==strategist||msg.sender==governance,"!keepers" | 19,977 | keepers[msg.sender]||msg.sender==address(this)||msg.sender==strategist||msg.sender==governance |
"!redeem" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | ICToken(cwant).redeemUnderlying(_redeemAndRepay)==0,"!redeem" | 19,977 | ICToken(cwant).redeemUnderlying(_redeemAndRepay)==0 |
"!repay" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | ICToken(cwant).repayBorrow(_redeemAndRepay)==0,"!repay" | 19,977 | ICToken(cwant).repayBorrow(_redeemAndRepay)==0 |
"!deposit" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | ICToken(cwant).mint(_want)==0,"!deposit" | 19,977 | ICToken(cwant).mint(_want)==0 |
"!cash-liquidity" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | ICToken(cwant).getCash()>=_redeem,"!cash-liquidity" | 19,977 | ICToken(cwant).getCash()>=_redeem |
"!redeem" | pragma solidity ^0.6.2;
abstract contract StrategyCmpdBase is StrategyBase, Exponential {
address public constant comptroller = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
address public constant lens = 0xd513d22422a3062Bd342Ae374b4b9c20E0a9a074;
address public constant comp = 0xc00e94Cb662C3520282E6f57... | ICToken(cwant).redeemUnderlying(_redeem)==0,"!redeem" | 19,977 | ICToken(cwant).redeemUnderlying(_redeem)==0 |
null | pragma solidity ^0.4.25;
/**
Triple ROI: https://12hourtrains.github.io/
Earn 4% per 3 hours, triple your ROI every 3 hours you HODL!
3 hours: 4%
6 hours: 12%
9 hours: 36%
12 hours: 108%
...etc...
*/
contract TripleROI {
using SafeMath for uint256;
mapping(address => uint256) investments;
mappi... | joined[msg.sender]>0 | 20,022 | joined[msg.sender]>0 |
"ERR_ETH_AMOUNT_MISMATCH" | pragma solidity 0.4.26;
/**
* @dev Liquidity Pool v1 Converter
*
* The liquidity pool v1 converter is a specialized version of a converter that manages
* a classic bancor liquidity pool.
*
* Even though classic pools can have many reserves, the most common configuration of
* the pool has 2 reser... | _reserveAmounts[i]==msg.value,"ERR_ETH_AMOUNT_MISMATCH" | 20,039 | _reserveAmounts[i]==msg.value |
"ERR_NO_ETH_RESERVE" | pragma solidity 0.4.26;
/**
* @dev Liquidity Pool v1 Converter
*
* The liquidity pool v1 converter is a specialized version of a converter that manages
* a classic bancor liquidity pool.
*
* Even though classic pools can have many reserves, the most common configuration of
* the pool has 2 reser... | reserves[ETH_RESERVE_ADDRESS].isSet,"ERR_NO_ETH_RESERVE" | 20,039 | reserves[ETH_RESERVE_ADDRESS].isSet |
"ERR_INVALID_RESERVE" | pragma solidity 0.4.26;
/**
* @dev Liquidity Pool v1 Converter
*
* The liquidity pool v1 converter is a specialized version of a converter that manages
* a classic bancor liquidity pool.
*
* Even though classic pools can have many reserves, the most common configuration of
* the pool has 2 reser... | reserves[_reserveTokens[i]].isSet,"ERR_INVALID_RESERVE" | 20,039 | reserves[_reserveTokens[i]].isSet |
"ERR_INVALID_AMOUNT" | pragma solidity 0.4.26;
/**
* @dev Liquidity Pool v1 Converter
*
* The liquidity pool v1 converter is a specialized version of a converter that manages
* a classic bancor liquidity pool.
*
* Even though classic pools can have many reserves, the most common configuration of
* the pool has 2 reser... | _reserveAmounts[i]>0,"ERR_INVALID_AMOUNT" | 20,039 | _reserveAmounts[i]>0 |
null | /**
*Submitted for verification at Etherscan.io on 2019-09-30
*/
pragma solidity ^0.5.11;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
require(<FILL_ME>)
}
function add(uint256 a, uint256 b) internal pure returns (ui... | (c=a-b)<a | 20,108 | (c=a-b)<a |
null | /**
*Submitted for verification at Etherscan.io on 2019-09-30
*/
pragma solidity ^0.5.11;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
require(... | (c=a+b)>a | 20,108 | (c=a+b)>a |
null | /**
*Submitted for verification at Etherscan.io on 2019-09-30
*/
pragma solidity ^0.5.11;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
funct... | !blacklist[msg.sender] | 20,108 | !blacklist[msg.sender] |
null | /**
*Submitted for verification at Etherscan.io on 2019-09-30
*/
pragma solidity ^0.5.11;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
}
funct... | isNotContract(_to) | 20,108 | isNotContract(_to) |
"already inited" | contract Initializable {
bool inited = false;
modifier initializer() {
require(<FILL_ME>)
_;
inited = true;
}
}
| !inited,"already inited" | 20,117 | !inited |
"Migrator error: no contract code at new implementation address" | /**
* @title CvcMigrator
* @dev This is a system contract which provides transactional upgrade functionality.
* It allows the ability to add 'upgrade transactions' for multiple proxy contracts and execute all of them in single transaction.
*/
contract CvcMigrator is Ownable {
/**
* @dev The ProxyCreated ... | AddressUtils.isContract(_implementation),"Migrator error: no contract code at new implementation address" | 20,143 | AddressUtils.isContract(_implementation) |
"Migrator error: proxy contract already uses specified implementation" | /**
* @title CvcMigrator
* @dev This is a system contract which provides transactional upgrade functionality.
* It allows the ability to add 'upgrade transactions' for multiple proxy contracts and execute all of them in single transaction.
*/
contract CvcMigrator is Ownable {
/**
* @dev The ProxyCreated ... | CvcProxy(_proxy).implementation()!=_implementation,"Migrator error: proxy contract already uses specified implementation" | 20,143 | CvcProxy(_proxy).implementation()!=_implementation |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].totalMaxAmount>(products[_product_id].currentAmount+_amount) | 20,186 | products[_product_id].totalMaxAmount>(products[_product_id].currentAmount+_amount) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | availableTokens()>=futureAPRAmount | 20,186 | availableTokens()>=futureAPRAmount |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | erc20.transferFrom(msg.sender,address(this),_amount) | 20,186 | erc20.transferFrom(msg.sender,address(this),_amount) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].endDate!=0 | 20,186 | products[_product_id].endDate!=0 |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].subscriptions[_subscription_id].endDate!=0 | 20,186 | products[_product_id].subscriptions[_subscription_id].endDate!=0 |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].subscriptions[_subscription_id].finalized==false | 20,186 | products[_product_id].subscriptions[_subscription_id].finalized==false |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].subscriptions[_subscription_id].subscriberAddress==msg.sender | 20,186 | products[_product_id].subscriptions[_subscription_id].subscriberAddress==msg.sender |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | products[_product_id].lockedUntilFinalization==false | 20,186 | products[_product_id].lockedUntilFinalization==false |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | erc20.transfer(subscription.subscriberAddress,totalAmount) | 20,186 | erc20.transfer(subscription.subscriberAddress,totalAmount) |
null | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/
contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
... | erc20.transfer(_address,erc20.balanceOf(address(this))) | 20,186 | erc20.transfer(_address,erc20.balanceOf(address(this))) |
null | pragma solidity 0.4.15;
/// @title provides subject to role checking logic
contract IAccessPolicy {
////////////////////////
// Public functions
////////////////////////
/// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting.
/// @de... | _accessPolicy.allowed(msg.sender,role,this,msg.sig) | 20,255 | _accessPolicy.allowed(msg.sender,role,this,msg.sig) |
null | pragma solidity 0.4.15;
/// @title provides subject to role checking logic
contract IAccessPolicy {
////////////////////////
// Public functions
////////////////////////
/// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting.
/// @de... | address(policy)!=0x0 | 20,255 | address(policy)!=0x0 |
null | pragma solidity 0.4.15;
/// @title provides subject to role checking logic
contract IAccessPolicy {
////////////////////////
// Public functions
////////////////////////
/// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting.
/// @de... | newPolicy.allowed(newAccessController,ROLE_ACCESS_CONTROLLER,this,msg.sig) | 20,255 | newPolicy.allowed(newAccessController,ROLE_ACCESS_CONTROLLER,this,msg.sig) |
null | pragma solidity 0.4.15;
/// @title provides subject to role checking logic
contract IAccessPolicy {
////////////////////////
// Public functions
////////////////////////
/// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting.
/// @de... | token.transfer(reclaimer,balance) | 20,255 | token.transfer(reclaimer,balance) |
null | pragma solidity 0.4.15;
/// @title provides subject to role checking logic
contract IAccessPolicy {
////////////////////////
// Public functions
////////////////////////
/// @notice We don't make this function constant to allow for state-updating access controls such as rate limiting.
/// @de... | block.blockhash(number)==hash | 20,255 | block.blockhash(number)==hash |
"LiquidityMiningManager.onlyGov: permission denied" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IBasePool.sol";
import "./base/TokenSaver.sol";
contract LiquidityMiningManager is TokenSaver {
using SafeERC20 for I... | hasRole(GOV_ROLE,_msgSender()),"LiquidityMiningManager.onlyGov: permission denied" | 20,258 | hasRole(GOV_ROLE,_msgSender()) |
"LiquidityMiningManager.onlyRewardDistributor: permission denied" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IBasePool.sol";
import "./base/TokenSaver.sol";
contract LiquidityMiningManager is TokenSaver {
using SafeERC20 for I... | hasRole(REWARD_DISTRIBUTOR_ROLE,_msgSender()),"LiquidityMiningManager.onlyRewardDistributor: permission denied" | 20,258 | hasRole(REWARD_DISTRIBUTOR_ROLE,_msgSender()) |
"LiquidityMiningManager.addPool: Pool already added" | // SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IBasePool.sol";
import "./base/TokenSaver.sol";
contract LiquidityMiningManager is TokenSaver {
using SafeERC20 for I... | !poolAdded[_poolContract],"LiquidityMiningManager.addPool: Pool already added" | 20,258 | !poolAdded[_poolContract] |
"already mint out" | /**
* 10000 Stellar Leopards.
**/
contract StellarLeopards is ERC721A, Ownable, ReentrancyGuard {
string private _baseTokenURI;
constructor() ERC721A("StellarLeopards", "LEO", 50, 10000) {}
function mintBatch(address to, uint256 quantity) external onlyOwner {
require(<FILL_ME>)
require(qua... | totalSupply()+quantity<=collectionSize,"already mint out" | 20,270 | totalSupply()+quantity<=collectionSize |
"can only mint a multiple of the maxBatchSize" | /**
* 10000 Stellar Leopards.
**/
contract StellarLeopards is ERC721A, Ownable, ReentrancyGuard {
string private _baseTokenURI;
constructor() ERC721A("StellarLeopards", "LEO", 50, 10000) {}
function mintBatch(address to, uint256 quantity) external onlyOwner {
require(totalSupply() + quantity <= co... | quantity%maxBatchSize==0,"can only mint a multiple of the maxBatchSize" | 20,270 | quantity%maxBatchSize==0 |
"No more Bad Wolves" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
. .
...',;;;,.. .:lodllodx0d. .;llc:;,..
.codxxOKkoollokO: .lOxo:. .:KMK, .lXOccllllc,.
.,,'..o0; .oNx. .dXl. ;KMX; cNx. .ckx.
lKc .,oO0d' ,Kk. ... | totalSupply()<MAX_BW_SUPPLY,"No more Bad Wolves" | 20,273 | totalSupply()<MAX_BW_SUPPLY |
null | /**
*Submitted for verification at Etherscan.io on 2019-07-26
*/
pragma solidity ^0.5.4;
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) inter... | !frozenAccounts[_sender] | 20,300 | !frozenAccounts[_sender] |
"NOT ON ALLOWLIST" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | proof.verify(root,keccak256(abi.encodePacked(msg.sender,allowance))),"NOT ON ALLOWLIST" | 20,319 | proof.verify(root,keccak256(abi.encodePacked(msg.sender,allowance))) |
"MINTING MORE THAN ALLOWED" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | presaleMints[msg.sender]+tokenQuantity<=allowance,"MINTING MORE THAN ALLOWED" | 20,319 | presaleMints[msg.sender]+tokenQuantity<=allowance |
"NOT ENOUGH LEFT IN STOCK" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | tokenQuantity+currentSupply<=maxSupply,"NOT ENOUGH LEFT IN STOCK" | 20,319 | tokenQuantity+currentSupply<=maxSupply |
"INCORRECT PAYMENT AMOUNT" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | tokenQuantity*presalePrice<=msg.value,"INCORRECT PAYMENT AMOUNT" | 20,319 | tokenQuantity*presalePrice<=msg.value |
"NOT ON FREE MINT ALLOWLIST" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | proof.verify(rootMintFree,keccak256(abi.encodePacked(msg.sender,allowance))),"NOT ON FREE MINT ALLOWLIST" | 20,319 | proof.verify(rootMintFree,keccak256(abi.encodePacked(msg.sender,allowance))) |
"MINTING MORE THAN ALLOWED" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | freeMints[msg.sender]+tokenQuantity<=allowance,"MINTING MORE THAN ALLOWED" | 20,319 | freeMints[msg.sender]+tokenQuantity<=allowance |
"INCORRECT PAYMENT AMOUNT" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | tokenQuantity*salePrice<=msg.value,"INCORRECT PAYMENT AMOUNT" | 20,319 | tokenQuantity*salePrice<=msg.value |
"NOT ENOUGH LEFT IN STOCK" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | tokenQuantity+currentSupply<=ownerMintBuffer,"NOT ENOUGH LEFT IN STOCK" | 20,319 | tokenQuantity+currentSupply<=ownerMintBuffer |
"Not enough LINK to pay fee" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | LINK.balanceOf(address(this))>=s_fee,"Not enough LINK to pay fee" | 20,319 | LINK.balanceOf(address(this))>=s_fee |
"Already generated random offset" | // contracts/PMV.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
cont... | !offsetRequested,"Already generated random offset" | 20,319 | !offsetRequested |
"Mult overflow" | pragma solidity ^0.6.6;
library SafeMath {
using SafeMath for uint256;
function add(uint256 x, uint256 y) internal pure returns (uint256) {
}
function sub(uint256 x, uint256 y) internal pure returns (uint256) {
}
function mult(uint256 x, uint256 y) internal pure returns (uint256) {
... | z/x==y,"Mult overflow" | 20,359 | z/x==y |
"AccessControl: sender must be an admin to grant" | pragma solidity ^0.6.0;
import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../GSN/Context.sol";
import "../Initializable.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* Roles are referred to by their `bytes32` identifier. These ... | hasRole(_roles[role].adminRole,_msgSender()),"AccessControl: sender must be an admin to grant" | 20,369 | hasRole(_roles[role].adminRole,_msgSender()) |
"leftover balance" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | IERC20(loanTerms.payableCurrency).balanceOf(address(this))==0,"leftover balance" | 20,414 | IERC20(loanTerms.payableCurrency).balanceOf(address(this))==0 |
"borrower cannot pay" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | asset.balanceOf(borrower)>=needFromBorrower,"borrower cannot pay" | 20,414 | asset.balanceOf(borrower)>=needFromBorrower |
"lacks borrower approval" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | asset.allowance(borrower,address(this))>=needFromBorrower,"lacks borrower approval" | 20,414 | asset.allowance(borrower,address(this))>=needFromBorrower |
"collateral ownership" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | contracts.assetWrapper.ownerOf(loanData.terms.collateralTokenId)==address(this),"collateral ownership" | 20,414 | contracts.assetWrapper.ownerOf(loanData.terms.collateralTokenId)==address(this) |
"caller not borrower" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | sourceLoanCore.borrowerNote().ownerOf(borrowerNoteId)==msg.sender,"caller not borrower" | 20,414 | sourceLoanCore.borrowerNote().ownerOf(borrowerNoteId)==msg.sender |
"non-compatible AssetWrapper" | pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./externa... | address(sourceLoanCore.collateralToken())==address(targetLoanCore.collateralToken()),"non-compatible AssetWrapper" | 20,414 | address(sourceLoanCore.collateralToken())==address(targetLoanCore.collateralToken()) |
"CypherTakesERC721: token must had been burned" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable, Context} from "@openzeppelin/contracts/security/Pausable... | _burned[tokenId]!=address(0),"CypherTakesERC721: token must had been burned" | 20,559 | _burned[tokenId]!=address(0) |
"ERC721Burnable: caller is not owner nor approved" | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
/**
* NOTE: This file is a clone of the OpenZeppelin ERC721.sol contract. It was forked from https://github.com/OpenZeppelin/openzeppelin-contracts
* at commit 1ada3b633e5bfd9d4ffe0207d64773a11f5a7c40
*
* The code was modified to inherit from our customized E... | _isApprovedOrOwner(_msgSender(),tokenID),"ERC721Burnable: caller is not owner nor approved" | 20,564 | _isApprovedOrOwner(_msgSender(),tokenID) |
null | contract BRDToken is MintableToken {
using SafeMath for uint256;
string public name = "Bread Token";
string public symbol = "BRD";
uint256 public decimals = 18;
// override StandardToken#transferFrom
// ensures that minting has finished or the message sender is the token owner
function transferFrom... | mintingFinished||msg.sender==owner | 20,638 | mintingFinished||msg.sender==owner |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.