🟡Initialization

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

Both methods are called as internal operations of one entrypoint of Factory: start_dex.

Copy core dex lambdas

This method receives big_map of nat -> bytes - lambdas of DEX methods.

copy_dex_function

Freeze

The DEX pool contract deploys with started = False. This method changes this field.

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.

freeze

Last updated