# FlashSwapsProxy contract

This is a helper contract. It is only needed in case of [***flash\_swap***](/smart-contracts/dex-2.0/dexcore-contract/entrypoints-overview/dex-entrypoints/swap.md) entrypoint call. It accepts a user's lambda from [***DexCore***](/smart-contracts/dex-2.0/dexcore-contract.md) contract and executes it.

This implementation is due to the fact that users' lambdas can be malicious for a [***DexCore***](/smart-contracts/dex-2.0/dexcore-contract.md) contract. And to avoid this, the execution of the users' lambdas is transferred to this ***FlashSwapProxy*** contract.


---

# 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.quipuswap.com/smart-contracts/dex-2.0/flashswapsproxy-contract.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.
