Coder Social home page Coder Social logo

itsnotsagar / staking-farm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.39 MB

Staking offers crypto holders a way of putting their digital assets to work and earning passive income without needing to sell them

Shell 0.50% Solidity 41.31% HTML 1.86% TypeScript 31.32% CSS 0.86% JavaScript 5.74% Python 18.42%
blockchain ethereum reactjs smart-contracts staking

staking-farm's Introduction

Note: This section is archived as Kovan, Rinkeby and Ropsten test networks are now deprecated. You can try this with other test networks like Goerli and Sepolia.

Introduction

Staking offers crypto holders a way of putting their digital assets to work and earning passive income without needing to sell them.

You can think of staking as the crypto equivalent of putting money in a high-yield savings account. When you deposit funds in a savings account, the bank takes that money and typically lends it out to others. In return for locking up that money with the bank, you receive a portion of the interest earned from lending โ€“ albeit a very low portion. Similarly, when you stake your digital assets, you lock up the coins in order to participate in running the blockchain and maintaining its security. In exchange for that, you earn rewards calculated in percentage yields. These returns are typically much higher than any interest rate offered by banks. Staking has become a popular way to make a profit in crypto without trading coins. As of April 2022, the total value of cryptocurrencies staked exceeded the $280 billion threshold, according to Staking Rewards.

Staking is only possible via the proof-of-stake consensus mechanism, which is a specific method used by certain blockchains to select honest participants and verify new blocks of data being added to the network.

Our decentralised application allows users to stake their token for rewards by connecting their meta mask account. The portal would allow the user to stake 3 tokens - WETH , FAU and DAPP. The DAPP token would be a reward token given to the users as an incentive for staking on our platform. Our portal also allows the users to unstake their tokens. Staking is useful because it is the simplest way to deploy your idle crypto holdings and establish a passive income. Most importantly โ€“ staking is much more eco-friendly than mining.

Prerequisite

Install the below programs in your machine before running the commands given in Steps.

  1. brownie
  2. truffle - use the test accounts given here to log in to meta mask account or you can use your own if you have balance.
  3. node
  4. ganache-cli
  5. yarn
  6. python

Steps

  1. Clone the repo.
git clone https://github.com/itsnotsagar/staking_reward.git
  1. Open the repo in VS-Code.
  2. Edit the .env and .env.example file by pasting in your own APIs and private keys.
  3. Install the required dependencies and modules.
yarn install
  1. Deploy the smart contracts on the kovan test network.
brownie run scripts/deploy.py --network kovan
  1. Change directory to front_end folder and run the following to start the website in localhost.
cd front_end
yarn
yarn start
  1. To issue staking reward run the issue_token.py script in the /scripts directory.

Screenshots

Screenshot 2023-02-12 at 12 03 43 PM Screenshot 2023-02-12 at 12 04 08 PM


Screenshot 2023-02-12 at 12 04 40 PM Screenshot 2023-02-12 at 12 05 06 PM Screenshot 2023-02-12 at 12 05 21 PM Screenshot 2023-02-12 at 12 05 40 PM Screenshot 2023-02-12 at 12 05 53 PM Screenshot 2023-02-12 at 12 06 06 PM Screenshot 2023-02-12 at 12 06 25 PM Screenshot 2023-02-12 at 12 06 34 PM Screenshot 2023-02-12 at 12 06 48 PM Screenshot 2023-02-12 at 12 07 01 PM Screenshot 2023-02-12 at 12 07 16 PM Screenshot 2023-02-12 at 12 07 29 PM Screenshot 2023-02-12 at 12 07 42 PM Screenshot 2023-02-12 at 12 07 56 PM Screenshot 2023-02-12 at 12 08 10 PM Screenshot 2023-02-12 at 12 08 23 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.