Repository navigation
chore: scrub Balancer residue missed by #2043 - #2044
Merged
Merged
Conversation
#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]>
Gas snapshotNo gas changes vs base. |
Contracts coverageLine coverage: 90.61% (2394/2642 lines) |
There was a problem hiding this comment.
🟢 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.
Coverage reportTotal: 82.96% (was 82.96%, ● 0.00%) — 79873/96279 lines No Rust files changed in this PR. History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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— thesolidity-fork-testjob still declaredARBITRUM_RPC_URLandSEPOLIA_RPC_URLand documented them as feedingBuybackBurnerBalancerV3.fork,BuybackBurnerBalancerV3.swapburn.forkandGenesisBuybackActivationBalancer.fork— all three deleted, along with their[rpc_endpoints]aliases. Exactly one fork suite remains (GenesisBuybackActivation.fork, onARBITRUM_SEPOLIA_RPC_URL). Dropped both dead secrets from theenv:block, thefor v in …loop and the stepif:guard, and rewrote the comments for a single suite.Three comment fixes came out of review rather than the mechanical edit:
[rpc_endpoints]alias" was false — the alias isarbitrum_sepoliaand it interpolatesARBITRUM_SEPOLIA_RPC_URL. Harmless as a loose plural with three entries; a wrong identity claim with one.CLAUDE.md's present-tense-canon rule bans, and which the next step contradicts.forge testexits 0 on0 passed; 0 failed; 3 skipped. The comment now claims only what the count proves.adr/_build/part-4-tokenomics.md— hand-maintained book divider (aBOOK_SRCSinput, so it ships inadrs-book.pdf) still said "a Balancer V3 protocol-owned-liquidity strategy". Now matchesadr/architecture.mdand ADR 018's title.contracts/README.md—BuybackVenueLibis no longer a venue dispatch; it is the anti-drift seam betweenBaseProtocolDeploy._activateBuybackandActivateBuyback.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.solhad drifted earlier) and named the two libraries the prose list was missing..coderabbit.yaml— dropped "For Permit2 paths scrutinize the signature/allowance assumptions."IPermit2existed 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_URLandSEPOLIA_RPC_URLare now referenced nowhere and can be revoked.Follow-ups (not in this PR)
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 theif: 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/andwebsite/still describe a "Balancer V3 80/20" pool.finance/notebooks/_shared/params.pyis a derived materialization of the ADRs, so it now contradicts ADR 018 (80/20 weighted-pool math and thepol_seed_shareearmark 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