V00D00-child / token_farm

Decentralized Digital Bank that lets you earn interest from depositing cryptocurrency. Powered by Ethereum smart contracts.

Home Page:https://idrisbowman.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Token Farm (STAKE, UNSTAKE, EARN INTEREST!!:gem: :gem:)

Decentralized finance Blockchain app. This Digital Bank lets you earn intrest from depositing cryptocurrency.

token farm

Smart Contracts

DaiToken - Mock okens that investors can depoit into bank to earn intrest. DappToken - Mock token that is paid out to investor by the bank as intrest for staking Mock Dai tokens. TokenFarm - This Digital Bank that allow investors to staking Mock Dai token, and in return for pay staked investors Mock Dapp Token

Tech stack

Testing smart contracts

"npm run block:test"

Set up to run locally

  1. npm install
  2. Install Ganache and start it up locally(this is our local blockchain network)
  3. Connect MetaMask to local blockchain network and import private key of 2nd address in Ganache(note: the 1st address is used by Token Farm, 2nd address used by investor)
  4. Run smart contract deployment script "npm run block:deploy" (note: whenever a change is made to smart contract make sure to compile by running "npm run block:compile")
  5. Start React app "npm run start"
  6. Go to localhost:3000/ in the browser
  7. Stake, unstake and earn interest!!

On init deployment

After smart contracts are deployed to Blockchain, we transferr 1 million Dapp tokens to the Token Farm(Digital Bank) and also transefer 100 Dai tokens to the investors wallet.

Features

ThisDecentralized finance Blockchain app allows investors to:

  • Stake Dia tokens
  • Unstake Dia tokens
  • Earn intrests from Token Farm in the form of Dapp tokens

Stake token

Investor can choose how many Dai token that want to stake with the Token Farm(Digital Bank)

Earn interest for staking tokens(TokenFarm will only issue tokens to investors that are staking)

Once smart contract have been deployed to blockchain and React app is running locally run issue token script "npm run block:issue-token".

Unstake tokens

  1. Unstake total amount:
  2. Unstake partial ammount:

About

Decentralized Digital Bank that lets you earn interest from depositing cryptocurrency. Powered by Ethereum smart contracts.

https://idrisbowman.com


Languages

Language:JavaScript 78.1%Language:Solidity 17.8%Language:HTML 4.0%Language:CSS 0.1%