Search
⌃K

Emergency Withdraw Procedure

Learn how to withdraw your funds in case migration is not working

1. Get your asset pid

First, identify the pid of the asset you want to withdraw.
Main Pool & Alt Pools:
Asset
pid
LP-USDT.e
0
LP-USDC.e
1
LP-DAI.e
2
LP-MIM
3
LP-USDC
4
LP-USDT
5
LP-FRAX
6
LP-USDC-FRAX
7
LP-UST
8
LP-USDC-UST
9
LP-MIM (2)
10
LP-USDC-MIM
11
LP-AVAX
12
LP-sAvAX
13
LP-TUSD
14
LP-USDC-TUSD
15
LP-YUSD
16
LP-USDC-YUSD
17
LP-BTC.b
18
LP-WBTC.e
19
LP-MONEY
20
LP-USDC-MONEY
21
LP-BUSD
22
For Factory Pools:
Asset
pid
LP-TSD
0
LP-USDC-TSD
1
LP-H2O
3
LP-USDC-H2O
4
LP-MONEY
5
LP-USDC-MONEY
6
LP-MAI
7
LP-USDC-MAI
8
LP-USX
9
LP-USDC-USX
10

2. Identify the MasterChef where your deposits are

Next, you need to identify the MasterChef contract where your deposits are lying.
If your deposits are recent and no migration prompt is shown when you log into platypus app, they should be on the latest version.
Note: frontend allows you to migrate automatically from latest versions of masterchef to the last ones.
For Main Pool & Alt Pools:
For Factory Pools:

3. Head to snowtrace to perform the withdrawal

Go to the snowtrace page of the corresponding MasterChef contract.
  • Click "Contract"
  • Click "Read as proxy"
  • Go to the view function: userInfo()and input the pid and the address of the wallet you used for your deposit. Next, click on Query.
    userInfo function
Copy the amount value it returns.
The amount value should be higher than 0, meaning that you effectively have a deposit.
  • Next, click on "Write as proxy"
  • For the next steps, you need to connect your wallet where the deposits where made.
    • Click on "Connect to web3".
    • Refresh the page if necessary. Make sure your wallet is connected to snowtrace.
Before trying to do an emergencyWithdraw(), you should try a to perform a regular withdraw using the withdraw() function.
withdraw function
  • Input the pid of the pool and the amount you copied early on from the userInfo function.
  • Click on Write
Check your Platypus Frontend or your wallet on snowtrace, you should have withdrawn the corresponding LP token.
If for some reason you still cannot withdraw your deposits, go to emergencyWithdraw()function and input the pid of the pool you wish to withdraw.
Clikc on Write.
emergencyWithdraw function
Note: emergencyWithdraw() attempts to withdraw the LP without claiming any accrued rewards.
Plase note that this procedure allows you to withdraw LP tokens. If you wish to withdraw your tokens, you need to go to platypus frontend and withdraw the underlying tokens from the corresponding pool.