Skip to content

Commit

Permalink
fix bad judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed Jul 24, 2024
1 parent e5a97b6 commit fb4f04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/SwapHelperLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ library SwapHelperLib {
uint256 minAmountOut,
address[] memory path
) internal view returns (bool) {
if (path.length == 2) revert InvalidPathLength();
if (path.length != 2) revert InvalidPathLength();
bool existsPairPool = _existsPairPool(
uniswapV2Factory,
path[0],
Expand Down

0 comments on commit fb4f04b

Please sign in to comment.