harb/scripts
openhands 38bc0f7057 fix: address AI review findings on VWAP bootstrap PR
SPDX license:
- Restore GPL-3.0-or-later SPDX header to DeployBase.sol (removed by
  the em-dash sed fix in an earlier commit).

SeedSwapper deduplication:
- Extract SeedSwapper into onchain/script/DeployCommon.sol — a single
  canonical definition shared by both deploy scripts.  This eliminates
  duplicate Foundry artifacts (previously both DeployLocal.sol and
  DeployBase.sol produced a SeedSwapper artifact, causing ambiguity for
  verification and coverage tools).
- Remove inline SeedSwapper and redundant IWETH9 import from
  DeployLocal.sol and DeployBase.sol; add `import "./DeployCommon.sol"`.

SeedSwapper hardening (in DeployCommon.sol):
- Replace magic-literal price sentinels with named constants
  SQRT_PRICE_LIMIT_MIN / SQRT_PRICE_LIMIT_MAX.
- Wrap both weth.transfer() calls with require() so a non-standard
  WETH9 false-return is caught rather than silently ignored.
- Add post-swap WETH sweep in executeSeedBuy(): if the price limit is
  reached before the full input is spent, the residual WETH balance is
  returned to `recipient` instead of being stranded in the contract.

bootstrap-common.sh:
- Normalise cumulativeVolume output through `cast to-dec` before the
  string comparison, guarding against a future change in cast output
  format (decimal vs hex).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 00:12:39 +00:00
..
harb-evaluator fix: address review findings — CREATE2 guard, transition test, docs 2026-03-12 17:13:50 +00:00
bootstrap-common.sh fix: address AI review findings on VWAP bootstrap PR 2026-03-13 00:12:39 +00:00
build-ci-images.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
build-kraiken-lib.sh tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
ci-bootstrap.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
dev.sh feat: add Otterscan block explorer to dev environment (#109) 2026-02-13 14:55:07 +00:00
quick-screenshot.mjs fill stake e2e 2025-10-11 17:54:49 +00:00
review-poll.sh fix: address review — migration comment, link ring buffer constants (#170) 2026-02-22 18:56:36 +00:00
review-pr.sh fix: address review — migration comment, link ring buffer constants (#170) 2026-02-22 18:56:36 +00:00
run-usertest.sh feat/ponder-lm-indexing (#142) 2026-02-18 00:19:05 +01:00
screenshot-stake-page.mjs fill stake e2e 2025-10-11 17:54:49 +00:00
sync-tax-rates.mjs tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
wait-for-service.sh refactor: consolidate CI and local dev orchestration (#108) 2026-02-03 12:07:28 +01:00
watch-kraiken-lib.sh migrate/podman-to-docker (#92) 2025-11-08 14:08:46 +01:00