# Shutdown mode

There is a special shutdown mode in *Marginly* v1. This mode is enabled by smart contract admin when there is system insolvency, that is:&#x20;

* When there is not enough USDC collateral value to support the entire ETH debt value
* When there is not enough ETH collateral value to support the whole USDC debt value

System insolvency is a critical situation in which the protocol stops functioning correctly and thus requires the winding down of user positions and protocol instantiation. In normal market conditions and the absence of "black swans" events like the sudden USDC depeg or a protocol or AMM hack with depletion of liquidity, we wouldn't expect a shutdown to happen. This is a once-in-a-lifetime event, yet it still requires proper handling.&#x20;

In the shutdown mode, no new positions are allowed to be opened, and the side opposite to the insolvent side is responsible for restoring the system's solvency at its expense. If shorts are insolvent (ETH debt value > USDC collateral value), longs will pay with their ETH collateral to reduce the system's ETH debt until the solvency is restored. If longs are insolvent (USDC debt value > ETH collateral value), shorts will pay with their USDC collateral to reduce the system's USDC debt until the solvency is restored.  &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.marginly.com/risk-management/shutdown-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
