When the UI of a Yield Farm is down because of a technical issue, you can still harvest your rewards by interacting directly with the farm’s Masterchef contract on bscscan.com.
Having troubles with the a Farm’s UI on the Avalanche blockchain? Fear not! In this guide we will show you how to manually harvest your rewards via the Avalanche block explorer.
Step 1. Find the MasterChef contract address #
The first thing we need to do is to find the MasterChef contract address. Usually, you can either find it on the farm’s website or, if the farm is reviewed by our team, on our website rugdoc.io. If you are having troubles with finding the MasterChef contract address, please check this guide.
Step 2. Find the Pool ID (PID) of your liquidity pool #
The next step is to find the Pool ID (PID) of the liquidity pool of which we would like to harvest the rewards. Finding the correct PID can be a bit tidious, so we would advise to directly verify the PID after you have deposited your funds into a liquidity pool. Not sure how to find the PID? Read this guide.
Step 3. Open the MasterChef contract #
Now that we have found the MasterChef contract, we should open it in the Avalanche block explorer. In this guide, we are using Crab Finance’s MasterChef. Once you have opened the MasterChef contract, click on ‘Write Contract’ on the right side of the screen.
You now have to connect your Metamask wallet. You can do so by clicking on the ‘Connect to Metamask’ button.
Step 4. Manually harvest your rewards #
With the MasterChef contract address and the liquidity pool’s PID noted down, we are ready to manually harvest the rewards. Scroll down to the ‘deposit’ section. Under ‘_pid (uint256)’, enter your PID. Under ‘_amount (uint256)’, enter 0 for and click the ‘Write’ button.
Congratulations! Your funds should now have appeared in your wallet.
If you are still have trouble to find your PID, just start at zero and work your way up numerically, checking your wallet each time until your funds have arrived.