Skip to content

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

Notifications You must be signed in to change notification settings

itsnotsagar/Staking-Farm

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published