How to Withdraw Lock Funds if You Lose Your DeversiFi Trading Key

How to withdraw/retrieve funds if you lose your DeversiFi trading key that is registered to your MetaMask account? 


When connecting to DeversiFi using MetaMask, you are required to create an additional key pair. This key pair is what allows your MetaMask app to communicate with our layer 2 exchange in order to execute trades, deposits, withdrawals and other functions. When a user first registers their MetaMask account with DeversiFi, this trading key pair is automatically created and stored in your browser’s local storage. However, it is paramount that the tradings key is backed up. There is a backup prompt during the onboarding process to do this but also an ongoing reminder above the balances widget. Making a backup of your trading key means that if for whatever reason, your trading key pair cannot be found, you will be able to easily and quickly import your back up and continue trading with minimal downtime. 


What happens if you misplace or lose your DeversiFi trading key backup file? While there is, of course, nothing DeversiFi can do if you lose your MetaMask, Ledger or Keystore keys, there is an additional method to initiating a withdrawal of locked funds from DeversiFi to your MetaMask Ethereum address without needing your backup or trading key. This is achieved by interacting with the blockchain directly and is a lot more costly and inconvenient than spending a moment to ensure you have backed up your trading keys, so we, of course, recommend that most of all. That said, this method is also very useful to know if for whatever reason you need to interact directly via the blockchain. 


So, how to do it? 

Below we detail the steps in text, however, if confused or facing difficulty view the video below for reference. 



Step One: Locate the ‘vaultID’ number associated with your balances. 


Each balance has a unique vaultID. As such, if you have 100 USDT & 0.5 ETH locked, you will need the vaultID for each balance. 


  1. Head to app.deversifi.com and if not already connected, connect your wallet. 
  2. Open up the ‘inspector’ (usually right-click, inspect) and navigate to the ‘network’ tab (as shown in the video below) 
  3. From within here, type ‘getUserConf’ in the search bar 
  4. You will then see a number of results titled 'getUserConf'. Click one of these to open up the information 
  5. Next, ensure you are on the ‘preview’ tab and select the token registry dropdown 
  6. From here, you’ll be able to select a token dropdown and view the corresponding vaultID 
  7. Note: ERC20 tokens share the same vaultID as ETH. Stablecoins have their own. 
  8. Copy and paste each relevant vaultID and proceed to step 2 below


Step Two: Interacting directly with the Ethereum blockchain to initiate a withdrawal 


  1. Now you have your vaultIDs, head over to the DeversiFi exchange contract here 
  2. Connect your MetaMask wallet to be able to write to contract 
  3. On the ‘write as proxy’ tab, navigate down to item 9. fullWithdrawalRequest
  4. Here, copy and paste your vaultID (only do one at a time) and click ‘write’ 
  5. Next, do the process again with each balance still locked 
  6. Once the tx is confirmed, your locked tokens will be pending withdrawal (included the next batch of withdrawals)  



VIDEO TUTORIAL: 






*Note, it may be prudent to take note of your vaultIDs so that you may use them in the future to interact directly with the DeversiFi smart contract if needed. 


Did this solve your problem?