_expectedDepositLiquiditychanges left and right balance values, calls DexAccount’s InternalPairTransfer if there is need for exchange. When everything is successfully done, mint is started in the dex pair’s root where recipient is account owner and successCallback is called to notify about successful deposit action.
_withdrawLiquidityBase, call dexPairWithdrawSuccess callback for account owner to notify successful withdrawal. If left and right amount to withdraw are greater than 0 transfer them to the account by calling DexAccount’s internalPairTransfer, burn withdrawn tokens in the specified pool by calling burnTokens method from the
_expectedSpendAmountbased on receive amount and specified token root address
upgrade_data, loads and decodes from slice data such as left, right root, vault address, root address, old version number, current version, send gas to address, after that checks if old version is 0