Creating Exchanges

SokuFactory.sol is the smart contract where all the magic happens. It creates exchanges for each trading pair on Soku Swap. The public function createPair()allows any user to deploy an exchange contract for any pair of ERC20 or BEP20 tokens that do not already have one. The code below shows how the exchange is executed.