Skip to content

Teamo0/decentralized-Investement-Fund-dIF-

 
 

Repository files navigation

decentralized App

This dAPP is written in Javascript and Solidity that utilizes the (rinkeby) Ethereum network to deploy a decentralized Investment Fund.

We utilize hardhat, Metamask, the Alchemy API and the rinkeby test-network for development.

The main smart contract is the

dInvestmentFund.sol

file which uses an UniSwap interface ABI to exchange Ethers with ERC20 tokens and provide liquidity to the market. One full cycle of the dAPP does the following:

BuyIn -> buy Coins -> vote for market making -> show assets -> sell liquidity assets -> cash out and destroy!

How to use the Code

First deploy the contract and get its address and then run the demo to see its functionality!

npx hardhat run --network rinkeby scripts/deploy.js
npx hardhat run --network rinkeby scripts/demo.js

In order to deploy the contract you need to set the following environment variables in the .env file:

RINKEBY_URL=YOURRINKEBYURL
PRIVATE_KEY=YOURKEY

Furthermore, you need to add your wallet address in the deploy.js and after deployment add the contract address in demo.js to execute the functions of the contract.

Further ideas for improvement

  • Add frontend to connect wallet to deploy the contract
  • Display contract console output to frontend

Developed by K.H. Scheutwinkel and T. Neumann

About

Final Project of the Solidity Developer Bootcamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 66.8%
  • JavaScript 26.2%
  • SCSS 4.4%
  • HTML 2.6%