Move overflow guard to the actual vulnerable site: ThreePositionStrategy._computeFloorTickWithSignal() line 262 where vwapX96 >> 32 is cast to int128 for _tickAtPriceRatio. Values exceeding int128.max now skip mirror tick (fallback to scarcity/clamp) instead of reverting. Remove incorrect require from Optimizer._buildInputs() which guarded a non-existent int256 cast path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| PriceOracle.sol | ||
| ThreePositionStrategy.sol | ||