From 3732f562bda47d036a370fe6d1158a3b3ed6feaa Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Wed, 14 Apr 2021 04:22:56 +0530 Subject: [PATCH] fixed some more TODOs --- contracts/receivers/aave-v2-receiver/main.sol | 1 - contracts/senders/aave-v2-migrator/helpers.sol | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/contracts/receivers/aave-v2-receiver/main.sol b/contracts/receivers/aave-v2-receiver/main.sol index b8589c9..fc4a6c1 100644 --- a/contracts/receivers/aave-v2-receiver/main.sol +++ b/contracts/receivers/aave-v2-receiver/main.sol @@ -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"); diff --git a/contracts/senders/aave-v2-migrator/helpers.sol b/contracts/senders/aave-v2-migrator/helpers.sol index 6cf27ef..85a5159 100644 --- a/contracts/senders/aave-v2-migrator/helpers.sol +++ b/contracts/senders/aave-v2-migrator/helpers.sol @@ -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)); } }