> For the complete documentation index, see [llms.txt](https://docs.quipuswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.quipuswap.com/smart-contracts/dex-2.0/flashswapsproxy-contract.md).

# 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.
