mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor fix
This commit is contained in:
parent
15b978a577
commit
c4c44a9b2b
|
@ -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;
|
||||
|
@ -262,7 +262,7 @@ abstract contract Helpers is DSMath, Basic {
|
|||
sellAmt_,
|
||||
address(this)
|
||||
);
|
||||
|
||||
|
||||
uint256 finalCollBal_ = TokenInterface(params.buyAsset).balanceOf(address(this));
|
||||
|
||||
uint256 buyAmt_ = sub(finalCollBal_, initialCollBal_);
|
||||
|
|
Loading…
Reference in New Issue
Block a user