๐กInitialization
There are two entrypoints are responsible for initializing the new DEX pool contract.
These entrypoints should be called only by Factory
contract address.
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.
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.
freezeLast updated