Fixed withdraw bug in eth pool

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

View File

@ -171,7 +171,7 @@ contract PoolToken is ReentrancyGuard, ERC20Pausable, DSMath {
_burnAmt = wmul(tknAmt, exchangeRate);
_tknAmt = tknAmt;
}
require(tknAmt <= poolBal, "not-enough-liquidity-available");
require(_tknAmt <= poolBal, "not-enough-liquidity-available");
tokenBalance = sub(tokenBalance, _tknAmt);