Skip to content

chore: scrub Balancer residue missed by #2043 - #2044

Merged
thiras merged 1 commit into
mainfrom
chore/scrub-balancer-residue
Sep 17, 2026
Merged

thiras merged 1 commit into
mainfrom
chore/scrub-balancer-residue

Conversation

@thiras

@thiras thiras commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Why

#2043 removed the Balancer V3 buyback venue and promoted Uniswap V3 to the sole canonical TOKEN/USDC POL + buyback venue. It was thorough in contracts/ and the ADRs, but missed the documentation and CI surface around them, and shipped without its own CHANGELOG entry.

What

  • .github/workflows/ci.yml — the solidity-fork-test job still declared ARBITRUM_RPC_URL and SEPOLIA_RPC_URL and documented them as feeding BuybackBurnerBalancerV3.fork, BuybackBurnerBalancerV3.swapburn.fork and GenesisBuybackActivationBalancer.fork — all three deleted, along with their [rpc_endpoints] aliases. Exactly one fork suite remains (GenesisBuybackActivation.fork, on ARBITRUM_SEPOLIA_RPC_URL). Dropped both dead secrets from the env: block, the for v in … loop and the step if: guard, and rewrote the comments for a single suite.

    Three comment fixes came out of review rather than the mechanical edit:

    • "The name matches the [rpc_endpoints] alias" was false — the alias is arbitrum_sepolia and it interpolates ARBITRUM_SEPOLIA_RPC_URL. Harmless as a loose plural with three entries; a wrong identity claim with one.
    • The block carried a past-tense incident narrative ("nobody spotted that no fork RPC secret has ever been configured"), which CLAUDE.md's present-tense-canon rule bans, and which the next step contradicts.
    • "Counting the files is what turns 'configured' into 'actually ran'" is not true: forge test exits 0 on 0 passed; 0 failed; 3 skipped. The comment now claims only what the count proves.
  • adr/_build/part-4-tokenomics.md — hand-maintained book divider (a BOOK_SRCS input, so it ships in adrs-book.pdf) still said "a Balancer V3 protocol-owned-liquidity strategy". Now matches adr/architecture.md and ADR 018's title.

  • contracts/README.md — BuybackVenueLib is no longer a venue dispatch; it is the anti-drift seam between BaseProtocolDeploy._activateBuyback and ActivateBuyback.s.sol. Also re-derived the three counts (interfaces 23 → 19 is refactor(contracts)!: remove Balancer buyback venue, make Uniswap V3 canonical #2043's doing; contracts and *.t.sol had drifted earlier) and named the two libraries the prose list was missing.

  • .coderabbit.yaml — dropped "For Permit2 paths scrutinize the signature/allowance assumptions." IPermit2 existed only for the Balancer swap leg; Uniswap V3 uses a direct ERC20 allowance.

  • CHANGELOG.md — added the missing ### Changed (BREAKING) entry for refactor(contracts)!: remove Balancer buyback venue, make Uniswap V3 canonical #2043.

Action needed after merge

The repo secrets ARBITRUM_RPC_URL and SEPOLIA_RPC_URL are now referenced nowhere and can be revoked.

Follow-ups (not in this PR)

  • The fork job's glob-count guard (matched -eq 0) sits inside the step gated on the secret, so it has never executed, and it is a zero-check — it could not have caught refactor(contracts)!: remove Balancer buyback venue, make Uniswap V3 canonical #2043 deleting three of four suites. Hoisting the count into the if: always() step and asserting an exact expected count would close that. Pre-existing, unrelated to Balancer, and it changes the job's failure semantics, so it belongs in its own PR.
  • finance/, internal/ and website/ still describe a "Balancer V3 80/20" pool. finance/notebooks/_shared/params.py is a derived materialization of the ADRs, so it now contradicts ADR 018 (80/20 weighted-pool math and the pol_seed_share earmark ADR 026 no longer has). Separate repos, separate PRs.

Verification

check-yaml, markdownlint, trailing-whitespace, end-of-file-fixer, make -C adr check-refs (1719 anchors resolve) and the four repo-shape guard scripts all pass. No Rust or Solidity source changed.

🤖 Generated with Claude Code

#2043 removed the Balancer V3 buyback venue and made Uniswap V3 canonical, but
left the CI fork-test job wired to the deleted Balancer suites, the ADR book
chapter divider naming Balancer, a stale `BuybackVenueLib` description in
`contracts/README.md`, and no CHANGELOG entry for the change itself.

- `ci.yml`: drop the dead `ARBITRUM_RPC_URL` and `SEPOLIA_RPC_URL` secrets from
  the `solidity-fork-test` job. One fork suite remains,
  `GenesisBuybackActivation.fork` on `ARBITRUM_SEPOLIA_RPC_URL`, which is the
  only alias `contracts/foundry.toml` still carries. Rewrite the comments for a
  single suite: correct the false "the name matches the `[rpc_endpoints]` alias"
  claim (the alias interpolates the var), drop the past-tense incident
  narrative, and stop claiming the glob count proves a test body ran — `forge
  test` exits 0 on an all-skipped suite.
- `adr/_build/part-4-tokenomics.md`: Balancer V3 becomes Uniswap V3 50/50,
  matching `adr/architecture.md` and ADR 018.
- `contracts/README.md`: `BuybackVenueLib` no longer dispatches on a venue.
  Re-derive the `src/` / `interfaces/` / `test/` counts and name all four
  libraries.
- `.coderabbit.yaml`: drop the Permit2 review instruction. `IPermit2` was
  Balancer-only and went with it.
- `CHANGELOG.md`: add the missing #2043 entry.

The repo secrets `ARBITRUM_RPC_URL` and `SEPOLIA_RPC_URL` are now unreferenced
and can be revoked.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 17, 2026 19:35
@github-actions

Copy link
Copy Markdown

Gas snapshot

No gas changes vs base.

@github-actions

Copy link
Copy Markdown

Contracts coverage

Line coverage: 90.61% (2394/2642 lines)
▲ +0.00pp vs base (90.61% → 90.61%)
Run: 35265776683

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Scrubs obsolete Balancer references following #2043.

Changes:

  • Simplifies fork-test CI to the remaining suite.
  • Updates contract and tokenomics documentation.
  • Adds the breaking changelog entry and removes obsolete review guidance.
File summaries
File Summary
contracts/README.md Updates counts and library documentation.
CHANGELOG.md Adds the breaking-change entry.
adr/_build/part-4-tokenomics.md Replaces obsolete Balancer terminology.
.github/workflows/ci.yml Removes obsolete RPC secrets and fork references.
.coderabbit.yaml Removes obsolete Permit2 guidance.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Coverage report

Total: 82.96% (was 82.96%, ● 0.00%) — 79873/96279 lines

No Rust files changed in this PR.

History
Commit Total Δ vs base
c6c969e (HEAD) 82.96% ● 0.00%

@thiras
thiras merged commit 32f5bff into main Sep 17, 2026
26 checks passed
@thiras
thiras deleted the chore/scrub-balancer-residue branch September 17, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants