# Fail Guard

Introducing Fail Guard:

By enabling Fail Guard, your transaction undergoes a pre-execution simulation to ensure it won't encounter any execution errors before being broadcasted to the network. Fail Guard is designed to prevent unnecessary gas expenditure on transactions likely to fail.

Enabling Fail Guard introduces some latency to your trades, as the simulation process must be completed before executing the trade.

However, it's important to note that Fail Guard doesn't guarantee prevention of all transaction errors.

For instance, consider a swap transaction with 5% slippage that successfully simulates as valid. If preceding transactions in the block cause the price to move beyond the 5% range, your transaction may still fail.


---

# 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://lfg314.gitbook.io/lfg314/fail-guard.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.
