- Cache pool.tickSpacing() as immutable in EventReplayer constructor to avoid a repeated external call per _replayMint() invocation - Rename driftCount → driftCheckpoints for consistency with log label - Add sqrtDriftBps to the per-checkpoint progress log line, using the now-live lastExpectedSqrtPrice field (previously written but never read) - Guard _replaySwap(): skip and count events where amountSpecified ≤ 0, which would silently flip exact-input into exact-output mode - Add a final drift sample after the while-loop for trailing events not covered by the last LOG_INTERVAL checkpoint - Move EventReplayer construction outside the broadcast block in BacktestRunner (it uses vm.* cheat codes incompatible with real RPC) - Change second vm.closeFile() from try/catch to a direct call so errors surface rather than being silently swallowed 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 | ||