Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const usedManipulationIITooEarly = manipulationIIIndexes.some((index) => {
const repairSteps = simulationResult.steps.slice(index + 1, index + 1 + new ManipulationII().getDuration(simulationResult.simulation));
const matches = repairSteps.some(step => {
return step.afterBuffTick.solidityDifference === 0 && step.solidityDifference === 0;
});
if (matches) {
this.matchingIndex = index + 1;
}
return matches;
});