harb/onchain/test
openhands 42b4bf4149 fix: Shift field silently ignored — dyadic rational inputs effectively unsupported (#606)
Add require(shift == 0) guards to Optimizer.calculateParams and
OptimizerV3.calculateParams so non-zero shifts revert instead of being
silently discarded.  OptimizerV3Push3 already had this guard.

Update IOptimizer.sol NatSpec to document that shift is reserved for
future use and must be 0 in all current implementations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 11:42:50 +00:00
..
abstracts fix: guard int128 overflow in ThreePositionStrategy mirror tick (#622) 2026-03-20 02:46:30 +00:00
helpers fix: _scrapePositions: unguarded safeTransfer to address(0) when feeDestination unset (#624) 2026-03-20 01:05:05 +00:00
libraries Add Solidity linting with solhint, Foundry formatter, and pre-commit hooks (#51) 2025-10-04 15:17:09 +02:00
mocks fix: feat: Push3 input redesign — normalized indicators instead of raw protocol values (#635) (#649) 2026-03-13 07:53:46 +01:00
EthScarcityAbundance.t.sol fix: address AI review findings for #706 recenterAccess removal 2026-03-14 09:15:48 +00:00
FitnessEvaluator.t.sol fix: mint_lp and burn_lp not soft-failing in attack execution (#630) 2026-03-20 00:23:58 +00:00
FuzzingAnalyzerBugs.t.sol fix: address AI review findings for #706 recenterAccess removal 2026-03-14 09:15:48 +00:00
Kraiken.t.sol fix: add symmetric InvalidAddress guard to setLiquidityManager (#935) 2026-03-18 09:45:43 +00:00
LiquidityManager.t.sol fix: _scrapePositions: unguarded safeTransfer to address(0) when feeDestination unset (#624) 2026-03-20 01:05:05 +00:00
Optimizer.t.sol fix: Shift field silently ignored — dyadic rational inputs effectively unsupported (#606) 2026-03-20 11:42:50 +00:00
OptimizerV3Push3.t.sol fix: Shift field silently ignored — dyadic rational inputs effectively unsupported (#606) 2026-03-20 11:42:50 +00:00
ReplayProfitableScenario.t.sol fix: address AI review findings for #706 recenterAccess removal 2026-03-14 09:15:48 +00:00
Stake.t.sol fix: Test coverage: Stake.sol to 100% (#284) 2026-02-26 03:59:20 +00:00
SupplyCorruption.t.sol fix: address AI review findings for #706 recenterAccess removal 2026-03-14 09:15:48 +00:00
VWAPFloorProtection.t.sol fix: address AI review findings for #706 recenterAccess removal 2026-03-14 09:15:48 +00:00
VWAPTracker.t.sol fix: Backtesting #5: Position tracking + P&L metrics (#319) 2026-02-27 11:23:18 +00:00