Quantum Hedge Fund is an on-chain hedge fund powered by Chainlink that implements advanced fund management strategies by using a quantum algorithm for portfolio diversification. This project features smart contracts for managing a cryptocurrency vault, integrating Chainlink oracles for accurate pricing and Quickswap for token exchanges.
- Token Management: Support for a diverse range of cryptocurrencies, enabling dynamic adjustments to the portfolio.
- Vault Shares: Tokenization of shares in the vault using
VaultShareToken. - Deposits and Withdrawals: Robust mechanisms for depositing and withdrawing funds.
- Automated Rebalancing: Portfolio rebalancing executed based on strategies defined in the
FundManagercontract. - Chainlink and Uniswap Integration: Ensures reliable price feeds and efficient liquidity management.
- Quantum portfolio diversification: unique and advanced fund strategy based on a quantum algorithm
- Datafeed: calculating the total value of the pool
- Functions: retrieving allocations from the quantum oracle
- Automation: initiating rebalancing of assets
- Vault Contract: Manages core functions such as deposits, withdrawals, and rebalancing.
- FundManager Contract: Oversees token weights and handles oracle requests for portfolio management.
- VaultShareToken Contract: ERC20 token representing a stake in the vault.
- Send asset prices to the API and choose algorithm to run (quantum or quantum-inspired)
- Runs quantum algorithm with asset prices
- Sends optimal selection of assets from quantum algorithm
- Draws diagram of quantum program and plots optimisation
- Deployed at URL
- User can deposit funds
- User can withdraw funds
- Visual representation of the asset allocations
- Chainlink Functions: Fetching the asset prices and sending them to the quantum oracle and receiving the results
- Chainlink Datafeed: Fetching the prices of each asset real-time on the smart contract
- Chainlink Automation: Rebalancing the allocation of the assets every day
- Polygon: deployed on Polygon mainnet
- Quickswap: Exchange for rebalancing the assets
- Qiskit: Quantum computing software development kit for running the quantum algorithm
The algorithm is based on the Qiskit Portfolio Diversification algorithm: https://qiskit.org/ecosystem/finance/tutorials/02_portfolio_diversification.html
We modified the algorithm to fit the needs of our quantum hedge fund.
- Github: https://github.com/Quantum-Hedge-Funds
- App: https://quantum-hedge-fund-app.vercel.app/
- API: https://api-production-5752.up.railway.app/docs
- Video demo: https://youtu.be/6QXWxM5b-Pg
- Presentation: https://bit.ly/quantum-fund-presentation
- Architecture Diagram: https://bit.ly/quantum-fund-diagram
Engaging with Quantum Hedge Fund requires familiarity with Solidity, Ethereum blockchain, and smart contract development.
- Node.js and npm
- Hardhat
-
Clone the repository:
git clone https://github.com/Quantum-Hedge-Funds/smart-contracts.git
-
Install the required packages:
npm install
-
Compile the smart contracts with Hardhat:
npx hardhat compile
-
Deploy the contracts:
npx hardhat run scripts/deploy.ts --network polygonMainnet
Run the test suite to ensure everything functions as expected:
npx hardhat testInteract with the Quantum Hedge Fund contracts through the Hardhat console or by integrating them into a frontend application using Web3.js or Ethers.js.
This project is in the developmental phase. Thoroughly review the code before deploying it in production environments.
This project is licensed under the MIT License.
You can contact as at [email protected], [email protected]




