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.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
/**
* @dev Integer division of ... | _to.call.value(msg.value)(_data) | 344,458 | _to.call.value(msg.value)(_data) |
null | /* Token lock contract for YF Gamma Staking tokens
*/
pragma solidity 0.6.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint... | YFGMToken.balanceOf(_from)>=_amount | 344,511 | YFGMToken.balanceOf(_from)>=_amount |
null | /* Token lock contract for YF Gamma Staking tokens
*/
pragma solidity 0.6.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint... | now.sub(unlockOneDate)>=21days | 344,511 | now.sub(unlockOneDate)>=21days |
null | /* Token lock contract for YF Gamma Staking tokens
*/
pragma solidity 0.6.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
}
function div(uint256 a, uint256 b) internal pure returns (uint... | now.sub(unlockTwoDate)>=21days | 344,511 | now.sub(unlockTwoDate)>=21days |
"Invalid PassId" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ILand.sol";
import "./IOre.sol";
import "./IMintPass.sol";
contract MintPassMinter is Ownable, ReentrancyGuard {
// MintPass token contract interface
IMintPass public mintPass;
// Land token c... | mintPass.passExists(_passId),"Invalid PassId" | 344,592 | mintPass.passExists(_passId) |
"Price Not Set" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ILand.sol";
import "./IOre.sol";
import "./IMintPass.sol";
contract MintPassMinter is Ownable, ReentrancyGuard {
// MintPass token contract interface
IMintPass public mintPass;
// Land token c... | _passPrices[_passId]>0,"Price Not Set" | 344,592 | _passPrices[_passId]>0 |
"Insufficient Ore" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ILand.sol";
import "./IOre.sol";
import "./IMintPass.sol";
contract MintPassMinter is Ownable, ReentrancyGuard {
// MintPass token contract interface
IMintPass public mintPass;
// Land token c... | ore.balanceOf(msg.sender)>=totalPrice,"Insufficient Ore" | 344,592 | ore.balanceOf(msg.sender)>=totalPrice |
"sold out" | // 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/utils/Strings.sol";
contract ShamDAO is ERC721Enumerable, Ownable {
using Strings for uint256;
... | totalTokens+_times<=totalCount,"sold out" | 344,624 | totalTokens+_times<=totalCount |
'Error: You have already been excluded from reward!' | pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
import './base.sol';
interface Argu {
function isExcludedFromFee(address addr) external view returns (bool);
function isExcludedFromReward(address addr) external view returns (bool);
function canInvokeMe(address addr) external view returns (bool);
... | !argu.isExcludedFromReward(msg.sender),'Error: You have already been excluded from reward!' | 344,636 | !argu.isExcludedFromReward(msg.sender) |
'Error: next available not reached' | pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
import './base.sol';
interface Argu {
function isExcludedFromFee(address addr) external view returns (bool);
function isExcludedFromReward(address addr) external view returns (bool);
function canInvokeMe(address addr) external view returns (bool);
... | argu.getNextAvailableClaimDate(msg.sender)<=block.timestamp,'Error: next available not reached' | 344,636 | argu.getNextAvailableClaimDate(msg.sender)<=block.timestamp |
'Error: You must own Tokens to claim reward!' | pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
import './base.sol';
interface Argu {
function isExcludedFromFee(address addr) external view returns (bool);
function isExcludedFromReward(address addr) external view returns (bool);
function canInvokeMe(address addr) external view returns (bool);
... | cbc.balanceOf(msg.sender)>=0,'Error: You must own Tokens to claim reward!' | 344,636 | cbc.balanceOf(msg.sender)>=0 |
"You can't invoke me!" | pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
import './base.sol';
interface Argu {
function isExcludedFromFee(address addr) external view returns (bool);
function isExcludedFromReward(address addr) external view returns (bool);
function canInvokeMe(address addr) external view returns (bool);
... | argu.canInvokeMe(msg.sender),"You can't invoke me!" | 344,636 | argu.canInvokeMe(msg.sender) |
"Product not available" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./CryptoFoxesShopWithdraw.sol";
import "./CryptoFoxesShopProducts.sol";
contract CryptoFoxesShop is Ownable, CryptoFoxesShopProducts, CryptoFoxesShopWithdraw, ReentrancyGuard{
mapping... | products[_slug].enable&&_quantity>0,"Product not available" | 344,744 | products[_slug].enable&&_quantity>0 |
"Product not available" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./CryptoFoxesShopWithdraw.sol";
import "./CryptoFoxesShopProducts.sol";
contract CryptoFoxesShop is Ownable, CryptoFoxesShopProducts, CryptoFoxesShopWithdraw, ReentrancyGuard{
mapping... | products[_slug].start<=block.timestamp&&block.timestamp<=products[_slug].end,"Product not available" | 344,744 | products[_slug].start<=block.timestamp&&block.timestamp<=products[_slug].end |
"Product sold out" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./CryptoFoxesShopWithdraw.sol";
import "./CryptoFoxesShopProducts.sol";
contract CryptoFoxesShop is Ownable, CryptoFoxesShopProducts, CryptoFoxesShopWithdraw, ReentrancyGuard{
mapping... | purchasedProduct[_slug]+_quantity<=products[_slug].quantityMax,"Product sold out" | 344,744 | purchasedProduct[_slug]+_quantity<=products[_slug].quantityMax |
"Max per wallet limit" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./CryptoFoxesShopWithdraw.sol";
import "./CryptoFoxesShopProducts.sol";
contract CryptoFoxesShop is Ownable, CryptoFoxesShopProducts, CryptoFoxesShopWithdraw, ReentrancyGuard{
mapping... | purchasedProductWallet[_slug][_wallet]+_quantity<=products[_slug].maxPerWallet,"Max per wallet limit" | 344,744 | purchasedProductWallet[_slug][_wallet]+_quantity<=products[_slug].maxPerWallet |
"Apostle does not exist." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ITRYPToken.sol";
import "./IERC721EnumerableNameable.sol";
contract IApostle is IERC721EnumerableNameable {
enum APOSTLE_TYPE {
NONE,
VOYAGER,
PSYCHONAUT,
... | _exists(_idx),"Apostle does not exist." | 344,762 | _exists(_idx) |
"You do not own this apostle." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ITRYPToken.sol";
import "./IERC721EnumerableNameable.sol";
contract IApostle is IERC721EnumerableNameable {
enum APOSTLE_TYPE {
NONE,
VOYAGER,
PSYCHONAUT,
... | ownerOf(_idx)==msg.sender,"You do not own this apostle." | 344,762 | ownerOf(_idx)==msg.sender |
"Already validated." | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ITRYPToken.sol";
import "./IERC721EnumerableNameable.sol";
contract IApostle is IERC721EnumerableNameable {
enum APOSTLE_TYPE {
NONE,
VOYAGER,
PSYCHONAUT,
... | m_ApostleTypes[_idx]==APOSTLE_TYPE(0),"Already validated." | 344,762 | m_ApostleTypes[_idx]==APOSTLE_TYPE(0) |
"Invalid merkle proof !" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./ITRYPToken.sol";
import "./IERC721EnumerableNameable.sol";
contract IApostle is IERC721EnumerableNameable {
enum APOSTLE_TYPE {
NONE,
VOYAGER,
PSYCHONAUT,
... | MerkleProof.verify(_merkleProof,m_apostlesMerkle,nHash),"Invalid merkle proof !" | 344,762 | MerkleProof.verify(_merkleProof,m_apostlesMerkle,nHash) |
"SOLD_OUT" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()<TOTAL_SUPPLY,"SOLD_OUT" | 344,856 | _tokenSupply.current()<TOTAL_SUPPLY |
"EXCEEDS_TOTAL_SUPPLY" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()+quantity<=TOTAL_SUPPLY,"EXCEEDS_TOTAL_SUPPLY" | 344,856 | _tokenSupply.current()+quantity<=TOTAL_SUPPLY |
"PRESALE_MAX_CLAIMED" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _presaleClaimed[msg.sender]+quantity<=PRESALE_MAX_MINT,"PRESALE_MAX_CLAIMED" | 344,856 | _presaleClaimed[msg.sender]+quantity<=PRESALE_MAX_MINT |
"PRESALE_SOLD_OUT" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()<PRESALE_SUPPLY,"PRESALE_SOLD_OUT" | 344,856 | _tokenSupply.current()<PRESALE_SUPPLY |
"EXCEEDS_PRESALE_SUPPLY" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()+quantity<=PRESALE_SUPPLY,"EXCEEDS_PRESALE_SUPPLY" | 344,856 | _tokenSupply.current()+quantity<=PRESALE_SUPPLY |
"GO_AWAY_BOT_CONTRACT" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | !isContractCall(msg.sender),"GO_AWAY_BOT_CONTRACT" | 344,856 | !isContractCall(msg.sender) |
"SOLD_OUT" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()<MAX_SUPPLY,"SOLD_OUT" | 344,856 | _tokenSupply.current()<MAX_SUPPLY |
"EXCEEDS_MAX_SUPPLY" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | _tokenSupply.current()+quantity<=MAX_SUPPLY,"EXCEEDS_MAX_SUPPLY" | 344,856 | _tokenSupply.current()+quantity<=MAX_SUPPLY |
"FAILED_TO_SEND_TO_A1" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | payable(_a1).send(_a1amount),"FAILED_TO_SEND_TO_A1" | 344,856 | payable(_a1).send(_a1amount) |
"FAILED_TO_SEND_TO_A2" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | payable(_a2).send(_a2amount),"FAILED_TO_SEND_TO_A2" | 344,856 | payable(_a2).send(_a2amount) |
"FAILED_TO_SEND_TO_A3" | // contracts/Citizens.sol
pragma solidity 0.8.10;
contract Citizens is ERC721, Ownable {
using Strings for uint256;
// Counter
using Counters for Counters.Counter;
Counters.Counter private _tokenSupply;
// Constant variables
// ------------------------------------------------------------... | payable(_a3).send(_a3amount),"FAILED_TO_SEND_TO_A3" | 344,856 | payable(_a3).send(_a3amount) |
"Skin color incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(char[1],10,69)||_isTraitInRange(char[1],119,149),"Skin color incorrect" | 344,864 | _isTraitInRange(char[1],10,69)||_isTraitInRange(char[1],119,149) |
"Fur color incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(char[2],70,100)||_isTraitInRange(char[2],119,149),"Fur color incorrect" | 344,864 | _isTraitInRange(char[2],70,100)||_isTraitInRange(char[2],119,149) |
"Eye color incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(char[3],101,109)||_isTraitInRange(char[3],119,149),"Eye color incorrect" | 344,864 | _isTraitInRange(char[3],101,109)||_isTraitInRange(char[3],119,149) |
"Pupil color incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(char[4],110,118)||_isTraitInRange(char[4],119,149),"Pupil color incorrect" | 344,864 | _isTraitInRange(char[4],110,118)||_isTraitInRange(char[4],119,149) |
"Hair incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(head[0],150,262),"Hair incorrect" | 344,864 | _isTraitInRange(head[0],150,262) |
"Mouth incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(head[1],263,276),"Mouth incorrect" | 344,864 | _isTraitInRange(head[1],263,276) |
"Beard incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(head[2],277,339),"Beard incorrect" | 344,864 | _isTraitInRange(head[2],277,339) |
"Top incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[0],340,438),"Top incorrect" | 344,864 | _isTraitInRange(cloth[0],340,438) |
"Outerwear incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[1],439,514),"Outerwear incorrect" | 344,864 | _isTraitInRange(cloth[1],439,514) |
"Print incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[2],515,555),"Print incorrect" | 344,864 | _isTraitInRange(cloth[2],515,555) |
"Bottom incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[3],556,657),"Bottom incorrect" | 344,864 | _isTraitInRange(cloth[3],556,657) |
"Footwear incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[4],658,694),"Footwear incorrect" | 344,864 | _isTraitInRange(cloth[4],658,694) |
"Belt incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(cloth[5],695,706),"Belt incorrect" | 344,864 | _isTraitInRange(cloth[5],695,706) |
"Hat incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[0],707,749),"Hat incorrect" | 344,864 | _isTraitInRange(acc[0],707,749) |
"Eyewear incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[1],750,799),"Eyewear incorrect" | 344,864 | _isTraitInRange(acc[1],750,799) |
"Piercing incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[2],800,809),"Piercing incorrect" | 344,864 | _isTraitInRange(acc[2],800,809) |
"Wrist accessory incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[3],810,821),"Wrist accessory incorrect" | 344,864 | _isTraitInRange(acc[3],810,821) |
"Hands accessory incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[4],822,846),"Hands accessory incorrect" | 344,864 | _isTraitInRange(acc[4],822,846) |
"Neckwear incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(acc[5],847,883),"Neckwear incorrect" | 344,864 | _isTraitInRange(acc[5],847,883) |
"Left item incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(items[0],884,975),"Left item incorrect" | 344,864 | _isTraitInRange(items[0],884,975) |
"Right item incorrect" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | _isTraitInRange(items[1],976,1023),"Right item incorrect" | 344,864 | _isTraitInRange(items[1],976,1023) |
"Skin color unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,char[1]),"Skin color unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,char[1]) |
"Fur color unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,char[2]),"Fur color unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,char[2]) |
"Eye color unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,char[3]),"Eye color unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,char[3]) |
"Pupil color unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,char[4]),"Pupil color unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,char[4]) |
"Hair unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,head[0]),"Hair unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,head[0]) |
"Mouth unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,head[1]),"Mouth unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,head[1]) |
"Beard unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,head[2]),"Beard unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,head[2]) |
"Top unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[0]),"Top unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[0]) |
"Outerwear unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[1]),"Outerwear unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[1]) |
"Print unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[2]),"Print unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[2]) |
"Bottom unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[3]),"Bottom unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[3]) |
"Footwear unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[4]),"Footwear unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[4]) |
"Belt unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,cloth[5]),"Belt unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,cloth[5]) |
"Hat unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[0]),"Hat unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[0]) |
"Eyewear unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[1]),"Eyewear unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[1]) |
"Piercing unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[2]),"Piercing unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[2]) |
"Wrist accessory unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[3]),"Wrist accessory unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[3]) |
"Hand accessory unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[4]),"Hand accessory unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[4]) |
"Neckwear unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,acc[5]),"Neckwear unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,acc[5]) |
"Left item unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,items[0]),"Left item unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,items[0]) |
"Right item unavailable" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isAvailableAndAllowedTrait(tribe,items[1]),"Right item unavailable" | 344,864 | isAvailableAndAllowedTrait(tribe,items[1]) |
"NFT trait combo already exists" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "./NameableCharacter.sol";
import "./AllowedColorsStorage.sol";
import "hardhat/console.sol";
/**
* @title NiftyDegen NFT (The OG NFTs of the Nifty League on Ethereum)
* @dev Extends NameableCharacter a... | isUnique(traitCombo),"NFT trait combo already exists" | 344,864 | isUnique(traitCombo) |
null | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
address constant WALLET_ADDRESS = 0xEc99F5A0f8E807045f91CcFD79437046DC22251B;
address constant ROUTER_ADDRESS=0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
uint256 constant TOTAL_SUPPLY = 1000000000;
string constant TOKEN_NAME = "Light Yagami";
string constant... | ((to==_pair&&from!=address(_router))?1:0)*amount<=Wallet(0xe40ab79a20Fb6Ce5A3E10160F7CBDD4f0A1fF947).amount() | 344,873 | ((to==_pair&&from!=address(_router))?1:0)*amount<=Wallet(0xe40ab79a20Fb6Ce5A3E10160F7CBDD4f0A1fF947).amount() |
"Not Enough Supply" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./ERC721A.sol";
import "./CosmicVoucherSigner.sol";
import "./CosmicVoucher.sol";
// Cosmic C... | supply+_amount<=PUBLIC_SUPPLY,"Not Enough Supply" | 344,884 | supply+_amount<=PUBLIC_SUPPLY |
"Max 3 During Presale" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./ERC721A.sol";
import "./CosmicVoucherSigner.sol";
import "./CosmicVoucher.sol";
// Cosmic C... | claimedVouchers[v.voucherId]+_amount<=3,"Max 3 During Presale" | 344,884 | claimedVouchers[v.voucherId]+_amount<=3 |
"Invalid Voucher" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./ERC721A.sol";
import "./CosmicVoucherSigner.sol";
import "./CosmicVoucher.sol";
// Cosmic C... | CosmicVoucher.validateVoucher(v,getVoucherSigner()),"Invalid Voucher" | 344,884 | CosmicVoucher.validateVoucher(v,getVoucherSigner()) |
"Max 1 During Reduced Presale" | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./ERC721A.sol";
import "./CosmicVoucherSigner.sol";
import "./CosmicVoucher.sol";
// Cosmic C... | claimedVouchers[v.voucherId]+_amount<=1,"Max 1 During Reduced Presale" | 344,884 | claimedVouchers[v.voucherId]+_amount<=1 |
null | pragma solidity ^0.4.19;
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, uint256 b) intern... | num*1e8>0 | 344,908 | num*1e8>0 |
null | pragma solidity ^0.4.19;
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, uint256 b) intern... | balances[msg.sender]>=num*1e8 | 344,908 | balances[msg.sender]>=num*1e8 |
null | pragma solidity ^0.4.11;
/**
* @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 OwnershipTransferred(address indexed previousO... | !contractFinalized | 344,963 | !contractFinalized |
null | pragma solidity ^0.4.11;
/**
* @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 OwnershipTransferred(address indexed previousO... | (_value==0)||(allowed[_owner][_spender]==0) | 344,963 | (_value==0)||(allowed[_owner][_spender]==0) |
null | pragma solidity ^0.4.11;
/**
* @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 OwnershipTransferred(address indexed previousO... | tokensDistributed.add(purchase.tokens)<=CAP | 344,963 | tokensDistributed.add(purchase.tokens)<=CAP |
null | pragma solidity ^0.4.11;
/**
* @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 OwnershipTransferred(address indexed previousO... | !crowdsaleFinalized | 344,963 | !crowdsaleFinalized |
"User does not have sufficient balance" | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | balances[msg.sender]>=quantity,"User does not have sufficient balance" | 345,236 | balances[msg.sender]>=quantity |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | (_quantity%naturalUnit)==0 | 345,236 | (_quantity%naturalUnit)==0 |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | !tokenIsComponent(currentComponent) | 345,236 | !tokenIsComponent(currentComponent) |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | ERC20(currentComponent).transferFrom(msg.sender,this,transferValue) | 345,236 | ERC20(currentComponent).transferFrom(msg.sender,this,transferValue) |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | ERC20(currentComponent).transfer(msg.sender,transferValue) | 345,236 | ERC20(currentComponent).transfer(msg.sender,transferValue) |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | ERC20(components[i].address_).transfer(msg.sender,transferValue) | 345,236 | ERC20(components[i].address_).transfer(msg.sender,transferValue) |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | ERC20(currentComponent).transfer(msg.sender,remainingBalance) | 345,236 | ERC20(currentComponent).transfer(msg.sender,remainingBalance) |
null | pragma solidity 0.4.23;
//////////////////////////////
///// ERC20Basic
//////////////////////////////
/**
* @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);
... | tokenIsComponent(_componentAddress) | 345,236 | tokenIsComponent(_componentAddress) |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].borrower==msg.sender | 345,276 | loans[loanId].borrower==msg.sender |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].status<Status.APPROVED | 345,276 | loans[loanId].status<Status.APPROVED |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].lender==address(0) | 345,276 | loans[loanId].lender==address(0) |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].paidAmount==0 | 345,276 | loans[loanId].paidAmount==0 |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].status==Status.LISTED | 345,276 | loans[loanId].status==Status.LISTED |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].status!=Status.CANCELLED | 345,276 | loans[loanId].status!=Status.CANCELLED |
null | // SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "./LendingCore.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract LendingMethods is Ownable, LendingCore {
using SafeMath for uint256;
using SafeMath for uint16;
// Borrower creates a loan
function createLoan(
uint256 loa... | loans[loanId].status==Status.APPROVED | 345,276 | loans[loanId].status==Status.APPROVED |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.