mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Fix issues
This commit is contained in:
parent
fb89682e6f
commit
9f47cda744
|
@ -1325,7 +1325,7 @@ contract RefinanceResolver is MakerHelpers {
|
|||
AaveV2DataProviderInterface aaveData = getAaveV2DataProvider();
|
||||
|
||||
TokenInterface dai = TokenInterface(getMcdDai());
|
||||
TokenInterface token = TokenInterface(data.token);
|
||||
TokenInterface token = TokenInterface(data.token == getEthAddr() ? getWethAddr() : data.token);
|
||||
|
||||
uint depositAmt;
|
||||
uint borrowAmt;
|
||||
|
@ -1352,8 +1352,8 @@ contract RefinanceResolver is MakerHelpers {
|
|||
|
||||
_compEnterMarkets(2, _ctokens);
|
||||
|
||||
_compDepositOne(data.collateralFee, _ctokens[1], dai, depositAmt);
|
||||
_compBorrowOne(data.debtFee, _ctokens[0], TokenInterface(data.token), borrowAmt, Protocol.Aave, 2);
|
||||
_compDepositOne(data.collateralFee, _ctokens[1], token, depositAmt);
|
||||
_compBorrowOne(data.debtFee, _ctokens[0], dai, borrowAmt, Protocol.Aave, 2);
|
||||
} else {
|
||||
revert("invalid-option");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user