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.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... | approved[msg.sender]==true | 41,671 | approved[msg.sender]==true |
'tokenId not exist' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/math/Math.sol';
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/token/ERC20... | wsa.ownerOf(tokenId)!=address(0),'tokenId not exist' | 41,672 | wsa.ownerOf(tokenId)!=address(0) |
'tokenId already in mining' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/math/Math.sol';
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/token/ERC20... | !stakedTokens[tokenId],'tokenId already in mining' | 41,672 | !stakedTokens[tokenId] |
'invalid owner' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/math/Math.sol';
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/token/ERC20... | wsa.ownerOf(tokenIds[i])==msg.sender,'invalid owner' | 41,672 | wsa.ownerOf(tokenIds[i])==msg.sender |
"IWC:NoInternalAccess" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
abstract contract InternalWhitelistControl is Ownable {
mapping(address => bool) public accessWhitelist;
// only whitelisted, owner or this contract
modifier internalWhitelisted(address inComingAddr)... | accessWhitelist[inComingAddr]||inComingAddr==owner()||inComingAddr==address(this),"IWC:NoInternalAccess" | 41,673 | accessWhitelist[inComingAddr]||inComingAddr==owner()||inComingAddr==address(this) |
null | pragma solidity 0.5.13;
contract Yangue {
uint256 constant private initial_supply = 1e3;
uint256 constant private new_address_supply = 1e3;
uint256 constant private precision = 1e3;
string constant public name = "Yangue Reborn";
string constant public symbol = "YANG";
uint8 constant public decimals = 3;
... | isWhitelisted(_from) | 41,687 | isWhitelisted(_from) |
"Sale ended" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openze... | _totalSupply()<=MAX_ITEMS,"Sale ended" | 41,722 | _totalSupply()<=MAX_ITEMS |
"Max limit" | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openze... | total+_count<=MAX_ITEMS,"Max limit" | 41,722 | total+_count<=MAX_ITEMS |
'You are not on the whitelist' | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openze... | _presaleList[_to],'You are not on the whitelist' | 41,722 | _presaleList[_to] |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | _addressNotNull(newOwner) | 41,729 | _addressNotNull(newOwner) |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | doggyIdToPrice[_tokenId]>=1ether | 41,729 | doggyIdToPrice[_tokenId]>=1ether |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | doggyIdToOwner[_tokenId]==msg.sender&&msg.value==20finney | 41,729 | doggyIdToOwner[_tokenId]==msg.sender&&msg.value==20finney |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | _approved(newOwner,_tokenId) | 41,729 | _approved(newOwner,_tokenId) |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | _addressNotNull(_to) | 41,729 | _addressNotNull(_to) |
null | pragma solidity ^0.4.19;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pur... | _approved(_to,_tokenId) | 41,729 | _approved(_to,_tokenId) |
"AlUSD: Alchemist is not whitelisted" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";... | whiteList[msg.sender],"AlUSD: Alchemist is not whitelisted" | 41,772 | whiteList[msg.sender] |
"AlUSD: user is currently paused." | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";... | !paused[msg.sender],"AlUSD: user is currently paused." | 41,772 | !paused[msg.sender] |
"only sentinel" | // SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";... | hasRole(SENTINEL_ROLE,msg.sender),"only sentinel" | 41,772 | hasRole(SENTINEL_ROLE,msg.sender) |
"The contract is frozen" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | !_frozen,"The contract is frozen" | 41,855 | !_frozen |
"Sale is not open!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | _public_sale_open||_private_sale_open,"Sale is not open!" | 41,855 | _public_sale_open||_private_sale_open |
"Not enough Dragonz left!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | (currentIndex+count)<=MAX_SUPPLY+1,"Not enough Dragonz left!" | 41,855 | (currentIndex+count)<=MAX_SUPPLY+1 |
"Only access for owner or dev." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | _msgSender()==owner()||devAddresses[_msgSender()],"Only access for owner or dev." | 41,855 | _msgSender()==owner()||devAddresses[_msgSender()] |
"Not enough ether to purchase the Dragonz." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | msg.value>=(price+PUBLIC_PRICE_OF_3),"Not enough ether to purchase the Dragonz." | 41,855 | msg.value>=(price+PUBLIC_PRICE_OF_3) |
"There are not enough NFTs remaining to reserve" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | (totalMinted+numberToReserve)<MAX_SUPPLY+1,"There are not enough NFTs remaining to reserve" | 41,855 | (totalMinted+numberToReserve)<MAX_SUPPLY+1 |
"Not enough Dragonz left!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions... | (currentIndex+amount)<=MAX_SUPPLY+1,"Not enough Dragonz left!" | 41,855 | (currentIndex+amount)<=MAX_SUPPLY+1 |
null | pragma solidity ^0.4.11;
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... | (balances[msg.sender]>=_value)&&(_value>0)&&(_to!=address(0))&&(balances[_to].add(_value)>=balances[_to])&&(msg.data.length>=(2*32)+4) | 41,859 | (balances[msg.sender]>=_value)&&(_value>0)&&(_to!=address(0))&&(balances[_to].add(_value)>=balances[_to])&&(msg.data.length>=(2*32)+4) |
null | pragma solidity ^0.4.11;
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)&&(_to!=address(0))&&(balances[_to].add(_value)>=balances[_to])&&(msg.data.length>=(2*32)+4) | 41,859 | (allowed[_from][msg.sender]>=_value)&&(balances[_from]>=_value)&&(_value>0)&&(_to!=address(0))&&(balances[_to].add(_value)>=balances[_to])&&(msg.data.length>=(2*32)+4) |
"token balances insufficient" | pragma solidity ^0.4.25;
interface ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public view returns (uint256);
//function transferFrom(address from, address to, u... | _value*10**uint256(_decimals)<=balances[msg.sender],"token balances insufficient" | 41,861 | _value*10**uint256(_decimals)<=balances[msg.sender] |
"insufficient token to checksum" | pragma solidity ^0.4.25;
interface ERC20 {
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public view returns (uint256);
//function transferFrom(address from, address to, u... | balances[list_sender[i]]>0,"insufficient token to checksum" | 41,861 | balances[list_sender[i]]>0 |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | !stoped | 41,876 | !stoped |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | currentCapped+value<=cap | 41,876 | currentCapped+value<=cap |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | currentCapped+value<=((now/86400-capStartday)+1).mul(capPerday) | 41,876 | currentCapped+value<=((now/86400-capStartday)+1).mul(capPerday) |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | airSupply+airPerTime<=airMaxSupply | 41,876 | airSupply+airPerTime<=airMaxSupply |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | _amount+investSupply<=investMaxSupply | 41,876 | _amount+investSupply<=investMaxSupply |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | !stoped||msg.sender==owner | 41,876 | !stoped||msg.sender==owner |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | balanceOf[_from]>=_value+lockedAmount[_from][2] | 41,876 | balanceOf[_from]>=_value+lockedAmount[_from][2] |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | lockedAmount[msg.sender][3]!=0 | 41,876 | lockedAmount[msg.sender][3]!=0 |
null | pragma solidity ^0.5.1;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
}
function add(uint256 a, uint... | !disabledProxyList[_from] | 41,876 | !disabledProxyList[_from] |
"Address not mapped" | // SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IBond {
function paySubsidy() external returns ( uint );
}
// Immutable contract routes between Olympus Pro bonds and subsidy controllers
// Allows for subsidies on bonds offered through bond contracts
contract OPSubsidyRouter is ... | bondForController[msg.sender]!=address(0),"Address not mapped" | 41,929 | bondForController[msg.sender]!=address(0) |
null | pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address previousOwner);
... | packsToWei[_amountOfTokens]==0 | 41,933 | packsToWei[_amountOfTokens]==0 |
null | pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address previousOwner);
... | packsToWei[_amountOfTokens]>0 | 41,933 | packsToWei[_amountOfTokens]>0 |
null | pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address previousOwner);
... | packsToWei[_amountOfTokens]!=0 | 41,933 | packsToWei[_amountOfTokens]!=0 |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | assetSwaps[0]==address(0) | 41,948 | assetSwaps[0]==address(0) |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | !nextUpdateSettle | 41,948 | !nextUpdateSettle |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | (ethp*10<prices[0][currentDay]*15)&&(ethp*10>prices[0][currentDay]*5) | 41,948 | (ethp*10<prices[0][currentDay]*15)&&(ethp*10>prices[0][currentDay]*5) |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | (spxp*10<prices[1][currentDay]*15)&&(spxp*10>prices[1][currentDay]*5) | 41,948 | (spxp*10<prices[1][currentDay]*15)&&(spxp*10>prices[1][currentDay]*5) |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | (btcp*10<prices[2][currentDay]*15)&&(btcp*10>prices[2][currentDay]*5) | 41,948 | (btcp*10<prices[2][currentDay]*15)&&(btcp*10>prices[2][currentDay]*5) |
null | pragma solidity 0.5.15;
import "./AssetSwap.sol";
contract Oracle {
constructor (uint ethPrice, uint spxPrice, uint btcPrice) public {
}
address[3] public assetSwaps;
uint[6][3] private prices;
uint public lastUpdateTime;
uint public lastSettleTime;
int[3] public levRatio;
uint... | admins[msg.sender]||readers[msg.sender] | 41,948 | admins[msg.sender]||readers[msg.sender] |
"BridgePool: Invalid signer" | // SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <=0.8.0;
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../common/signature/SigCheckable.sol";
import "../common/SafeAmou... | signers[_signer],"BridgePool: Invalid signer" | 41,997 | signers[_signer] |
"Redeem: window is not open" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | redemptionWindows[windowIndex].open,"Redeem: window is not open" | 42,091 | redemptionWindows[windowIndex].open |
"Max limit" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | generalCounter.current()+amount<=MAX_MINT,"Max limit" | 42,091 | generalCounter.current()+amount<=MAX_MINT |
"Too many for presale window" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | mintedTotal[msg.sender]+amount<=redemptionWindows[windowIndex].maxRedeemPerWallet,"Too many for presale window" | 42,091 | mintedTotal[msg.sender]+amount<=redemptionWindows[windowIndex].maxRedeemPerWallet |
"Invalid proof" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | verifyMerkleProof(merkleProof,redemptionWindows[windowIndex].merkleRoot),"Invalid proof" | 42,091 | verifyMerkleProof(merkleProof,redemptionWindows[windowIndex].merkleRoot) |
"Not enough LINK" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | LINK.balanceOf(address(this))>=fee,"Not enough LINK" | 42,091 | LINK.balanceOf(address(this))>=fee |
"Token Not Found" | pragma solidity ^0.8.4;
/*
* @title ERC721 token for Scrambles
*
* @author original logic by Niftydude, extended by @bitcoinski, extended again by @georgefatlion
*/
contract Scrambles is IScrambles, ERC721Enumerable, ERC721Pausable, ERC721Burnable, Ownable, VRFConsumerBase {
using Strings for uint256;
u... | totalSupply()>tokenId,"Token Not Found" | 42,091 | totalSupply()>tokenId |
"Invalid ticket value/count" | pragma solidity ^0.5.2;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address... | _ticketNumbers.div(10**(ticketCount.mul(12)))==0&&_ticketNumbers.div(10**(ticketCount.mul(12).sub(2)))>0,"Invalid ticket value/count" | 42,128 | _ticketNumbers.div(10**(ticketCount.mul(12)))==0&&_ticketNumbers.div(10**(ticketCount.mul(12).sub(2)))>0 |
"Insufficient amount to transfer" | pragma solidity ^0.5.2;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address... | IERC20(tokenAddress).balanceOf(address(this))>=amount,"Insufficient amount to transfer" | 42,128 | IERC20(tokenAddress).balanceOf(address(this))>=amount |
"GelatoExecutors.unstakeExecutor: msg.sender still assigned" | // "SPDX-License-Identifier: UNLICENSED"
pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2;
import {IGelatoExecutors} from "./interfaces/IGelatoExecutors.sol";
import {GelatoProviders} from "./GelatoProviders.sol";
import {Address} from "../external/Address.sol";
import {SafeMath} from "../external/SafeMath.so... | !isExecutorAssigned(msg.sender),"GelatoExecutors.unstakeExecutor: msg.sender still assigned" | 42,311 | !isExecutorAssigned(msg.sender) |
"GelatoExecutors.withdrawExcessExecutorStake: not minStaked" | // "SPDX-License-Identifier: UNLICENSED"
pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2;
import {IGelatoExecutors} from "./interfaces/IGelatoExecutors.sol";
import {GelatoProviders} from "./GelatoProviders.sol";
import {Address} from "../external/Address.sol";
import {SafeMath} from "../external/SafeMath.so... | isExecutorMinStaked(msg.sender),"GelatoExecutors.withdrawExcessExecutorStake: not minStaked" | 42,311 | isExecutorMinStaked(msg.sender) |
"None Left!" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | tokenCount()<=MAX_ELEMENTS,"None Left!" | 42,362 | tokenCount()<=MAX_ELEMENTS |
"Sale paused" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | !PAUSE,"Sale paused" | 42,362 | !PAUSE |
"Mint is currently whitelist only" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | !onlyWhiteListed,"Mint is currently whitelist only" | 42,362 | !onlyWhiteListed |
"Whitelist address has already claimed." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | !whitelistClaimed[msg.sender],"Whitelist address has already claimed." | 42,362 | !whitelistClaimed[msg.sender] |
"Exceeds personal limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | 1+balanceOf(msg.sender)<=nftPerAddressLimit,"Exceeds personal limit" | 42,362 | 1+balanceOf(msg.sender)<=nftPerAddressLimit |
"Over Supply Limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | total+1<=MAX_ELEMENTS,"Over Supply Limit" | 42,362 | total+1<=MAX_ELEMENTS |
"Address does not exist in whitelist" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | MerkleProof.verify(proof,merkleRoot,_generateMerkleLeaf(msg.sender)),"Address does not exist in whitelist" | 42,362 | MerkleProof.verify(proof,merkleRoot,_generateMerkleLeaf(msg.sender)) |
"Exceeds personal limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | _count+balanceOf(msg.sender)<=nftPerAddressLimit,"Exceeds personal limit" | 42,362 | _count+balanceOf(msg.sender)<=nftPerAddressLimit |
"Over Supply Limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
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/math/SafeMath.sol";
import "@o... | total+mintCount<=MAX_ELEMENTS,"Over Supply Limit" | 42,362 | total+mintCount<=MAX_ELEMENTS |
null | pragma solidity 0.4.25; /*
________________________________________________________________
// 'KewCover' Token contract with following functionalities:
// => In-built ICO functionality
// => ERC20 Compliance
// => Higher control of ICO by owner
// => selfdestruct functionality
// => Saf... | userAddresses[i]!=0x0 | 42,363 | userAddresses[i]!=0x0 |
"TICKET CANCELED" | /// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Balladr.sol";
import "../node_modules/@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "../node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
struct Ticket {
// Ticket ID issued by backend
bytes32 ticketId;
... | ticketCanceled[ticket.ticketId]==false,"TICKET CANCELED" | 42,384 | ticketCanceled[ticket.ticketId]==false |
"BAD PRICE" | /// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Balladr.sol";
import "../node_modules/@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "../node_modules/@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
struct Ticket {
// Ticket ID issued by backend
bytes32 ticketId;
... | msg.value>=(ticket.price*amount),"BAD PRICE" | 42,384 | msg.value>=(ticket.price*amount) |
"Contract reached the max balance allowed" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.3;
contract BridgeDeposit {
address private owner;
uint256 private maxDepositAmount;
uint256 private maxBalance;
bool private canReceiveDeposit;
constructor(
uint256 _maxDepositAmount,
uint256 _maxBalance,
bool _ca... | address(this).balance<=maxBalance,"Contract reached the max balance allowed" | 42,504 | address(this).balance<=maxBalance |
"RarityRegisterAdminAccessControl: Only rarity manager role" | pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
contract RarityRegisterAdminAccessControl is AccessControlEnumerable {
bytes32 public constant RARITY_MANAGER_ROLE = keccak256("RARITY_MANAGER_ROLE");
address public managerOf;
event RarityRegisterManagerAdded(address ind... | hasRole(RARITY_MANAGER_ROLE,msg.sender),"RarityRegisterAdminAccessControl: Only rarity manager role" | 42,592 | hasRole(RARITY_MANAGER_ROLE,msg.sender) |
"Contract sealed." | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./PublicCryptopunksData.sol";
import "./IOtherPunksConfiguration.sol";
import "./ERC721.sol";
import "./Ownable.sol";
contract OtherPunks is ERC721, Ownable {
event BurnOriginalPunk (
uint16 originalPunkId
... | !contractSealed,"Contract sealed." | 42,606 | !contractSealed |
"PunkId does not exist." | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./PublicCryptopunksData.sol";
import "./IOtherPunksConfiguration.sol";
import "./ERC721.sol";
import "./Ownable.sol";
contract OtherPunks is ERC721, Ownable {
event BurnOriginalPunk (
uint16 originalPunkId
... | ERC721._exists(punkId),"PunkId does not exist." | 42,606 | ERC721._exists(punkId) |
null | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./PublicCryptopunksData.sol";
import "./IOtherPunksConfiguration.sol";
import "./ERC721.sol";
import "./Ownable.sol";
contract OtherPunks is ERC721, Ownable {
event BurnOriginalPunk (
uint16 originalPunkId
... | otherPunksConfiguration.getBlockNumber()>=otherPunksConfiguration.getHardDifficultyBlockNumberDeadline()&&difficultyTarget>otherPunksConfiguration.getHardDifficultyTarget() | 42,606 | otherPunksConfiguration.getBlockNumber()>=otherPunksConfiguration.getHardDifficultyBlockNumberDeadline()&&difficultyTarget>otherPunksConfiguration.getHardDifficultyTarget() |
null | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./PublicCryptopunksData.sol";
import "./IOtherPunksConfiguration.sol";
import "./ERC721.sol";
import "./Ownable.sol";
contract OtherPunks is ERC721, Ownable {
event BurnOriginalPunk (
uint16 originalPunkId
... | punkAssetsToId[punkAssets]==0 | 42,606 | punkAssetsToId[punkAssets]==0 |
null | //SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./PublicCryptopunksData.sol";
import "./IOtherPunksConfiguration.sol";
import "./ERC721.sol";
import "./Ownable.sol";
contract OtherPunks is ERC721, Ownable {
event BurnOriginalPunk (
uint16 originalPunkId
... | punksData.isPackedEqualToOriginalPunkIndex(punkAssets,originalPunkIndex) | 42,606 | punksData.isPackedEqualToOriginalPunkIndex(punkAssets,originalPunkIndex) |
null | pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint2... | (now>icoEnd)&&(token.totalSupply()<icoSoftcap) | 42,621 | (now>icoEnd)&&(token.totalSupply()<icoSoftcap) |
null | pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint2... | token.totalSupply()>=icoSoftcap | 42,621 | token.totalSupply()>=icoSoftcap |
null | pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint2... | (now>=icoStartP1)&&(now<icoEnd) | 42,621 | (now>=icoStartP1)&&(now<icoEnd) |
null | pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint2... | token.totalSupply()<icoHardcap | 42,621 | token.totalSupply()<icoHardcap |
"Divisor should not be 0" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@chainlink/contracts/s... | divisorAssetType[0]!=0,"Divisor should not be 0" | 42,624 | divisorAssetType[0]!=0 |
"Decimals too high" | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@chainlink/contracts/s... | oracleTypesValuesWeightsDecimals[3][i]<=18,"Decimals too high" | 42,624 | oracleTypesValuesWeightsDecimals[3][i]<=18 |
"Only cat owner is allowed" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
// -----------------------------------------------------------------------------------------------
// Wrapped CryptoCat
//
// Wrapper contract for minting ERC721 for vintage 8-bit NFT project CryptoCats (cryptocats.thetwentysix.io)
//
// Community built wi... | cryptoCatsCore.getCatOwner(_catId)==msg.sender,"Only cat owner is allowed" | 42,635 | cryptoCatsCore.getCatOwner(_catId)==msg.sender |
"Cat cannot be transferred" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
// -----------------------------------------------------------------------------------------------
// Wrapped CryptoCat
//
// Wrapper contract for minting ERC721 for vintage 8-bit NFT project CryptoCats (cryptocats.thetwentysix.io)
//
// Community built wi... | cryptoCatsCore.getCatOwner(_catId)==address(this),"Cat cannot be transferred" | 42,635 | cryptoCatsCore.getCatOwner(_catId)==address(this) |
"Caller is not owner nor approved" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
// -----------------------------------------------------------------------------------------------
// Wrapped CryptoCat
//
// Wrapper contract for minting ERC721 for vintage 8-bit NFT project CryptoCats (cryptocats.thetwentysix.io)
//
// Community built wi... | _isApprovedOrOwner(msg.sender,_tokenId),"Caller is not owner nor approved" | 42,635 | _isApprovedOrOwner(msg.sender,_tokenId) |
"Cat not found in contract" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
// -----------------------------------------------------------------------------------------------
// Wrapped CryptoCat
//
// Wrapper contract for minting ERC721 for vintage 8-bit NFT project CryptoCats (cryptocats.thetwentysix.io)
//
// Community built wi... | catIsDepositedInContract[_tokenId],"Cat not found in contract" | 42,635 | catIsDepositedInContract[_tokenId] |
"Cat cannot be transferred" | // SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;
// -----------------------------------------------------------------------------------------------
// Wrapped CryptoCat
//
// Wrapper contract for minting ERC721 for vintage 8-bit NFT project CryptoCats (cryptocats.thetwentysix.io)
//
// Community built wi... | cryptoCatsCore.transfer(msg.sender,_tokenId),"Cat cannot be transferred" | 42,635 | cryptoCatsCore.transfer(msg.sender,_tokenId) |
'Sale not approved' | pragma solidity ^ 0.4 .26;
contract ERC20 {
function transfer(address receiver, uint amount) public;
function balanceOf(address tokenOwner) public constant returns(uint balance);
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*... | approvedToSell(buyFrom)>1,'Sale not approved' | 42,650 | approvedToSell(buyFrom)>1 |
"Day name must be less than 36 chars" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | bytes(newName).length<=36,"Day name must be less than 36 chars" | 42,669 | bytes(newName).length<=36 |
'Cannot change name on the day itself' | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | !isToday,'Cannot change name on the day itself' | 42,669 | !isToday |
"This NFT was already minted" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | mintedDates[_monthNumber][_dayOfMonth]==false,"This NFT was already minted" | 42,669 | mintedDates[_monthNumber][_dayOfMonth]==false |
"This NFT was already auctioned" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausabl... | auctionedDates[_monthNumber][_dayOfMonth]==false,"This NFT was already auctioned" | 42,669 | auctionedDates[_monthNumber][_dayOfMonth]==false |
"Cannot downgrade level or same level" | pragma solidity ^0.6.0;
contract LPTokenWrapper {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Token to be staked
IERC20 public stakingToken = IERC20(address(0));
uint256 private _totalSupply;
mapping(address => uint256) private _balances;
function totalSupply() public ... | NAPSlevel[msg.sender]<=level,"Cannot downgrade level or same level" | 42,797 | NAPSlevel[msg.sender]<=level |
"Insufficient Token Allowance" | pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) { ... | Token(LPtokenAddress).transferFrom(msg.sender,address(this),amountToStake),"Insufficient Token Allowance" | 42,998 | Token(LPtokenAddress).transferFrom(msg.sender,address(this),amountToStake) |
"Could not transfer deposit fee." | pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) { ... | Token(LPtokenAddress).transfer(owner,fee),"Could not transfer deposit fee." | 42,998 | Token(LPtokenAddress).transfer(owner,fee) |
"Could not transfer tokens." | pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint256) { ... | Token(LPtokenAddress).transfer(msg.sender,amountAfterFee),"Could not transfer tokens." | 42,998 | Token(LPtokenAddress).transfer(msg.sender,amountAfterFee) |
null | interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
... | !_tokenExists[_token] | 43,015 | !_tokenExists[_token] |
null | pragma solidity ^0.4.17;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the orig... | (msg.sender==owner)||(msg.sender==cs) | 43,038 | (msg.sender==owner)||(msg.sender==cs) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.