The 0.01 ETH seed swap only moved the tick 127 ticks from the start and 37 ticks from the ANCHOR center — far below the 400-tick minimum amplitude (2 × TICK_SPACING). As a result, the second recenter() always reverted with "amplitude not reached", preventing VWAP bootstrap. Root cause: SEED_SWAP_ETH was 1 % of SEED_LM_ETH. The ANCHOR position holds ~25 % of SEED_LM_ETH as WETH across ~7 200 ticks, so consuming half of that WETH (≈0.125 ETH) is already enough to move the price 3 600 ticks past centre. Fix: raise SEED_SWAP_ETH from 0.01 ether to 0.5 ether (50 % of SEED_LM_ETH), giving a 4× margin over the minimum required. Verified against a Base-Sepolia fork at block 20 000 000 (same environment as CI): VWAP is now bootstrapped and cumulativeVolume > 0 after deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backtesting | ||
| BaseDeploy.sol | ||
| DeployBase.sol | ||
| DeployBaseMainnet.sol | ||
| DeployBaseSepolia.sol | ||
| DeployLocal.sol | ||
| LmTotalEth.s.sol | ||
| UpgradeOptimizer.sol | ||