There are two entrypoints are responsible for initializing the new DEX pool contract.
These entrypoints should be called only by Factory contract address.
Factory
Both methods are called as internal operations of one entrypoint of Factory: start_dex.
This method receives big_map of nat -> bytes - lambdas of DEX methods.
nat -> bytes
The DEX pool contract deploys with started = False. This method changes this field.
started = False
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.
Last updated 3 years ago