Withdraw from Autofarm vaults using bscscan.com
In the unlikely event of an user interface (UI) outage/downtime, it is also possible to communicate and trigger Autofarm smart contracts with use of the Binance Smart Chain (BSC) block explorer: https://www.bscscan.com. An walkthrough on how to do this is presented here, aspects needed for these actions: desktop browser (preferably Chrome) and the MetaMask plugin.
1) Get Metamask at https://www.metamask.io and import your seed if needed.
2) Get the PID of your funds. The PID refers to Pool ID and its the value that is assigned to each pool from the deployer contract. To get the PID of your funds there are at least two ways to search for it.
This step is important because it’s the only way for interaction with bscscan and the smart contracts.
Autofarm Vault PoolID (PID) list:
Please always check if above list is up to date: retrieve the list with PIDs from the Autofarm API: https://static.autofarm.network/bsc/farm_data.json (past the output in https://jsonlint.com/ and paste it there. Then you can click Validate JSON and go to the last section to find a list with all the available pools.)
Another way to get a vault PID it's going to bscscan.com, and search up the deposit transaction hash of you wallet. Then in the details of the transaction (txn), you can click on show more > input data > decode data. This will give you the actual PID of the vault where you deposited.
3) Go to Autofarm deployer contract. Search the contract in bscscan.com (Address: 0x0895196562C7868C5Be92459FaE7f877ED450452)
4) Connect to BSCscan via web3
5) Click on [Write Contract]
6) You can either withdraw your entire deposit or choose to only harvest the $AUTO rewards, both can also be done by using section 11: ”11. withdraw”.
To harvest your $AUTO rewards:
Enter your PID in _pid
Enter 0 in _wantAmt
Click on Write and approve the transaction.
To withdraw your deposited funds partially or fully:
Enter your PID in _pid
Enter the quantity to withdraw, on uint256 format , in _wantAmt
7) After you filled in the PID, click on [Write Contract] and Metamask will prompt a window to approve the transaction. Once the transaction is executed, all your funds will be withdrawn from the Autofarm vault to your wallet.
To convert a decimal value to uint256 format, please go to https://www.rapidtables.com/convert/number/hex-to-decimal.html
Last updated