Skip to content

A web dapp that provides Panda token rewards for users who stakes in Uniswap liquidity pools.

License

Notifications You must be signed in to change notification settings

bzpassersby/pandaa-swap

Repository files navigation


Logo

Panda Swap

Panda swap provides Panda token rewards for users who stakes in Uniswap liquidity pools. For users to gain Panda rewards, they simply need to stake their LP tokens which prove their share in the liquidity pool.

Note that the current scope of this repo is limited to the back end implementation of the supply and distribution of Panda tokens.

The front end of this project reference SushiSwap and demos the process of LP token staking, Panda rewards distribution and withdrawal.


View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact

About The Project

Product Name Screen Shot

Built With

  • Solidity
  • Javascript
  • React Js
  • Ether Js
  • Hardhat

(back to top)

Getting Started

Below is a list of prerequisite:

  • Install NodeJS, Recommended version is 16.14.2
  • Install MetaMask in your browser.

Installation

1. Clone/Download the Repository

2. Install Dependencies:

$ npm install

3. Setup .env File

Create a .env file and update the following values. Note LP_TOKEN_ADDRESS is the Uniswap LP Token address for DAI/ETH pool on Goerli testnet. ALLOCATION_POINT is the weight of a DAI/ETH pool of all liquidity pools. TOKENS_PER_BLOCK is the amount of Panda tokens minted per block in ether. START_BLOCK and BONUS_END_BLOCK determines the start block number of Panda token minting and the end block of bonus reward period, which need to referenced by the latest block number of Goerli testnet.

ETHERSCAN_API_KEY=""
ALCHEMY_API_KEY=""
DEV_ADDRESS=""
PRIVATE_KEYS=""
LP_TOKEN_ADDRESS=""
ALLOCATION_POINT=
TOKENS_PER_BLOCK=
START_BLOCK=
BONUS_END_BLOCK=

4. Test Smart Contracts

$ npx hardhat test

5. Deploy Smart Contracts

$ npx hardhat deploy --network goerli

Usage

Since the front end part of this project is in a separate repo, to interact with the deployed contract, remix IDE can be used to fetch deployed contract user interface.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

bzpassersby - @bzpassersby - [email protected]

(back to top)

About

A web dapp that provides Panda token rewards for users who stakes in Uniswap liquidity pools.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published