Skip to content

Commit

Permalink
fixup! fix(hardhat): fix uniswapV2LikeExactInput with eth input
Browse files Browse the repository at this point in the history
fix(hardhat): fix bad merge
  • Loading branch information
xykota committed Nov 9, 2023
1 parent d30086a commit 28fcfd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions packages/hardhat/contracts/facets/UniV2LikeFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
3 changes: 1 addition & 2 deletions packages/hardhat/test/foundry/UniV2LikeFacet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ contract UniV2LikeFacetTest is UniV2LikeFacetTestBase {
tokens: tokens,
pools: pools,
poolFeesBps: poolFeesBps
}),
emptyPermitParams
})
);
}

Expand Down

0 comments on commit 28fcfd4

Please sign in to comment.