> 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/quipuswap-stable-swap-dex/factory/deployed-from-factory-dex/initialization.md).

# Initialization

There are two entrypoints are responsible for initializing the new DEX pool contract.

{% hint style="warning" %}
These entrypoints should be called only by `Factory` contract address.&#x20;
{% endhint %}

Both methods are called as internal operations of one entrypoint of Factory: [start\_dex](/smart-contracts/quipuswap-stable-swap-dex/factory/initialize-new-dex-flow/start_dex.md).

### Copy core dex lambdas

This method receives big\_map of `nat -> bytes` - lambdas of [DEX methods](/smart-contracts/quipuswap-stable-swap-dex/standalone-dex/dex-methods.md).

{% content-ref url="/pages/6iRVgFF5W18mH5TSuTJ6" %}
[copy\_dex\_function](/smart-contracts/quipuswap-stable-swap-dex/factory/deployed-from-factory-dex/initialization/copy_dex_function.md)
{% endcontent-ref %}

### Freeze

{% hint style="info" %}
The DEX pool contract deploys with `started = False`. This method changes this field.
{% endhint %}

This method is used only to trigger "unfreeze" of the contract after copying DEX lambdas - the last needed lambdas to enable full functionality of DEX pool.

{% content-ref url="/pages/gqwSoZDIkfkFMTiLHJAy" %}
[freeze](/smart-contracts/quipuswap-stable-swap-dex/factory/deployed-from-factory-dex/initialization/freeze.md)
{% endcontent-ref %}
