# FlashSwapsProxy contract

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

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