*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

How to Emergency Withdraw (BSC)

An ambulance

When the UI is down on a Yield Farm, either because of a technical issue or a deliberate rugpull, you can still withdraw your funds by interacting directly with the Masterchef contract on bscscan.com. Please keep in mind that this will not work if the liquidity has already been drained from the pool.

Step1: Find the MasterChef contract #

How to find a MasterChef contract – RugDoc Wiki

Step 2a: Use Our Brand New Emergency Withdraw Tool #

As an alternative, we have a brand new tool available for you to use that will automate the rest of this process. Please check it out here:

https://rugdoc.io/emergency/

Step 2b: Find the Pool ID (PID) for your pool #

If you are in a hurry, you can skip this step and conduct a series of Emergency Withdrawals starting with a PID value of zero and working your way up numerically. Eventually, you will hit the PID that corresponds to your pool.

How to Find the Pool ID (BSC) – Rug Doc Wiki

Step 3: Connect to your wallet #

At this point, you should be on the Masterchef page and will need to connect your wallet. Scroll down to the Transactions section and click the “Contract” tab.

BscScan contract tab

Click the “Connect to Web3” link which will prompt you to connect to your wallet.

Connect to web3
Click “Connect to Web3”

Connected to web3
You are now connected to your wallet

Step 4: Emergency Withdraw #

Once you’re connected, click “Write Contract” and scroll down to ” emergencyWithdraw”. Enter your PID (in this case 8) and click the Write button.

Writing to emergencyWithdraw via BscScan
This is the action that actually retrieves your funds

Unless the funds have already been drained from the pool, your crypto should now be back in your wallet.

Now you know how to use the emergencyWithdraw function to withdraw your funds without using the farm interface. Be sure to bookmark this guide and even try it out so you are ready for when you really need to withdraw in a hurry!

Updated on July 11, 2021
How do you feel about this article?

6 Comments

  1. Tell me please, I have PANTHER-BNB LP tokens on my MetaMask wallet, but the PANTHER site is disabled and I can not withdraw their liquidity, your method, as I understand it helps only to withdraw LP tokens into the wallet, and what to do with them further is unclear. How do I exchange them, or at least disconnect them for PANTHER and BNB. Thank you.

    • Hello Alexey, This method is for converting your LP tokens back to the underlying tokens without using the UI of a website. In your case you need to find the PoolID of the liquidity pool you have deposited your PANTHER and BNB tokens in, and follow the steps in the article.

  2. Hi Boss,

    Wondering if you can help as I don’t really understand codes.

    The UI for https://depth.fi is no longer available. The Depth protocol vault intro is here: https://docs.depth.fi/product/vault
    It was a protocol that deposits into other protocols. The only value-add it did was to compound the yield earned. In this case, I deposited BUSD which was deposited into Venus BUSD pool. I followed your guide and retrieved my liquidity token (dvvBUSD) but I don’t know how to convert it back to BUSD ..

    The smart contracts and codes are here: https://docs.depth.fi/product/contract
    I went to the BDEP smart contract (0xBb1eDaa1c11B18f2122e8268B71D670556Ef6C5f) and did emergencyWithdraw, per your guide. Transaction Hash: 0xf8b83f276173fb334b327c557b4ae7182f463813972c1b64e32055b28385fe93

    I have been tabbing through the contracts. How do I exchange the liquidity tokens (dvvBUSD) for the native BUSD? I need to interact with another contract?

    It’s a significant amount of my savings. I’ll be very appreciative if you can help.

    Many Thanks.

Leave a Reply

*Paid Advertisement. Not financial advice. RugDoc is not responsible for the projects showcased here. DYOR and ape safu.

EN