From b3a80dfd3f989688ada7bed341ca7ad775e96211 Mon Sep 17 00:00:00 2001 From: jpick713 <54317750+jpick713@users.noreply.github.com> Date: Tue, 20 Sep 2022 12:27:32 -0400 Subject: [PATCH] allowed for add to be as small as increment --- contracts/BasePool.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/BasePool.sol b/contracts/BasePool.sol index 15209d5..69ae3e7 100644 --- a/contracts/BasePool.sol +++ b/contracts/BasePool.sol @@ -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];