Withdrawing from v2 Isolated Margin using Optimistic Etherscan
Kwenta v2 Isolated Margin has been deprecated with the release of Smart Margin v2. Users who did not withdraw before Isolated Margin was deprecated may still withdraw from the contracts using the Optimistic Etherscan interface.
1. Register on Optimistic Etherscan
To get started, please ensure you have registered for an Optimistic Etherscan account. It's free, and is required to use custom contract interactions.
If you don't know the contract address, you find it in the Synthetix Github. You can search for the correct address by searching the page for PerpsV2ProxyETHPERP. If you were trading another market, you'll need to replace the ticker in your search (for example, PerpsV2Proxy1INCHPERP if you were trading 1inch.
Ensure you've located the mainnet address (this should be the first result in your search), and follow the link directly to the contract on Optimistic Etherscan.
Some proxy contracts are mislabeled on Etherscan. Follow the link directly from the Synthetix Github to locate the correct contract.
Search for your market proxy contract
3. Locate the Custom Contract ABI
The contract code should list a Custom Contract ABI. To speed up the process, the Custom Contract ABI for all contracts has been copied below.
Simply copy the text in the Custom ABI box below to your clipboard for use in the next step:
You'll copy and paste this data in the next step
4. Add Custom ABI to Optimistic Etherscan
Using the data found on this contract page, we'll add a custom ABI to Optimistic Etherscan. This allows us to withdraw from the contract. You'll need to be logged in to complete this step.
Find the function 12. withdrawAllMargin at the bottom of the page and select Write to withdraw all margin.
Ensue your wallet is connected and Write the function, 12. withdrawAllMargin
These steps will guide you through withdrawing your funds from the deprecated Isolated Margin contracts using the Optimistic Etherscan interface. If you need additional assistance please open a ticket in Discord.