mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
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:
parent
44fc1e812f
commit
bd03d6e709
|
@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user