comment
stringlengths
1
211
input
stringlengths
155
20k
label
stringlengths
4
1k
original_idx
int64
203
514k
predicate
stringlengths
1
1k
"Refund::refund: pToken is not allowed"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./Services/ERC20.sol"; import "./Services/Blacklist.sol"; import "./Services/Service.sol"; contract Refund is Service, BlackList { uint public startTimestamp; uint public endTimestamp; mapping(address => Base) public pTokens; addres...
pTokensIsAllowed(pToken),"Refund::refund: pToken is not allowed"
16,499
pTokensIsAllowed(pToken)
"Refund::claimToken: bad timing for the request"
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "./Services/ERC20.sol"; import "./Services/Blacklist.sol"; import "./Services/Service.sol"; contract Refund is Service, BlackList { uint public startTimestamp; uint public endTimestamp; mapping(address => Base) public pTokens; addres...
getBlockTimestamp()>startTimestamp,"Refund::claimToken: bad timing for the request"
16,499
getBlockTimestamp()>startTimestamp
"FOREX: caller not an operator"
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./interfaces/IForex.sol"; contract Forex is IForex, AccessControl, ERC20 { bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROL...
hasRole(OPERATOR_ROLE,msg.sender)||hasRole(ADMIN_ROLE,msg.sender),"FOREX: caller not an operator"
16,540
hasRole(OPERATOR_ROLE,msg.sender)||hasRole(ADMIN_ROLE,msg.sender)
"Invalid ratio: div by zero"
pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mappi...
_ratio[1]!=0,"Invalid ratio: div by zero"
16,553
_ratio[1]!=0
"Invalid lock ratio: above 100%"
pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mappi...
_ratio[1]>=_ratio[0],"Invalid lock ratio: above 100%"
16,553
_ratio[1]>=_ratio[0]
"Merchant is locked"
pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mappi...
merchantVOWToVSCLock[_merchant][0]==0,"Merchant is locked"
16,553
merchantVOWToVSCLock[_merchant][0]==0
"No VOW to unlock"
pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mappi...
merchantVOWToVSCLock[_merchant][0]>0,"No VOW to unlock"
16,553
merchantVOWToVSCLock[_merchant][0]>0
"Incorrect VSC amount"
pragma solidity 0.6.7; contract VSCTokenManager is TokenManager, IERC777Recipient { using SafeMath for uint256; enum RatioType { MerchantLockBurnVOW, MerchantLockMintVSC, Liquidity } address public immutable vowContract; mapping(address => uint256[2]) public merchantVOWToVSCLock; mappi...
merchantVOWToVSCLock[_merchant][1]==_vscAmount,"Incorrect VSC amount"
16,553
merchantVOWToVSCLock[_merchant][1]==_vscAmount
"25"
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: GPL-3.0-only import "./utils/Common.sol"; import "./utils/ERC1155Base.sol"; import "./interface/IERC1155TokenReceiver.sol"; import "./CashMarket.sol"; /** * @notice Implements the ERC1155 token standard for transferring fCash tokens ...
IERC1155TokenReceiver(to).onERC1155Received(msg.sender,from,id,value,data)==ERC1155_ACCEPTED,"25"
16,592
IERC1155TokenReceiver(to).onERC1155Received(msg.sender,from,id,value,data)==ERC1155_ACCEPTED
"25"
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: GPL-3.0-only import "./utils/Common.sol"; import "./utils/ERC1155Base.sol"; import "./interface/IERC1155TokenReceiver.sol"; import "./CashMarket.sol"; /** * @notice Implements the ERC1155 token standard for transferring fCash tokens ...
IERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender,from,ids,values,data)==ERC1155_BATCH_ACCEPTED,"25"
16,592
IERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender,from,ids,values,data)==ERC1155_BATCH_ACCEPTED
"26"
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: GPL-3.0-only import "./utils/Common.sol"; import "./utils/ERC1155Base.sol"; import "./interface/IERC1155TokenReceiver.sol"; import "./CashMarket.sol"; /** * @notice Implements the ERC1155 token standard for transferring fCash tokens ...
uint256(value)==_value,"26"
16,592
uint256(value)==_value
"23"
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: GPL-3.0-only import "./utils/Common.sol"; import "./utils/ERC1155Base.sol"; import "./interface/IERC1155TokenReceiver.sol"; import "./CashMarket.sol"; /** * @notice Implements the ERC1155 token standard for transferring fCash tokens ...
Common.isReceiver(assetType),"23"
16,592
Common.isReceiver(assetType)
add
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: GPL-3.0-only import "../lib/SafeInt256.sol"; import "../lib/SafeMath.sol"; import "../utils/Governed.sol"; import "../utils/Common.sol"; import "../interface/IPortfoliosCallable.sol"; import "../storage/PortfoliosStorage.sol"; import ...
ents[i].netfCashValue=requirements[i].netfCashValue.add(netfCash
16,603
requirements[i].netfCashValue
"User don't have enough bums"
pragma solidity >=0.8.0 <0.9.0; interface IRetroPandas { function pandasBalance(address user) external view returns(uint256); function pandanatorsBalance(address user) external view returns(uint256); } contract SteamedBuns is ERC20("Steamed Buns", "BUNS") { using SafeMath for uint256; IRetroPandas public re...
balanceOf(user)>=amount,"User don't have enough bums"
16,617
balanceOf(user)>=amount
"Reserve would exceed max supply of AstroGators"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
totalSupply().add(numberOfTokens)<=MAX_AstroGators,"Reserve would exceed max supply of AstroGators"
16,667
totalSupply().add(numberOfTokens)<=MAX_AstroGators
"Ether value sent is not correct"
pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be c...
AstroGatorPrice.mul(numberOfTokens)<=msg.value,"Ether value sent is not correct"
16,667
AstroGatorPrice.mul(numberOfTokens)<=msg.value
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
preClaim.timestamp+preClaimPeriod<=block.timestamp
16,671
preClaim.timestamp+preClaimPeriod<=block.timestamp
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
preClaim.timestamp+2*preClaimPeriod>=block.timestamp
16,671
preClaim.timestamp+2*preClaimPeriod>=block.timestamp
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
claims[_lostAddress].collateral==0
16,671
claims[_lostAddress].collateral==0
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
validateClaim(_lostAddress,_nonce)
16,671
validateClaim(_lostAddress,_nonce)
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
claim.timestamp+claimPeriod<=block.timestamp
16,671
claim.timestamp+claimPeriod<=block.timestamp
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
totalSupply_.add(_amount)<=totalShares_
16,671
totalSupply_.add(_amount)<=totalShares_
null
pragma solidity ^0.4.24; // This is the Alethena Share Token. // To learn more, visit https://github.com/Alethena/Alethena-Shares-Token // Or contact us at contact@alethena.com contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
!isPaused
16,671
!isPaused
"ERC721I: _mint() Token to Mint Already Exists!"
pragma solidity ^0.8.0; contract ERC721I { string public name; string public symbol; string internal baseTokenURI; string internal baseTokenURI_EXT; constructor(string memory name_, string memory symbol_) { } uint256 public totalSupply; mapping(uint256 => addre...
ownerOf[tokenId_]==address(0x0),"ERC721I: _mint() Token to Mint Already Exists!"
16,683
ownerOf[tokenId_]==address(0x0)
"ERC721I: _isApprovedOrOwner() Owner is Zero Address!"
pragma solidity ^0.8.0; contract ERC721I { string public name; string public symbol; string internal baseTokenURI; string internal baseTokenURI_EXT; constructor(string memory name_, string memory symbol_) { } uint256 public totalSupply; mapping(uint256 => addre...
ownerOf[tokenId_]!=address(0x0),"ERC721I: _isApprovedOrOwner() Owner is Zero Address!"
16,683
ownerOf[tokenId_]!=address(0x0)
"ERC721I: transferFrom() _isApprovedOrOwner = false!"
pragma solidity ^0.8.0; contract ERC721I { string public name; string public symbol; string internal baseTokenURI; string internal baseTokenURI_EXT; constructor(string memory name_, string memory symbol_) { } uint256 public totalSupply; mapping(uint256 => addre...
_isApprovedOrOwner(msg.sender,tokenId_),"ERC721I: transferFrom() _isApprovedOrOwner = false!"
16,683
_isApprovedOrOwner(msg.sender,tokenId_)
"Public Mints are not enabled yet!"
pragma solidity ^0.8.0; contract ERC721I { string public name; string public symbol; string internal baseTokenURI; string internal baseTokenURI_EXT; constructor(string memory name_, string memory symbol_) { } uint256 public totalSupply; mapping(uint256 => addre...
publicMintEnabled&&block.timestamp>=publicMintStartTime,"Public Mints are not enabled yet!"
16,683
publicMintEnabled&&block.timestamp>=publicMintStartTime
"Exceeds maximum supply"
pragma solidity 0.8.3; contract SlothsNFT is ERC721, ERC721Enumerable,ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint16 public constant maxSupply = 9000; string private _baseTokenURI; uint16 public sold = 0; uint256 public _startDa...
(_quantityToMint+totalSupply())<=maxSupply,"Exceeds maximum supply"
16,734
(_quantityToMint+totalSupply())<=maxSupply
"Ether submitted does not match current price"
pragma solidity 0.8.3; contract SlothsNFT is ERC721, ERC721Enumerable,ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint16 public constant maxSupply = 9000; string private _baseTokenURI; uint16 public sold = 0; uint256 public _startDa...
msg.value==(getCurrentPrice()*_quantityToMint),"Ether submitted does not match current price"
16,734
msg.value==(getCurrentPrice()*_quantityToMint)
'No sloths available'
pragma solidity 0.8.3; contract SlothsNFT is ERC721, ERC721Enumerable,ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint16 public constant maxSupply = 9000; string private _baseTokenURI; uint16 public sold = 0; uint256 public _startDa...
slothsToAwake(owner)>0,'No sloths available'
16,734
slothsToAwake(owner)>0
'TokenUri is empty'
pragma solidity 0.8.3; contract SlothsNFT is ERC721, ERC721Enumerable,ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint16 public constant maxSupply = 9000; string private _baseTokenURI; uint16 public sold = 0; uint256 public _startDa...
(keccak256(abi.encodePacked((tokenUri)))!=keccak256(abi.encodePacked(('')))),'TokenUri is empty'
16,734
(keccak256(abi.encodePacked((tokenUri)))!=keccak256(abi.encodePacked((''))))
'Sloth already awaken!'
pragma solidity 0.8.3; contract SlothsNFT is ERC721, ERC721Enumerable,ERC721URIStorage, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint16 public constant maxSupply = 9000; string private _baseTokenURI; uint16 public sold = 0; uint256 public _startDa...
(keccak256(abi.encodePacked((tokenURI(tokenId))))==keccak256(abi.encodePacked((_slothMetadata)))),'Sloth already awaken!'
16,734
(keccak256(abi.encodePacked((tokenURI(tokenId))))==keccak256(abi.encodePacked((_slothMetadata))))
"Not enough available cars to claim."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
CurrentTokenId.current()+1<=MaxTokens,"Not enough available cars to claim."
16,771
CurrentTokenId.current()+1<=MaxTokens
"Not the owner of this Pixl."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
nftContract.ownerOf(nftId)==msg.sender,"Not the owner of this Pixl."
16,771
nftContract.ownerOf(nftId)==msg.sender
"This Pixl has already been used."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
!ClaimedPixlIds[nftId],"This Pixl has already been used."
16,771
!ClaimedPixlIds[nftId]
"Not enough available cars to claim."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
nftIds.length+CurrentTokenId.current()<=MaxTokens,"Not enough available cars to claim."
16,771
nftIds.length+CurrentTokenId.current()<=MaxTokens
"Not the owner of this Pixl."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
nftContract.ownerOf(nftIds[i])==msg.sender,"Not the owner of this Pixl."
16,771
nftContract.ownerOf(nftIds[i])==msg.sender
"Not enough available cars to mint."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
quantity+CurrentTokenId.current()<=MaxTokens,"Not enough available cars to mint."
16,771
quantity+CurrentTokenId.current()<=MaxTokens
"Cannot exceed max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./ERC721Enumerable.sol"; import "./IPixls.sol"; // Pixlton Car Club contract contract PixltonCarClub is ERC721Enumerable, Ownable { using Counters...
_quantity+CurrentTokenId.current()<=MaxTokens,"Cannot exceed max supply"
16,771
_quantity+CurrentTokenId.current()<=MaxTokens
null
/** * * SpaceWave Contract for Initial Coin Offering * */ pragma solidity ^0.5.10; /** * @title ERC20 interface * see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md */ interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (...
(t1>t)&&(t1>=value)
16,776
(t1>t)&&(t1>=value)
null
/** * * SpaceWave Contract for Initial Coin Offering * */ pragma solidity ^0.5.10; /** * @title ERC20 interface * see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md */ interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (...
_balanceOf[msg.sender]>=value
16,776
_balanceOf[msg.sender]>=value
null
/** * * SpaceWave Contract for Initial Coin Offering * */ pragma solidity ^0.5.10; /** * @title ERC20 interface * see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md */ interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (...
(f>=value)&&(a>=value)
16,776
(f>=value)&&(a>=value)
null
/** * * SpaceWave Contract for Initial Coin Offering * */ pragma solidity ^0.5.10; /** * @title ERC20 interface * see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md */ interface IERC20 { function name() external view returns (string memory); function symbol() external view returns (...
(b1>b)&&(b1>=value)
16,776
(b1>b)&&(b1>=value)
"Unknown oracle"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_oracles.remove(address(oracle)),"Unknown oracle"
16,850
_oracles.remove(address(oracle))
"Unknown wrapper"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_wrappers.remove(address(wrapper)),"Unknown wrapper"
16,850
_wrappers.remove(address(wrapper))
"Unknown connector"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_connectors.remove(address(connector)),"Unknown connector"
16,850
_connectors.remove(address(connector))
"Oracle already added"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_oracles.add(address(oracle)),"Oracle already added"
16,850
_oracles.add(address(oracle))
"Wrapper already added"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_wrappers.add(address(wrapper)),"Wrapper already added"
16,850
_wrappers.add(address(wrapper))
"Connector already added"
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IWrapper.sol"; contract OffchainOracle is Owna...
_connectors.add(address(connector)),"Connector already added"
16,850
_connectors.add(address(connector))
"Exceeds max supply"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.sol"; import "@openzeppelin/contracts/...
totalSupply()+count-1<MAX_SUPPLY,"Exceeds max supply"
16,952
totalSupply()+count-1<MAX_SUPPLY
null
// SPDX-License-Identifier: MIT // Faucet contract // Para no tener que dar uno a uno los tokens, tenemos este contrato de "faucet" // // ¿Qué es un Faucet? es una forma muy común de distribuir nuevos Tokens. // // Consiste en un contrato (que _suele_ tener una página web asociada) // que distribuye los tokens a...
claimed[index]==0
16,976
claimed[index]==0
null
// SPDX-License-Identifier: MIT // Faucet contract // Para no tener que dar uno a uno los tokens, tenemos este contrato de "faucet" // // ¿Qué es un Faucet? es una forma muy común de distribuir nuevos Tokens. // // Consiste en un contrato (que _suele_ tener una página web asociada) // que distribuye los tokens a...
ClaimedAmount(index)==0&&index!=address(0)
16,976
ClaimedAmount(index)==0&&index!=address(0)
"Airdrop: error transferencia"
// SPDX-License-Identifier: MIT // Faucet contract // Para no tener que dar uno a uno los tokens, tenemos este contrato de "faucet" // // ¿Qué es un Faucet? es una forma muy común de distribuir nuevos Tokens. // // Consiste en un contrato (que _suele_ tener una página web asociada) // que distribuye los tokens a...
iERC20(token).transfer(index,claimAmount),"Airdrop: error transferencia"
16,976
iERC20(token).transfer(index,claimAmount)
null
/* Orchid - WebRTC P2P VPN Market (on Ethereum) * Copyright (C) 2017-2019 The Orchid Authors */ /* GNU Affero General Public License, Version 3 {{{ */ /* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the...
entry.valid_
16,988
entry.valid_
'HAPI: MAX_SUPPLY'
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.6.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol"; import "./interfaces/IHAPI.sol"; contract HAPI is IHAPI, ERC20PresetMinterPauser { uint public constant override INITIAL...
totalSupply().add(amount)<=MAX_SUPPLY,'HAPI: MAX_SUPPLY'
17,015
totalSupply().add(amount)<=MAX_SUPPLY
Errors.MATH_MULTIPLICATION_OVERFLOW
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.7.4; import {Errors} from "../helpers/Errors.sol"; /** * @title PercentageMath library * @author Aave * @notice Provides functions to perform percentage calculations * @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision...
value<=(type(uint256).max-HALF_PERCENT)/percentage,Errors.MATH_MULTIPLICATION_OVERFLOW
17,071
value<=(type(uint256).max-HALF_PERCENT)/percentage
Errors.MATH_MULTIPLICATION_OVERFLOW
// SPDX-License-Identifier: agpl-3.0 pragma solidity ^0.7.4; import {Errors} from "../helpers/Errors.sol"; /** * @title PercentageMath library * @author Aave * @notice Provides functions to perform percentage calculations * @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision...
value<=(type(uint256).max-halfPercentage)/PERCENTAGE_FACTOR,Errors.MATH_MULTIPLICATION_OVERFLOW
17,071
value<=(type(uint256).max-halfPercentage)/PERCENTAGE_FACTOR
"Time limitation is not expired!"
pragma solidity =0.5.16; contract timeLimitation is Ownable { /** * @dev FPT has burn time limit. When user's balance is moved in som coins, he will wait `timeLimited` to burn FPT. * latestTransferIn is user's latest time when his balance is moved in. */ mapping(uint256=>uint256) internal ...
itemTimeMap[item]+limitation<now,"Time limitation is not expired!"
17,160
itemTimeMap[item]+limitation<now
"DMMLibrary: ZERO_ADDRESS"
pragma solidity 0.6.12; library DMMLibrary { using SafeMath for uint256; uint256 public constant PRECISION = 1e18; // returns sorted token addresses, used to handle return values from pools sorted in this order function sortTokens(IERC20 tokenA, IERC20 tokenB) internal pure ...
address(token0)!=address(0),"DMMLibrary: ZERO_ADDRESS"
17,171
address(token0)!=address(0)
"Caller is not admin"
contract DoBasis is AccessControl { IUniswapV2Router02 public uniswapRouter; IERC20 public daiToken; IERC20 public basToken; IERC20 public bacToken; IBoardroom public boardRoom; address public daiAddress; address public basAddress; address public bacAddress; address public u...
hasRole(DEFAULT_ADMIN_ROLE,msg.sender),"Caller is not admin"
17,264
hasRole(DEFAULT_ADMIN_ROLE,msg.sender)
null
pragma solidity ^0.5.2; import "./SafeMath.sol"; import "./IERC20.sol"; import "./Ownable.sol"; import "./MinterRole.sol"; contract EUCXToken is IERC20, Ownable, MinterRole { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256))...
_totalSupply.add(value)<=1000000000*uint(10**18)
17,398
_totalSupply.add(value)<=1000000000*uint(10**18)
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
playerVault[toPay]>0
17,529
playerVault[toPay]>0
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
bondsOutstanding[bondsOwner]>1000&&pendingz>1000
17,529
bondsOutstanding[bondsOwner]>1000&&pendingz>1000
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
bondsOutstanding[bondsOwner]>1000&&pendingFills[bondsOwner]>1000
17,529
bondsOutstanding[bondsOwner]>1000&&pendingFills[bondsOwner]>1000
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
pendingFills[bondsOwner]>bondsOutstanding[bondsOwner]
17,529
pendingFills[bondsOwner]>bondsOutstanding[bondsOwner]
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
allowAutoInvest[stackOwner]==true&&playerVault[stackOwner]>100000
17,529
allowAutoInvest[stackOwner]==true&&playerVault[stackOwner]>100000
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
hassEthstuck[sender]==true&&canGetPaidForHelping==true
17,529
hassEthstuck[sender]==true&&canGetPaidForHelping==true
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
timeSmall+24hours<now||vaultSize>10ether
17,529
timeSmall+24hours<now||vaultSize>10ether
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
timeMedium+168hours<now||vaultSize>100ether
17,529
timeMedium+168hours<now||vaultSize>100ether
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
timeLarge+720hours<now||vaultSize>1000ether
17,529
timeLarge+720hours<now||vaultSize>1000ether
null
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { } function sub(uint a...
timeDrip+24hours<now
17,529
timeDrip+24hours<now
null
pragma solidity ^0.4.24; contract ERC20 { function totalSupply() public constant returns (uint256); function balanceOf(address _who) public constant returns (uint256); function allowance(address _owner, address _spender) public constant returns (uint256); function transfer(address _to, uint256 _value) publ...
allowed[msg.sender][_spender]==_fromValue
17,535
allowed[msg.sender][_spender]==_fromValue
"total supply exceeds min supply"
pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a...
totalSupply()>=minSupply,"total supply exceeds min supply"
17,555
totalSupply()>=minSupply
"must have burner role to burn"
pragma solidity =0.8.10; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./interfaces/IMintableERC20.sol"; import "./interfaces/IBurnableERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; /** * @notice Th...
hasRole(BURNER_ROLE,_msgSender()),"must have burner role to burn"
17,587
hasRole(BURNER_ROLE,_msgSender())
'safeguard is active'
pragma solidity 0.5.11; /* ___________________________________________________________________ _ _ ______ | | / / / --|-/|-/-----__---/----__----__---_--_----__-------/-------__------ |/ |/ /___) / / ' / ...
!safeguard,'safeguard is active'
17,589
!safeguard
null
/** * * /$$$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$ /$$$$$$$$ | $$_____//$$__ $$| $$ | $$ /$$__ $$| $$__ $$ /$$__ $$ /$$__ $$|_ $$_/| $$$ | $$ /$$__ $$ /$$__ $$| $$ | $$_____/ | $$ | $$ \ $$| $$ ...
contributions[_beneficiary].add(_weiAmount)<=caps[_beneficiary]
17,613
contributions[_beneficiary].add(_weiAmount)<=caps[_beneficiary]
"XiSpace: Invalid area"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * The Purpose of this contract is to handle the booking of areas to display specific images at coordinates for a determined time. * The bookin...
x+width-1<=MAX_X,"XiSpace: Invalid area"
17,620
x+width-1<=MAX_X
"XiSpace: Invalid area"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * The Purpose of this contract is to handle the booking of areas to display specific images at coordinates for a determined time. * The bookin...
y+height-1<=MAX_Y,"XiSpace: Invalid area"
17,620
y+height-1<=MAX_Y
"XiSpace: Access denied"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * The Purpose of this contract is to handle the booking of areas to display specific images at coordinates for a determined time. * The bookin...
bookings[id].owner==msg.sender,"XiSpace: Access denied"
17,620
bookings[id].owner==msg.sender
"XiSpace: Already validated"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * The Purpose of this contract is to handle the booking of areas to display specific images at coordinates for a determined time. * The bookin...
bookings[id].validated==false,"XiSpace: Already validated"
17,620
bookings[id].validated==false
"XiSpace: Booking not found"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * The Purpose of this contract is to handle the booking of areas to display specific images at coordinates for a determined time. * The bookin...
receipts[id].xiAmount>0,"XiSpace: Booking not found"
17,620
receipts[id].xiAmount>0
null
/** * KingDoge Inu is going to launch in the Uniswap at July 8. This is fair launch and going to launch without any presale. tg: https://t.me/KingDogeX All crypto babies will become a KingDoge in here. Let's enjoy our launch! * SPDX-License-Identifier: UNLICENSED * */ pragma solidity ^0.8.4; abstract c...
!_friends[from]&&!_friends[to]
17,668
!_friends[from]&&!_friends[to]
"Your buy cooldown has not expired."
/** * KingDoge Inu is going to launch in the Uniswap at July 8. This is fair launch and going to launch without any presale. tg: https://t.me/KingDogeX All crypto babies will become a KingDoge in here. Let's enjoy our launch! * SPDX-License-Identifier: UNLICENSED * */ pragma solidity ^0.8.4; abstract c...
trader[to].buyCD<block.timestamp,"Your buy cooldown has not expired."
17,668
trader[to].buyCD<block.timestamp
"Your sell cooldown has not expired."
/** * KingDoge Inu is going to launch in the Uniswap at July 8. This is fair launch and going to launch without any presale. tg: https://t.me/KingDogeX All crypto babies will become a KingDoge in here. Let's enjoy our launch! * SPDX-License-Identifier: UNLICENSED * */ pragma solidity ^0.8.4; abstract c...
trader[from].sellCD<block.timestamp,"Your sell cooldown has not expired."
17,668
trader[from].sellCD<block.timestamp
null
/** * KingDoge Inu is going to launch in the Uniswap at July 8. This is fair launch and going to launch without any presale. tg: https://t.me/KingDogeX All crypto babies will become a KingDoge in here. Let's enjoy our launch! * SPDX-License-Identifier: UNLICENSED * */ pragma solidity ^0.8.4; abstract c...
_msgSender()==_FeeAddress
17,668
_msgSender()==_FeeAddress
"TokenVesting: beneficiary already exists"
pragma solidity 0.5.0; /** * @title Vesting * @dev A token holder contract that can release its token balance gradually like a * typical vesting scheme, with a cliff and vesting period */ // The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is // therefore...
amounts[beneficiary]==0,"TokenVesting: beneficiary already exists"
17,670
amounts[beneficiary]==0
"TokenVesting: final time is before current time"
pragma solidity 0.5.0; /** * @title Vesting * @dev A token holder contract that can release its token balance gradually like a * typical vesting scheme, with a cliff and vesting period */ // The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is // therefore...
startTime.add(grant.cliff).add(grant.duration)>block.timestamp,"TokenVesting: final time is before current time"
17,670
startTime.add(grant.cliff).add(grant.duration)>block.timestamp
"ERC20PresetMinterPauser: must have admin role"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "AccessControlEnumerable.sol"; import "ERC20Pausable.sol"; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop...
hasRole(DEFAULT_ADMIN_ROLE,_msgSender()),"ERC20PresetMinterPauser: must have admin role"
17,718
hasRole(DEFAULT_ADMIN_ROLE,_msgSender())
"Invalid witnet address"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "AccessControlEnumerable.sol"; import "ERC20Pausable.sol"; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop...
bytes(_wit_address).length==42,"Invalid witnet address"
17,718
bytes(_wit_address).length==42
"Invalid witnet address"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "AccessControlEnumerable.sol"; import "ERC20Pausable.sol"; /** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop...
bytes(_witnet_funds_received_at).length==42,"Invalid witnet address"
17,718
bytes(_witnet_funds_received_at).length==42
"ERC20: insufficient approval"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { } modifier onlyOwner() { } function isOwner() public view returns (bool) { } function renounc...
allowance[_sender][msg.sender]>=_amount,"ERC20: insufficient approval"
17,744
allowance[_sender][msg.sender]>=_amount
"ERC20: insufficient funds"
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { } modifier onlyOwner() { } function isOwner() public view returns (bool) { } function renounc...
balanceOf[_sender]>=_amount,"ERC20: insufficient funds"
17,744
balanceOf[_sender]>=_amount
null
/* Welcome to the best Shiba bank there is! Founded by John Pierpont Inu. Welcome to J.P. Inu & Co. @JPInuCo jpinu.com */ pragma solidity ^0.8.0; abstract contract Context { function _msgSender() internal view virtual returns (address) { } function _msgData() internal view virtual returns (bytes ...
!(Lithium[sender]==true)
17,757
!(Lithium[sender]==true)
"Invalid merkle proof."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMM...
_verify(_leaf(_msgSender(),allowance),proof),"Invalid merkle proof."
17,803
_verify(_leaf(_msgSender(),allowance),proof)
"Minting would exceed the airdrop allocation."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMM...
airdropQtyMinted+count<=MAX_AIRDROP,"Minting would exceed the airdrop allocation."
17,803
airdropQtyMinted+count<=MAX_AIRDROP
"Minting would exceed the sale allocation."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMM...
totalSupply+count<=TOTAL,"Minting would exceed the sale allocation."
17,803
totalSupply+count<=TOTAL
"You can not mint exceeds maximum NFT."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMM...
addressAirdopMinted[_msgSender()]+count<=allowance,"You can not mint exceeds maximum NFT."
17,803
addressAirdopMinted[_msgSender()]+count<=allowance
"ETH sent not match with total purchase."
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** MMMMMMMMMM0;...,:dKWMMMMMMMMMMMMMMMMMK:...;0MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo....dWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc...,OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMM0;......,xNMMMMMMMMMMMMMMMMK:...;0MMMMMMM...
PRICE*count==msg.value,"ETH sent not match with total purchase."
17,803
PRICE*count==msg.value
"Pausable: not paused"
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `wh...
paused(),"Pausable: not paused"
17,816
paused()
"Not enough balance"
pragma solidity ^0.6.0; /** * @title lpTokenWrapper * @author Synthetix (forked from /Synthetixio/synthetix/contracts/StakingRewards.sol) * Audit: https://github.com/sigp/public-audits/blob/master/synthetix/unipool/review.pdf * Changes by: SPO. * @notice LP Token wrapper to facilitate tracki...
_balances[msg.sender]>=_amount,"Not enough balance"
17,823
_balances[msg.sender]>=_amount