harb/onchain/script
johba 937f2a833b fix: Investigate: adversary parasitic LP extracts 29% from holder, all recenters fail (#517)
Root cause: PRICE_STABILITY_INTERVAL (300s) was too long relative to
MIN_RECENTER_INTERVAL (60s). After any significant trade moving the tick
>1000 positions, the 5-minute TWAP lagged behind the current price by
hundreds of ticks, exceeding MAX_TICK_DEVIATION (50). Recenter reverted
with "price deviated from oracle" for ~285s — creating a window where
the LM could not reposition and adversary parasitic LP could extract
value from passive holders.

Fix: Reduce PRICE_STABILITY_INTERVAL from 300s to 30s. This ensures
TWAP converges within the 60s cooldown while still preventing same-block
manipulation (30s > ~12s Ethereum mainnet block time).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 19:45:35 +00:00
..
backtesting fix: Investigate: adversary parasitic LP extracts 29% from holder, all recenters fail (#517) 2026-03-22 19:45:35 +00:00
BaseDeploy.sol fix: address review feedback for #769 2026-03-19 00:26:04 +00:00
BootstrapVWAPPhase2.s.sol fix: No recovery path if VWAP bootstrap fails mid-sequence (#644) 2026-03-19 22:24:05 +00:00
DeployBase.sol fix: OptimizerV3Push3 as IOptimizer always returns bear defaults — integration risk (#1063) 2026-03-20 20:13:18 +00:00
DeployBaseMainnet.sol fix: correct EOA→contract in FEE_DEST comment (#795) 2026-03-22 02:15:29 +00:00
DeployBaseSepolia.sol Add Solidity linting with solhint, Foundry formatter, and pre-commit hooks (#51) 2025-10-04 15:17:09 +02:00
DeployCommon.sol fix: address AI review findings on VWAP bootstrap PR 2026-03-13 00:12:39 +00:00
DeployLocal.sol fix: DeployLocal.sol v3Factory still uses Base Sepolia address (#714) 2026-03-18 00:31:48 +00:00
LmTotalEth.s.sol Fix PR #540 review findings 2026-03-11 06:28:02 +00:00
UpgradeOptimizer.sol fix: address review feedback for #769 2026-03-19 00:26:04 +00:00