Welcome to the official repository of Crypto Knights, a decentralized platform designed to revolutionize cryptocurrency investments. This repository contains the codebase for both the Next.js frontend application and the smart contracts that power the decentralized index funds.
Crypto Knights is a platform that allows users to invest in decentralized index funds managed by smart contracts. The platform automatically rebalances your portfolio based on real-time market conditions, ensuring transparency and eliminating the need for constant monitoring. Our goal is to simplify crypto investments while maintaining full transparency and trustworthiness.
- Automated Portfolio Management: Smart contracts rebalance your portfolio based on predefined heuristics, eliminating the need for manual intervention.
- Decentralized Index Funds: Invest in index funds that are completely managed by smart contracts on the blockchain.
- Transparency: Full visibility into how your investments are managed, with the assurance that smart contracts will always follow the rules.
- Secure and Trustworthy: Built on blockchain technology, ensuring security and immutability of your investments.
- User-Friendly Interface: A sleek and intuitive frontend built with Next.js, making it easy for users to interact with the platform.
- Frontend: Next.js - A React framework for server-rendered applications.
- Smart Contracts: Written in Solidity, deployed on the Ethereum blockchain.
- Blockchain: Ethereum for decentralized execution of smart contracts.
- Testing: Jest, Mocha, and Hardhat for contract testing.
- Styling: Tailwind CSS for frontend styling.
To run the frontend application locally, follow these steps:
- Clone the repository:
git clone https://github.com/arkanoeth/CKweb3summit
cd web/
- Install dependencies:
pnpm install
- Create a
.env
file:
- Create a
.env
file in the root directory. - Add environment variables (e.g., API keys, blockchain node URLs) required by the application. Dummy ones are present in
.env.example
.
- Run the development server:
pnpm run dev
The application will be available at http://localhost:3000
.
To work with the smart contracts:
- Install foundry:
curl -L https://foundry.paradigm.xyz | bash
- Compile forge build:
forge build
- Deploy and populate:
forge script script/deploy.s.sol --fork-url https://arbitrum-mainnet.infura.io/v3/yourkey
-
Start the Frontend Application:
- After following the installation steps, the frontend will be running on
http://localhost:3000
.
- After following the installation steps, the frontend will be running on
-
Interact with the Smart Contracts:
- Once deployed, the frontend will automatically interact with the deployed smart contracts on the specified network.
-
Investing:
- Use the interface to select decentralized index funds, view portfolio performance, and track how the funds are managed by the smart contracts.
The smart contracts in Crypto Knights are designed to manage decentralized index funds:
- Rebalancing Logic: Contracts automatically rebalance portfolios based on the performance of tokens against Bitcoin, following predefined heuristics.
- Transparency: All rebalancing decisions and logic are visible on-chain, allowing users to verify the actions taken by the contract.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for using Crypto Knights! We’re excited to help you navigate the world of cryptocurrency investments with ease and transparency.