- Guard final drift sample with `idx % LOG_INTERVAL != 0` to prevent double-counting stats when totalReplayed is an exact multiple of LOG_INTERVAL (the loop's _logCheckpoint already fired for that state) - Hoist pool.slot0() before the guard and pass finalSqrtPrice/finalTick to _logSummary(), eliminating the redundant slot0 read inside it Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| BacktestRunner.s.sol | ||
| EventReplayer.sol | ||
| fetch-events.ts | ||
| MockToken.sol | ||
| package.json | ||
| ShadowPoolDeployer.sol | ||
| tsconfig.json | ||