> For the complete documentation index, see [llms.txt](https://docs.swoop.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swoop.fun/swoop-solana-bot/settings/gas.md).

# Gas

**Go to the “Settings” section** in the bot’s main menu, then **tap “Gas”** to access your fee settings.

<div align="left"><figure><img src="/files/6OEQY9vGUk8AC3caGSTh" alt="" width="375"><figcaption></figcaption></figure></div>

You can set separate gas values for **buy** and **sell** actions — these values will apply to all your future transactions. In most cases, you can simply enable **Auto Gas** mode. When it's active, the bot will automatically calculate an optimal gas fee for each transaction based on current network conditions.&#x20;

However, during periods of high network load (e.g. hyped token launches), we recommend setting your own gas values manually — slightly higher than usual — to ensure your transactions are processed faster.

<div align="left"><figure><img src="/files/R2doTQOHPFBqB0zx85d2" alt="" width="375"><figcaption></figcaption></figure></div>

**Please tap**:

• Buy gas – to set a custom gas fee for buy transactions

• Sell gas – to set a custom gas fee for sell transactions

• Auto gas – to let the bot automatically calculate gas fees for both buys and sells

## MEV Protection

**MEV Protection** is a feature designed to secure your orders by hiding them from bot attacks such as front-running and sandwich attacks. If you're trading large amounts, we highly recommend enabling MEV protection — it helps prevent situations where other bots profit from price changes at your expense.

<div align="left"><figure><img src="/files/ounaYEL3glY3GV4FG139" alt="" width="264"><figcaption></figcaption></figure></div>

* 🟢**When MEV protection is enabled**, your transactions are routed only through protected servers, significantly reducing the risk of attacks and bot interference.
* 🔴**When MEV protection is disabled**, transactions can go through any available servers, including those without MEV protection.

{% hint style="info" %}
You can set your own MEV protection thresholds for both **buy** and **sell** orders — these settings will apply to all future transactions.
{% endhint %}

Tap the **«Buy MEV»** button to set a custom threshold (in SOL).

<div align="left"><figure><img src="/files/z5PYUpUyoWFsTAHHBnyE" alt="" width="265"><figcaption></figcaption></figure></div>

Tap the **«Sell MEV»** button to set a custom threshold (in SOL).

<div align="left"><figure><img src="/files/NYX48zivghjkVatSN5Cr" alt="" width="264"><figcaption></figcaption></figure></div>


---

# 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://docs.swoop.fun/swoop-solana-bot/settings/gas.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.
