From d78c59e7ebf13cd75fb8c9856f3c014754dc2ec6 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar <thrilok2000@gmail.com> Date: Wed, 16 Mar 2022 19:55:47 +0400 Subject: [PATCH] fixed bug on V2 to v3 migration --- .../connectors/aave/v2-to-v3-import/helpers.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contracts/avalanche/connectors/aave/v2-to-v3-import/helpers.sol b/contracts/avalanche/connectors/aave/v2-to-v3-import/helpers.sol index d53dba5a..a47a8131 100644 --- a/contracts/avalanche/connectors/aave/v2-to-v3-import/helpers.sol +++ b/contracts/avalanche/connectors/aave/v2-to-v3-import/helpers.sol @@ -98,6 +98,16 @@ contract _AaveHelper is Helper { data.stableBorrowAmts = new uint256[]( inputData.borrowTokens.length ); + data.variableBorrowAmtsWithFee = new uint256[]( + inputData.borrowTokens.length + ); + data.stableBorrowAmtsWithFee = new uint256[]( + inputData.borrowTokens.length + ); + data.data.totalBorrowAmtsWithFee = new uint256[]( + inputData.borrowTokens.length + ); + data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length); for (uint256 i = 0; i < inputData.borrowTokens.length; i++) { for (uint256 j = i; j < inputData.borrowTokens.length; j++) {