apoorvlathey / forcedao-qi-strat

Farming Strategy for QI/MAI LP tokens that allows auto-compounding of Rewards and Earn high APYs!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QI Farming Strategy

Mai.finance is rewarding their governance token QI on staking the Quickswap LP token for QI/MAI Pair.

(Mai is a stablecoin pegged to $1)

Video Walkthrough: YouTube

Working of Strategy:

This strategy allows the user to deposit their QI/MAI LP tokens, or if they just have single token QI or MAI lying in their wallet, the contract automatically swaps and converts that into required LP token so users can deposit instantly without any hassle.

Here's the simple overview: infographic

Harvesting

Due to Polygon's low transaction fees, we can harvest the rewards every few minutes. Due to this the current APY is more than 300%!

Note: Mai's staking contract charges 0.5% on deposit, so it's advised for the user to not exit the pool instantly as they'll leave with less than what they deposited. Because of high APY this fees can be recovered in few days.

Deployment

The contract is deployed on Polygon Mainnet, you can interact with it via the UI here👉 https://apoorvlathey.com/projects/qi-farming/

(Note: Use at your own risk, contract is not audited)

UI

The dashboard gives you all the necessary data about the strategy and allows to deposit/withdraw as shown:

UI Screenshot 1 UI Screenshot 2 UI Screenshot 3

Smart Contracts

The repository uses hardhat to run tests for Strategy using forked mainnet. You can run yarn test to get the following result:

Test Terminal Output

Note: You would need to configure variables in ./contracts/.env. Refer to ./contracts/.env.sample

About

Farming Strategy for QI/MAI LP tokens that allows auto-compounding of Rewards and Earn high APYs!


Languages

Language:JavaScript 65.7%Language:Solidity 17.9%Language:TypeScript 11.2%Language:HTML 5.2%