diff --git a/packages/hardhat/contracts/facets/UniV2LikeFacet.sol b/packages/hardhat/contracts/facets/UniV2LikeFacet.sol index c5aa28aa..67fd3e67 100644 --- a/packages/hardhat/contracts/facets/UniV2LikeFacet.sol +++ b/packages/hardhat/contracts/facets/UniV2LikeFacet.sol @@ -193,10 +193,6 @@ contract UniV2LikeFacet is IUniV2Like { tokens[0] = address(s.weth); } - if (isFromEth) { - params.tokens[0] = address(s.weth); - } - uint256 tokenOutBalancePrev = isToEth ? address(this).balance : IERC20(tokens[poolLength]).balanceOf(address(this)); diff --git a/packages/hardhat/test/foundry/UniV2LikeFacet.t.sol b/packages/hardhat/test/foundry/UniV2LikeFacet.t.sol index 4c5b744f..3af16df4 100644 --- a/packages/hardhat/test/foundry/UniV2LikeFacet.t.sol +++ b/packages/hardhat/test/foundry/UniV2LikeFacet.t.sol @@ -162,8 +162,7 @@ contract UniV2LikeFacetTest is UniV2LikeFacetTestBase { tokens: tokens, pools: pools, poolFeesBps: poolFeesBps - }), - emptyPermitParams + }) ); }