Skip to content

chore(solana): compress verbose comment blocks (comments only)#489

Merged
anderdc merged 1 commit into
contract-v2from
chore/solana-terse-comments
Jun 22, 2026
Merged

chore(solana): compress verbose comment blocks (comments only)#489
anderdc merged 1 commit into
contract-v2from
chore/solana-terse-comments

Conversation

@LandynDev

Copy link
Copy Markdown
Collaborator

Tightens the comment "books" across the swap-manager program to the project's terse house style. Comments only — zero code changes.

What

  • Multi-line prose blocks compressed to 1-2 lines across 15 files
  • Kept the WHY: invariants, security rationale (busy lock, bait-and-switch defense, rate-swing total-loss bug, anti-thrash floor, vault invariant)
  • Dropped: restated mechanics the code already shows, phase numbers, and SOLANA_MIGRATION_RESEARCH.md §N / ink!-mirror cross-references

Safety

  • Verified mechanically: with comments stripped, every changed file is byte-identical to contract-v2 — no code line changed, moved, or reindented
  • cargo check clean
  • No formatter run (deliberately — local rustfmt disagrees with the repo's formatting and would add thousands of lines of noise)

Net: −232 / +146 lines, all comments.

Tighten multi-line comment books across the swap-manager program to 1-2 lines,
keeping the why (invariants, security rationale) and dropping restated mechanics,
phase numbers, and doc cross-references. No code changes — verified each file is
byte-identical with comments stripped; host cargo check clean.
@anderdc anderdc merged commit 91ab581 into contract-v2 Jun 22, 2026
@anderdc anderdc deleted the chore/solana-terse-comments branch June 22, 2026 18:32
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