Fixed withdraw bug

This commit is contained in:
Thrilok kumar 2020-08-31 14:58:46 +05:30 committed by GitHub
parent d383ec4e3a
commit 5f58d8eedc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);