Withdrawing funds

Only use this method if the DMEX website is down or not functioning properly. Otherwise withdraw your funds through the website.

Any user can withdraw his/her funds from the contract at any time, even if the DMEX website is down. To do that the user must follow the following steps:

  1. Find the DMEX Base contract (click here for instructions)

  2. Go to the Contract tab

  3. Select the Read Contract tab

  4. Scroll down until you find the availableBalanceOf function

  5. Enter the collateral token address in the first field (0x0 for ETH) and your wallet address in the second input and press the Query button.

  6. You will see a number appear. This is your balance on the contract in WEI (1 ETH = 1 000 000 000 000 000 000 WEI). Copy the number.

  7. Select Write Contract tab at the top

  8. Click on the "Connect to Web3" link and use your MetaMask wallet (or Ledger through MetaMask)

  9. Go to the withdraw function

  10. Enter the token to withdraw in the first field (0x0 for ETH)

  11. Paste the amount copied in step 6

  12. Press Write and press confirm in the MetaMask.

Thats it. You have manually withdrawn your funds from DMEX.