Skip to content

Commit

Permalink
allowed for add to be as small as increment
Browse files Browse the repository at this point in the history
  • Loading branch information
jpick713 authored Sep 20, 2022
1 parent b4bc06d commit b3a80df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/BasePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ abstract contract BasePool is IBasePool {
)
{
uint256 _totalLiquidity = getTotalLiquidity();
if (_inAmountAfterFees < minLiquidity) revert InvalidAddAmount();
if (_inAmountAfterFees < minLiquidity / 1000) revert InvalidAddAmount();
// retrieve lpInfo of sender
LpInfo storage lpInfo = addrToLpInfo[_onBehalfOf];

Expand Down

0 comments on commit b3a80df

Please sign in to comment.