> 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/dexcore-contract/entrypoints-overview/admin-entrypoints/set_flash_swaps_proxy.md).

# set\_flash\_swaps\_proxy

An entrypoint that setups a new **FlashSwapsProxy** contract for executing users' lambdas in time of flash swaps (see [FlashSwapsProxy](/smart-contracts/dex-2.0/flashswapsproxy-contract.md)).

### Call parameters

<table><thead><tr><th>Field</th><th width="198.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td>flash_swaps_proxy</td><td>address</td><td>An address of a new <strong>FlashSwapsProxy</strong> contract</td></tr></tbody></table>

### Usage

{% tabs %}
{% tab title="🌮 Taquito" %}

```javascript
const dexCoreAddress = "KT1...";
const flashSwapsProxyAddress = "KT1...";
const dexCore = await tezos.contract.at(dexCoreAddress);
const operation = await dexCore.methods.set_flash_swaps_proxy(flashSwapsProxyAddress).send();

await operation.confirmation();
```

{% endtab %}
{% endtabs %}

### Errors

* `400` - `sender` of the transaction is not current administrator.
* `412` - non payable entrypoint (can't accept TEZ tokens during call of an entrypoint).
