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

How to Emergency Withdraw (Arbitrum)

How to Emergency withdraw (arbitrum)

In this article we will show you how to emergency withdraw your crypto assets by interacting directly with the MasterChef contract of a decentralized finance farm protocol on the Arbitrum network.

Step 1: Get the MasterChef contract address #

The first step is to find the MasterChef contract address + the pool number in which your assets are deposited. Please read this article to find out which pool number corresponds with the liquidity pool that contains your assets. By reading this article, you can find the MasterChef contract address.

Step 2a: Use Rugdoc’s emergency withdraw tool #

As an alternative for the steps below, we have created a tool that does the emergency withdraws for you! Check it out here: https://rugdoc.io/emergency/

Step 2b: Search for the MasterChef contract #

In this guide, we are using FarmersOnly Layer 3’s Masterchef contract.

Open one of the Arbitrum block explorers and fill in the MasterChef contract address in the top right and hit enter. Select the ‘Contract’ tab and then ‘Write Contract’.

Arbitrum explorer masterchef contract write contract

Step 3: Connect your Wallet to the Arbitrum explorer #

Connect your wallet to the Arbitrum explorer. Select the “Connect to Web3” line.

Connect arbitrum explorer to web3

If you have multiple addresses in your MetaMask wallet choose the right one and click on “Next” in the MetaMask window.

Choose the right account on Metamask

Then connect your wallet by clicking “Connect”.

confirm metamask connection with arbitrum block explorer

You are now connected with the MasterChef and you can start with calling the emergencyWithdraw function.

Step 4: Call the emergencyWithdraw function #

Within the “Write Contract” section you’ll find a section called “emergencyWithdraw”.

Emergency withdraw section masterchef

You need to fill in the pool ID (PID) of the liquidity pool you want to withdraw your assets from. If you don’t know your pool ID please read this article. Please make sure to note down the pool ID in case of an emergency because finding the PID is time consuming.

enter the right PID in the emergency withdraw section

After filling in the pool ID, click on the ‘Write’ button. You are now prompted to sign the transaction. Once the transaction is executed, you should get a confirmation.

Awesome! You now know how to emergency withdrawn your crypto assets from liquidity pools via the Arbitrum block explorer(s).

Updated on December 1, 2021
How do you feel about this article?

Leave a Reply

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

EN