From 5f58d8eedc1eed065e540d4d4b4cdf50982bbbbf Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Mon, 31 Aug 2020 14:58:46 +0530 Subject: [PATCH] Fixed withdraw bug --- contracts/pools/erc20.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/pools/erc20.sol b/contracts/pools/erc20.sol index d183790..30b4cbf 100644 --- a/contracts/pools/erc20.sol +++ b/contracts/pools/erc20.sol @@ -175,7 +175,7 @@ contract PoolToken is ReentrancyGuard, DSMath, ERC20Pausable { _burnAmt = wmul(tknAmt, exchangeRate); _tknAmt = tknAmt; } - require(tknAmt <= poolBal, "not-enough-liquidity-available"); + require(_tknAmt <= poolBal, "not-enough-liquidity-available"); tokenBalance = sub(tokenBalance, _tknAmt);