Skip to content

GalloDaSballo/wbtc-usdc-Badger-Strategy

 
 

Repository files navigation

Quickswap WBTC-USDC Liquidity Pool Yield Farming (Polygon Mainnet)

This mix is configured for use with Ganache on a forked mainnet.

How it Works

Deposit

The Strategy takes Quickswap's Quick-v2 WBTC-USDC Liquidity Pool tokens as deposit and stakes them on Quickswap for yield generation. You can get Quick-v2 WBTC-USDC tokens here

Harvest & Compounding

Including the APY from providing liquidity in the WBTC-USDC pool, the user also gets QUICK rewards for staking the WBTC-USDC LP tokens.

The strategy converts the QUICK tokens to 50% WBTC & 50% USDC. Then it adds them to the WBTC-USDC Liquidity Pool on Quickswap for WBTC-USDC LP Tokens.

These WBTC-USDC LP Tokens are then reinvested back into the strategy for further yield generation.

Withdrawing Funds

On withdraw call, the strategy simply unstakes the WBTC-USDC tokens and returns them back to the user based on the number of vault shares that the user owns.

As of July 7, 2021

Rewards -> 11.15% APY
Fees -> 13.97% APY

Total -> 25.12% APY

Notes

  1. Add Polygon to your local brownie networks
brownie networks import network-config.yaml
  1. Increase the default balance of an account (since we are dealing with Matic here)
brownie networks modify polygon-main-fork default_balance="1000000 ether"
  1. In the .env file put the ETHERSCAN_TOKEN value as the API key from Polygonscan (not etherscan).

Tests