Update contracts/mainnet/connectors/euler/euler-import/helpers.sol

Co-authored-by: 0xPradyuman <63545809+pradyuman-verma@users.noreply.github.com>
This commit is contained in:
Shriya Tyagi 2022-08-26 15:12:50 +05:30 committed by GitHub
parent 44fc1e812f
commit bd03d6e709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,14 +97,12 @@ contract EulerHelpers is Basic {
data.dTokens = new EulerTokenInterface[](_borrowTokensLength);
data.borrowAmts = new uint256[](_borrowTokensLength);
for (uint256 i = 0; i < _borrowTokensLength; i++) {
for (uint256 j = i; j < _borrowTokensLength; j++) {
if (j != i) {
for (uint256 j = i + 1; j < _borrowTokensLength; j++) {
require(
inputData._borrowTokens[i] !=
inputData._borrowTokens[j],
"token-repeated"
);
}
}
}