After a buy→sell round-trip the net price movement is near zero, so recenter() reverts with "amplitude not reached" and aborts the whole AttackRunner script. Wrap the recenter() call in a try/catch so amplitude failures are caught and logged as a skipped step rather than propagating as a fatal revert. When recenter is skipped, no state snapshot is emitted and the attack sequence continues — matching the intended semantics: round-trip trading should not cause the fitness scorer to crash. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backtesting | ||
| BaseDeploy.sol | ||
| DeployBase.sol | ||
| DeployBaseMainnet.sol | ||
| DeployBaseSepolia.sol | ||
| DeployLocal.sol | ||
| LmTotalEth.s.sol | ||
| UpgradeOptimizer.sol | ||