vm.warp in forge script --broadcast only affects the local simulation phase, not the actual Anvil node. The pool.observe([300,0]) call in recenter() therefore reverted with OLD when Forge pre-flighted the broadcast transactions on Anvil. Fix: - Remove the vm.warp + 2-recenter + SeedSwapper VWAP bootstrap from DeployLocal.sol (only contract deployment now, simpler and reliable). - Add bootstrap_vwap() to bootstrap-common.sh that uses Anvil RPC evm_increaseTime + evm_mine to advance chain time before each recenter, then executes a 0.5 ETH WETH->KRK seed swap between them. - Call bootstrap_vwap() before fund_liquidity_manager() in both containers/bootstrap.sh and ci-bootstrap.sh so the LM is seeded with thin positions (1 ETH) during bootstrap, ensuring the 0.5 ETH swap moves the price >400 ticks (amplitude gate). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| harb-evaluator | ||
| bootstrap-common.sh | ||
| build-ci-images.sh | ||
| build-kraiken-lib.sh | ||
| ci-bootstrap.sh | ||
| dev.sh | ||
| quick-screenshot.mjs | ||
| review-poll.sh | ||
| review-pr.sh | ||
| run-usertest.sh | ||
| screenshot-stake-page.mjs | ||
| sync-tax-rates.mjs | ||
| wait-for-service.sh | ||
| watch-kraiken-lib.sh | ||