mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
Fixed withdraw bug
This commit is contained in:
parent
d383ec4e3a
commit
5f58d8eedc
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user