Skip to content

Commit

Permalink
fix: revert in get current price function
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagalidoom committed Jan 26, 2024
1 parent 77e7369 commit 149b85f
Show file tree
Hide file tree
Showing 8 changed files with 2,418 additions and 4,201 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Number Runner Club

## Overview
"Number Runner Club" is a unique project that combines the strategic depth of chess with Ethereum Name Service (ENS) domains. It features a specialized NFT collection that utilizes ENS addresses in a novel way.

## Features
Price Checking and Domain Management: Users can easily check the prices and expiration dates of domains.
Reward System: A mechanism for claiming rewards based on certain criteria.
NFT Marketplace Interaction: Allows users to purchase unique NFTs associated with ENS domains.
Chess Integration: The project integrates chess elements into the NFTs, enhancing the strategic and collectible aspects.

## Libraries & Dependencies
* ABDKMath64x64.sol: For precision mathematical operations.
* ENS.sol: Integrates Ethereum Name Service functionalities.
* ERC721URIStorage.sol: Enhances ERC721 standard for efficient token URI storage.
* OpenZeppelin Contracts: For secure, standard smart contract implementations.
* Chainlink: For reliable external data feeds.

## User Interactions
Minting: Users can mint NFTs representing various chess pieces.
Marketplace Activities: Includes buying, selling, and trading NFTs.
Rewards Management: Claiming and managing rewards based on user activities and NFT ownership.
388 changes: 155 additions & 233 deletions contracts/NumberRunnerClub.sol

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contracts/NumberRunnerClubGoerli.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity ^0.8.18;

import "@ensdomains/ens-contracts/contracts/ethregistrar/BaseRegistrarImplementation.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@chainlink/contracts/src/v0.8/VRFV2WrapperConsumerBase.sol";
import "@chainlink/contracts/src/v0.8/vrf/VRFV2WrapperConsumerBase.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "abdk-libraries-solidity/ABDKMath64x64.sol";
Expand Down Expand Up @@ -364,7 +364,7 @@ contract NumberRunnerClubGoerli is ERC721URIStorage, ReentrancyGuard {
killFee = 0;
}
} else {
// require(block.timestamp >= _unstakeTimestamps[tokensId[i]] + ONE_WEEK, "Cannot burn: One week waiting period is not over");
require(block.timestamp >= _unstakeTimestamps[tokensId[i]] + ONE_WEEK, "Cannot burn: One week waiting period is not over");
if (isForSale(tokensId[i])) {
killFee = 100000000000000000 + (rewards * 10) / 100;
} else {
Expand Down
4 changes: 2 additions & 2 deletions migrations/1_deploy_contracts.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const NumberRunnerClubGoerli = artifacts.require("NumberRunnerClubGoerli");
const NumberRunnerClub = artifacts.require("NumberRunnerClub");
// const test = artifacts.require("ExponentialFunction");

module.exports = function (deployer) {
deployer.deploy(NumberRunnerClubGoerli);
deployer.deploy(NumberRunnerClub);
// deployer.deploy(test);
};
Loading

0 comments on commit 149b85f

Please sign in to comment.