mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
fixed some more TODOs
This commit is contained in:
parent
3f5bd4f3ac
commit
3732f562bd
|
@ -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 {
|
function deposit(address[] calldata tokens, uint[] calldata amts) external payable {
|
||||||
uint _length = tokens.length;
|
uint _length = tokens.length;
|
||||||
require(_length == amts.length, "invalid-length");
|
require(_length == amts.length, "invalid-length");
|
||||||
|
|
|
@ -70,9 +70,9 @@ abstract contract Helpers is DSMath, Stores, Variables {
|
||||||
|
|
||||||
totalBorrow[i] = add(stableBorrow[i], variableBorrow[i]);
|
totalBorrow[i] = add(stableBorrow[i], variableBorrow[i]);
|
||||||
if (totalBorrow[i] > 0) {
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user