From 6c6d83e1815cbc5b6e5db6f58f67d339342d43e0 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Wed, 14 Apr 2021 04:40:01 +0530 Subject: [PATCH] target update --- contracts/receivers/aave-v2-receiver/helpers.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/receivers/aave-v2-receiver/helpers.sol b/contracts/receivers/aave-v2-receiver/helpers.sol index edd17fb..825883b 100644 --- a/contracts/receivers/aave-v2-receiver/helpers.sol +++ b/contracts/receivers/aave-v2-receiver/helpers.sol @@ -106,14 +106,14 @@ abstract contract Helpers is Stores, DSMath, Variables { for (uint j = 0; j < num; j++) { uint k = j * 2; if (i < num - 1) { - targets[k] = "AAVE-V1-A"; + targets[k] = "AAVE-V2-A"; castData[k] = abi.encodeWithSignature("borrow(address,uint256,uint256,uint256,uint256)", _token, splitAmt, 2, 0, 0); - targets[k+1] = "AAVE-V1-A"; + targets[k+1] = "AAVE-V2-A"; castData[k+1] = abi.encodeWithSignature("deposit(address,uint256,uint256,uint256,uint256)", _token, splitAmt, 2, 0, 0); } else { - targets[k] = "AAVE-V1-A"; + targets[k] = "AAVE-V2-A"; castData[k] = abi.encodeWithSignature("borrow(address,uint256,uint256,uint256,uint256)", _token, finalSplit, 2, 0, 0); - targets[k+1] = "AAVE-V1-A"; + targets[k+1] = "AAVE-V2-A"; castData[k+1] = abi.encodeWithSignature("deposit(address,uint256,uint256,uint256,uint256)", _token, splitAmt, 2, 0, 0); } }