# set\_flash\_swaps\_proxy

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

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