fixed some more TODOs

This commit is contained in:
Samyak Jain 2021-04-14 04:22:56 +05:30
parent 3f5bd4f3ac
commit 3732f562bd
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,6 @@ contract MigrateResolver is Helpers, Events {
}
}
// TODO: @mubaris Make this similar to L1 migrator. Have to change ETH by MATIC
function deposit(address[] calldata tokens, uint[] calldata amts) external payable {
uint _length = tokens.length;
require(_length == amts.length, "invalid-length");

View File

@ -70,9 +70,9 @@ abstract contract Helpers is DSMath, Stores, Variables {
totalBorrow[i] = add(stableBorrow[i], variableBorrow[i]);
if (totalBorrow[i] > 0) {
IERC20(_token).approve(address(aave), totalBorrow[i]); // TODO: Approval is to Aave address of atokens address?
IERC20(_token).approve(address(aave), totalBorrow[i]);
}
aave.borrow(_token, totalBorrow[i], 2, 3088, address(this)); // TODO: Borrowing debt to payback
aave.borrow(_token, totalBorrow[i], 2, 3088, address(this));
}
}