You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Non-blocking follow-ups surfaced by the review of #1086 (deploy-time genesis buyback activation). None block the testnet deploy (#1083); the merge already fixed the one blocking bug (Balancer seed BPT custody).
1. Wire the Uniswap genesis fork test into CI
contracts/test/GenesisBuybackActivation.fork.t.sol self-skips unless ARBITRUM_SEPOLIA_RPC_URL is set, but the CI solidity fork test job only exports SEPOLIA_RPC_URL / ARBITRUM_RPC_URL. So the demo-critical Uniswap genesis-activation path (Arbitrum Sepolia) has zero executable coverage in CI — only the Balancer/Ethereum-Sepolia suite runs. Add the ARBITRUM_SEPOLIA_RPC_URL secret + env passthrough in .github/workflows/ci.yml. (Verified passing locally against live Arb Sepolia at merge time, so this is a coverage gap, not a known failure.)
2. De-duplicate activation logic across the two scripts
contracts/script/ActivateBuyback.s.sol and BaseProtocolDeploy/DeployProtocol carry parallel copies of: the steady-state FeeRouter split constants [6000,3000,1000], the canonical Permit2 address literal, the venue-string dispatch (keccak256("uniswap"|"balancer") vs the BuybackVenue enum + _readVenue), and the per-venue burner Config construction. A drift between them means the in-script genesis activation and the post-deploy runbook can wire burners differently from the same inputs. Extract a shared venue-dispatch + Config builder both entry points call.
3. Altitude: BuybackActivation grab-bag struct
BuybackActivation is a flat struct holding both venues' mutually-exclusive fields; setting the wrong venue's fields (e.g. balVault while venue == UNISWAP) is silently dropped rather than rejected. Consider venue-scoped sub-structs (or a per-venue seed/deploy interface) so cross-wiring is structurally impossible.
Automated triage note for a later run: this issue currently combines three independently mergeable outcomes. Item 1 also needs an external repository secret, so a code-only PR cannot satisfy it end to end; item 2 is a shared-script refactor; item 3 is explicitly only “consider” and leaves the struct design open. Please split these into separate issues (or state exactly which items close this one), and for the de-dup task name the intended shared owner/module and API. Once split, the CI env passthrough and the mechanical shared-builder refactor should each fit the small-agent bar.
Activity
altanoruc commentedon Jul 19, 2026
Automated triage note for a later run: this issue currently combines three independently mergeable outcomes. Item 1 also needs an external repository secret, so a code-only PR cannot satisfy it end to end; item 2 is a shared-script refactor; item 3 is explicitly only “consider” and leaves the struct design open. Please split these into separate issues (or state exactly which items close this one), and for the de-dup task name the intended shared owner/module and API. Once split, the CI env passthrough and the mechanical shared-builder refactor should each fit the small-agent bar.
fix(contracts): close the round-two review findings