How to "forcefully" withdraw funds from the discontinued Layer 2?

CN
1 month ago

Original | Odaily Planet Daily (@OdailyChina)

Author | Azuma (@azuma_eth)

How to "force" withdraw funds from a discontinued Layer2?

dYdX has gradually completed its migration to the Cosmos ecosystem application chain dYdX Chain through the v4 version, while the dYdX v3 version also concluded on October 28. The Layer2 network used by this version has now been discontinued, and all trading has been paused.

However, L2BEAT data shows that as of the discontinuation, there are still over 70 million dollars in funds on the Layer2 network used by dYdX v3 that have not been withdrawn…

How to "force" withdraw funds from a discontinued Layer2?

Fortunately, for a Layer2 network, this does not mean the permanent loss of funds — dYdX v3 uses the StarkEx Layer2 solution, which has a built-in protection mechanism called Escape Hatches. This mechanism allows users to forcibly withdraw funds from Layer2 to Layer1 (i.e., the Ethereum mainnet) corresponding to their accounts, just like the situation currently faced by dYdX v3.

  • Odaily Note: L2BEAT explains that the Escape Hatch mechanism is only applicable to non-general Layer2s like dYdX v3 (Layer2s without smart contracts). For other general Layer2s that support the Escape Hatch mechanism, more robust options are required, including decentralized sequencers and forced transactions, etc.

Returning to the situation of dYdX v3, since using the Escape Hatch requires providing a "Merkle proof" to verify asset status, L2BEAT has created an open-source StarkEx explorer (https://explorer.dydx.exchange/) to facilitate users in accessing the Escape Hatch more directly.

As for the specific withdrawal operation, users need to first enter the StarkEx explorer, then connect their wallet (top right), find the token assets that can be withdrawn to Layer1 in the Assets section, and click Escape to initiate the withdrawal process.

How to "force" withdraw funds from a discontinued Layer2?

The entire withdrawal process requires completing three transactions: "Initiate Escape," "Finalize Escape," and "Withdraw Funds."

  • Initiate Escape: After clicking Escape, you will be directed to the "Escape" initialization interface, which outlines the entire process; then you need to click Initiate Escape and confirm the transaction in your wallet; this step may incur high gas fees;

  • Finalize Escape: After confirming the previous transaction, a new Pending Escapes information bar will appear on the user page; you need to click Finalize Escape in that bar and confirm another transaction;

  • Withdraw Funds: After completing the previous transaction, returning to the user page will show a Withdrawable Assets information bar; at this point, click Withdraw now and confirm the transaction to withdraw the funds to the original Layer1 account.

  • Odaily Note: For detailed operational procedures, please refer to the guidance provided by the StarkEx explorer: https://explorer.dydx.exchange/tutorials/escapehatch

Once the withdrawal transaction is initiated, users can view the status of their fund exit in real-time on the homepage of the explorer to execute the next steps.

How to "force" withdraw funds from a discontinued Layer2?

It is worth mentioning that the Escape Hatch function requires no permission, which means that users can not only withdraw their own funds but also assist other users in executing withdrawal operations, but this does not mean you can access other people's assets; the assets returned to the Layer1 network will only go back to the corresponding Layer1 address.

Another point to note is that since the Escape Hatch function requires interaction with Ethereum contracts and needs to provide a "Merkle proof" to prove asset ownership, it requires executing some transactions to implement this function, and the data and logic required to process these transactions are substantial, so their gas costs can be very high — this means that before a Layer2 shuts down, you should withdraw your funds as early as possible before the official shutdown time to avoid relying on the Escape Hatch as a last resort.

In summary, the existence of the Escape Hatch proves a significant unique advantage of Layer2 networks, namely that the security of assets is always guaranteed by Ethereum, allowing for forced withdrawal of funds even in the event of discontinuation. This is a feature that other Layer1s can never promise.

免责声明:本文章仅代表作者个人观点,不代表本平台的立场和观点。本文章仅供信息分享,不构成对任何人的任何投资建议。用户与作者之间的任何争议,与本平台无关。如网页中刊载的文章或图片涉及侵权,请提供相关的权利证明和身份证明发送邮件到support@aicoin.com,本平台相关工作人员将会进行核查。

Share To
APP

X

Telegram

Facebook

Reddit

CopyLink