mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Fix on polygon
This commit is contained in:
parent
d78c59e7eb
commit
e718e7c044
|
@ -104,11 +104,11 @@ contract _AaveHelper is Helper {
|
||||||
data.stableBorrowAmtsWithFee = new uint256[](
|
data.stableBorrowAmtsWithFee = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
data.data.totalBorrowAmtsWithFee = new uint256[](
|
data.totalBorrowAmtsWithFee = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
|
||||||
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
||||||
|
|
||||||
for (uint256 i = 0; i < inputData.borrowTokens.length; i++) {
|
for (uint256 i = 0; i < inputData.borrowTokens.length; i++) {
|
||||||
for (uint256 j = i; j < inputData.borrowTokens.length; j++) {
|
for (uint256 j = i; j < inputData.borrowTokens.length; j++) {
|
||||||
if (j != i) {
|
if (j != i) {
|
||||||
|
|
|
@ -98,6 +98,15 @@ contract _AaveHelper is Helper {
|
||||||
data.stableBorrowAmts = new uint256[](
|
data.stableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.variableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
|
data.stableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
|
data.totalBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
||||||
for (uint256 i = 0; i < inputData.borrowTokens.length; i++) {
|
for (uint256 i = 0; i < inputData.borrowTokens.length; i++) {
|
||||||
for (uint256 j = i; j < inputData.borrowTokens.length; j++) {
|
for (uint256 j = i; j < inputData.borrowTokens.length; j++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user