Withdraw Funds
This guide focuses on working directly with contracts on Taiko or Morph via network-specific block explorers, not via the Minterest UI.
Last updated
This guide focuses on working directly with contracts on Taiko or Morph via network-specific block explorers, not via the Minterest UI.
To fully withdraw funds from all markets, all outstanding loans must be repaid.
For these next steps, we'll be interacting with Taiko's & Morph's explorer using $USDC's market address:
Taiko: 0xF89B01fa87a3E51BDA2dA67154Ea35A3F84eC373
Morph: 0x793ce6AC5112DA5Db9C046848af99C749e14b1A4
This part of the process won't require any transaction.
Locate the contract address for the market associated with your desired token in the smart contracts list provided in this guide.
Go to the Contract section, open the Read as Proxy or Read proxy tab, then scroll down and choose the balanceOf function:

Paste your wallet's public address into the owner (address) input field and click Query or Read:

The result is an integer scaled by the underlying token decimals.
Go back to the Contract section, open the Write as Proxy or Write proxy tab, then click Connect to Web3 or Connect wallet:

Locate and choose the redeem function, then enter the balance you got form using the balanceOf function in the redeemTokens (uint256) input field.
Click Write, then approve the transaction in the browser pop-up displayed by your wallet.
You'll get an error if you're not holding enough of your inputted asset amount.
Last updated
