Forge resets block.timestamp to its pre-warp value after each state-changing call (e.g. recenter()). The second vm.warp(block.timestamp + 301) in the VWAP bootstrap was therefore warping to the same timestamp as the first warp, so lastRecenterTime + 60 > block.timestamp and the second recenter() reverted with "recenter cooldown". Fix: store ts = block.timestamp + 301 before the first warp and increment it explicitly (ts += 301) before the second warp, mirroring the same pattern applied to VWAPFloorProtection.t.sol and SupplyCorruption.t.sol. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backtesting | ||
| BaseDeploy.sol | ||
| DeployBase.sol | ||
| DeployBaseMainnet.sol | ||
| DeployBaseSepolia.sol | ||
| DeployCommon.sol | ||
| DeployLocal.sol | ||
| LmTotalEth.s.sol | ||
| UpgradeOptimizer.sol | ||