Skip to content

Commit

Permalink
comment-out DexSwap.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkron committed Jul 15, 2024
1 parent bf2ae0a commit 27d79cf
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/hardhat/contracts/DexSwap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 27d79cf

Please sign in to comment.