mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Fix stack too deep
This commit is contained in:
parent
93e17385f0
commit
fce46257cc
|
@ -1014,12 +1014,14 @@ contract MakerHelpers is AaveV2Helpers {
|
||||||
tokenContract.approve(address(colAddr), amt);
|
tokenContract.approve(address(colAddr), amt);
|
||||||
tokenJoinContract.join(address(this), amt);
|
tokenJoinContract.join(address(this), amt);
|
||||||
|
|
||||||
|
int intAmt = toInt(convertTo18(tokenJoinContract.dec(), amt));
|
||||||
|
|
||||||
VatLike(managerContract.vat()).frob(
|
VatLike(managerContract.vat()).frob(
|
||||||
ilk,
|
ilk,
|
||||||
urn,
|
urn,
|
||||||
address(this),
|
_this,
|
||||||
address(this),
|
_this,
|
||||||
toInt(convertTo18(tokenJoinContract.dec(), amt)),
|
intAmt,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1124,10 +1126,10 @@ contract RefinanceResolver is MakerHelpers {
|
||||||
uint collateralFee;
|
uint collateralFee;
|
||||||
uint debtFee;
|
uint debtFee;
|
||||||
bool isFrom;
|
bool isFrom;
|
||||||
|
string colType;
|
||||||
address token;
|
address token;
|
||||||
uint debt;
|
uint debt;
|
||||||
uint collateral;
|
uint collateral;
|
||||||
string colType;
|
|
||||||
uint borrowRateMode;
|
uint borrowRateMode;
|
||||||
uint paybackRateMode;
|
uint paybackRateMode;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user