minor fix

This commit is contained in:
Thrilok kumar 2022-09-03 01:58:07 +05:30
parent 15b978a577
commit c4c44a9b2b

View File

@ -123,7 +123,7 @@ abstract contract Helpers is DSMath, Basic {
token_
);
if (token_ == getBaseToken(market)) {
if (token_ == getBaseToken(params.market)) {
//if there are supplies, ensure withdrawn amount is not greater than supplied i.e can't borrow using withdraw.
if (amt_ == uint256(-1)) {
amt_ = initialBal;