From 27d79cfcfc41ab09ad58be7fdc5a2ed9278e9f01 Mon Sep 17 00:00:00 2001 From: Oleg Kirillovich Date: Mon, 15 Jul 2024 10:55:52 +0100 Subject: [PATCH] comment-out DexSwap.sol --- packages/hardhat/contracts/DexSwap.sol | 29 +++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/hardhat/contracts/DexSwap.sol b/packages/hardhat/contracts/DexSwap.sol index 02c1769a4..ae2082545 100644 --- a/packages/hardhat/contracts/DexSwap.sol +++ b/packages/hardhat/contracts/DexSwap.sol @@ -93,23 +93,24 @@ contract DexSwap is IDexSwap, Storage { if (_swapData[i].dexType == DexType.UniswapV3Single) { _swapUniV3Single(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.SushiV3Single) { - _swapSushiV3Single(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.UniswapV2) { - _swapUniV2Like(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.UniswapV2FoT) { - _swapUniV2LikeFoT(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.SushiV3Multi) { - _swapSushiV3Multi(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.SushiV3Single) { + // _swapSushiV3Single(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.UniswapV2) { + // _swapUniV2Like(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.UniswapV2FoT) { + // _swapUniV2LikeFoT(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.SushiV3Multi) { + // _swapSushiV3Multi(_swapData[i], destinationAddress); } else if (_swapData[i].dexType == DexType.UniswapV3Multi) { _swapUniV3Multi(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.Aerodrome) { - _swapDrome(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.AerodromeFoT) { - _swapDromeFoT(_swapData[i], destinationAddress); - } else if (_swapData[i].dexType == DexType.UniswapV2Ether) { - _swapEtherOnUniV2Like(_swapData[i], _etherAmount, destinationAddress); } + // } else if (_swapData[i].dexType == DexType.Aerodrome) { + // _swapDrome(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.AerodromeFoT) { + // _swapDromeFoT(_swapData[i], destinationAddress); + // } else if (_swapData[i].dexType == DexType.UniswapV2Ether) { + // _swapEtherOnUniV2Like(_swapData[i], _etherAmount, destinationAddress); + // } //@audit ADJUSTED uint256 postBalance = _swapData[i].toToken == address(0) ? address(this).balance : IERC20(_swapData[i].toToken).balanceOf(address(this));