Skip to content

Commit

Permalink
Remove unnecessary small loss from migration
Browse files Browse the repository at this point in the history
  • Loading branch information
chefnomi committed Sep 1, 2020
1 parent ed0c26c commit d76898b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/uniswapv2/UniswapV2Pair.sol
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ contract UniswapV2Pair is UniswapV2ERC20 {
} else {
require(migrator == address(0), "Must not have migrator");
liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
_mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
}
_mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
} else {
liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
}
Expand Down

0 comments on commit d76898b

Please sign in to comment.