> For the complete documentation index, see [llms.txt](https://nfd-gg.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nfd-gg.gitbook.io/main/eng-combine-software/modules/operation-and-launching-of-modules/starknet-module/settings-and-launch/rescue-mode.md).

# 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, through this mode will help to get liquidity from pools in various Dapps.

***

### Setting up and starting a session:

* In the **Mode** section, select **Rescue mode**;
* In the **Run mode** section, choose the order in which the wallets will be launched:
  1. **Parallel** - simultaneous operation (multi-threaded) 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. Preliminarily, mobile proxies must also be added to 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)**.**
* 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 appropriate group in the **Select Accounts group to launch** section;
* There are two modes of operation in Rescue mode:
  1. **Rescue to ETH** allows you to exchange remaining tokens for ETH and withdraw ETH from liquidity pools.
  2. **Rescue to USDC** allows you to exchange remaining tokens for USDC and withdraw USDC from liquidity pools.

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

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

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

* In the **Delays** section, set the delays between actions. There are two modes: **Standard** and **Pro**;
* In standard mode, there are three settings:
  1. **Wallet -** Delay between wallet launches;
  2. **Block -** Delay between block-scenarios (protocols);
  3. **Step -** Delay between actions within a block-scenario.
* In Pro mode, there is an additional setting called **Gas guard**. When activated, your wallet will additionally go to sleep if multiple accounts in the same session are ready to work after reaching your specified gas threshold for software operations. This is designed to prevent all these wallets from sending transactions simultaneously. The standard delay is set between 30 to 150 seconds;
* In the **Max gas price** section, you set the maximum gas price on the Starknet network at which transactions will occur. The software will wait until the gas on the Starknet network drops to your specified value before starting transactions. After starting the session, you can adjust the upper Gwei level in the **Logs & Progress** tab under **Sessions;**
* If the **Approve INFINITE amounts** checkbox is enabled, an infinite number of tokens will be approved so that you do not need to re-approve your tokens before each subsequent swap/bridge. If the checkbox is disabled, only the amount necessary for the transaction will be approved;
* To randomize the order in which wallets are activated, leave the **Randomize wallets** checkbox enabled;
* To save session delay settings for future sessions, click **Save this as preset**, enter a preset name, and save it. Later, you can select this preset in the **Select preset** field;
* Click **Update Balances** to fetch the current ETH balances on your wallets;
* Select the wallets that will be launched for operation and click **Launch.**

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://nfd-gg.gitbook.io/main/eng-combine-software/modules/operation-and-launching-of-modules/starknet-module/settings-and-launch/rescue-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
