mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
minor fix
This commit is contained in:
parent
ca187d5fe5
commit
1133f10fbc
|
@ -85,10 +85,19 @@ contract AaveHelpers is Helper {
|
||||||
data.variableBorrowAmts = new uint256[](
|
data.variableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.variableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.stableBorrowAmts = new uint256[](
|
data.stableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.stableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
||||||
|
data.totalBorrowAmtsWithFee = 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) {
|
||||||
|
@ -122,6 +131,9 @@ contract AaveHelpers is Helper {
|
||||||
data.stableBorrowAmts[i],
|
data.stableBorrowAmts[i],
|
||||||
inputData.flashLoanFees[i]
|
inputData.flashLoanFees[i]
|
||||||
);
|
);
|
||||||
|
data.variableBorrowAmtsWithFee[i] = data.variableBorrowAmts[
|
||||||
|
i
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
data.totalBorrowAmts[i] = add(
|
data.totalBorrowAmts[i] = add(
|
||||||
|
|
|
@ -86,10 +86,19 @@ contract AaveHelpers is Helper {
|
||||||
data.variableBorrowAmts = new uint256[](
|
data.variableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.variableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.stableBorrowAmts = new uint256[](
|
data.stableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.stableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
||||||
|
data.totalBorrowAmtsWithFee = 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) {
|
||||||
|
|
|
@ -86,10 +86,19 @@ contract AaveHelpers is Helper {
|
||||||
data.variableBorrowAmts = new uint256[](
|
data.variableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.variableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.stableBorrowAmts = new uint256[](
|
data.stableBorrowAmts = new uint256[](
|
||||||
inputData.borrowTokens.length
|
inputData.borrowTokens.length
|
||||||
);
|
);
|
||||||
|
data.stableBorrowAmtsWithFee = new uint256[](
|
||||||
|
inputData.borrowTokens.length
|
||||||
|
);
|
||||||
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
data.totalBorrowAmts = new uint256[](inputData.borrowTokens.length);
|
||||||
|
data.totalBorrowAmtsWithFee = 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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user