# Rescue mode

It happens that after the end of a session there are few tokens left on wallets or small amounts in balances in liquidity pools, that's why Rescue mode was created, the main task of which is to swap balances of stablecoins or other tokens back to ETH or USDC. Also this mode will help to get liquidity from pools in different Dapps.

***

### Setting up and starting a session:

* In the **Mode** section, select **Rescue mode**;
* In the **Run mode** section, choose the order in which wallets will be launched:
  1. **Parallel** - parallel operation (multi-threading) with or without proxies;
  2. **One-by-one** - wallets will be launched one after another with or without proxies;
  3. **One-by-one (mobile proxy)** - wallets will be launched one after another using mobile proxies. Mobile proxies must be added in the **Settings ->** [**Proxies**](https://docs.nfd.gg/main/eng-combine-software/section-settings/proxies) section and linked to accounts in the [**Account Manager**](https://docs.nfd.gg/main/eng-combine-software/account-manager) in advance;
* To use a ready-made preset of software settings, click on the selection field in the **Select preset** section and choose the desired preset;
* To launch a pre-prepared group of wallets, select the desired group in the **Select Accounts group to launch** section;
* In **Rescue mode**, there are two operating modes:
  1. **Rescue to ETH** - allows you to swap remaining tokens to **ETH**, and also retrieve **ETH** from liquidity pools;
  2. **Rescue to USDC** - allows you to swap remaining tokens to **USDC**, and also retrieve **USDC** from liquidity pools.

<figure><img src="/files/R14A4S6zDKxFQJxnIF3j" alt=""><figcaption></figcaption></figure>

* In the **Select blocks** section, click on **Select** to choose the tokens and the DEX where they need to be swapped or the liquidity pools from which liquidity needs to be withdrawn;
  1. If you want to swap all remaining tokens and withdraw all available tokens from liquidity, regardless of the DEX, click **Select All**. The software will only swap available tokens and withdraw liquidity from protocols where it exists;
  2. If you want to withdraw tokens from liquidity in a specific DEX, select the desired protocol and LP pair in the **Liquidity** section;
  3. To swap a specific token (e.g., **USDC**), you need to select the token and choose the protocol where the swap will be performed and check its checkbox;
* The minimum amount of tokens that will be taken into operation is 30 cents. If there are 29 cents in **USDC** on the wallet, the software will skip this token. This is to ensure that the swap fee does not exceed the total swap amount.

<figure><img src="/files/CdrVsGSFI2CkoUb3zzjw" alt=""><figcaption></figcaption></figure>

* In the **Delays** section, set the delays between actions. There are two modes: **Standard** and **Pro**;
  1. In the **Standard** mode, there are three settings:
     * **Wallet** - delay between wallet launches;
     * **Block** - delay between block scenarios (protocols);
     * **Step** - delay between actions in a block scenario;
  2. In the **Pro** mode, you can specify three additional settings:
     * **Approve** - delay between approval and bridge/swap;
     * **Gas guard** - when activated, your wallet will go to sleep if several accounts in the same session are ready to work simultaneously after reaching the gas level set for the software. This prevents all these wallets from sending transactions simultaneously after reaching the gas level. The standard delay is set in the range of 30 to 150 seconds;
     * **Break** - delay between halves of steps in a block scenario;
* In the **Max gas price** section, set the maximum gas in the **Linea** network at which transactions will be made. The software will wait until the gas in the **Linea** network drops to the required value and only then will start making transactions. After starting the session, you can change the upper **Gwei** level in the **Logs & Progress** tab by going to the **Sessions** section;
* If the **Approve INFINITE amounts** checkbox is activated, an infinite number of tokens will be approved so that you do not need to re-approve your tokens before each repeated swap/bridge. If the checkbox is disabled, only the amount needed for the transaction will be approved;
* To have wallets start working in random order, leave the **Randomize wallets** checkbox enabled;
* To save the session delay settings for use in other sessions, click **Save this as preset**, enter the preset name, and save. Later, this preset can be selected in the **Select preset** field;
* Click **Update Balances** to get the current ETH balances on the wallets;
* Select the wallets that will be started and click **Launch**.

<figure><img src="/files/YlqqOUqCvDqQbrQ50FLJ" alt=""><figcaption></figcaption></figure>

* Your wallets have been launched. You can track the progress of wallet operations in the [Logs & Progress](https://docs.nfd.gg/main/eng-combine-software/modules/operation-and-launching-of-modules/linea-module/logs-and-progress) section.


---

# 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://nfd-gg.gitbook.io/main/eng-combine-software/modules/operation-and-launching-of-modules/linea-module/settings-and-launch/rescue-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.
