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.
2. Locate Your Deposit
Each market has its own a unique proxy contract address. If you know the contract address, simply navigate to the contract on Optimistic Etherscan.
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.
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:
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.
Click +Add to add your Custom Contract ABI, and enter the following information:
Name: Enter a name to identify the contract. Any name may be entered.
Address: Copy the proxy contract address from the previous step, and paste it in this field
Custom ABI:Copy the Custom Contract ABIto this field
5. Withdraw Margin
Navigate to the contract page and select Connect to Web3 to connect your wallet.
Once connected, select Write Custom at the top of the page.
Find the function 12. withdrawAllMargin at the bottom of the page and select Write to withdraw all margin.
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.