Skip to content

fix(prodfork): replace silent skips with vm.skip + dedup ORACLE_REGISTRY (audit #208 #213)#225

Closed
hardyjosh wants to merge 1 commit into
graphite-base/225from
fix/audit-prodfork-hardening
Closed

fix(prodfork): replace silent skips with vm.skip + dedup ORACLE_REGISTRY (audit #208 #213)#225
hardyjosh wants to merge 1 commit into
graphite-base/225from
fix/audit-prodfork-hardening

Conversation

@hardyjosh

Copy link
Copy Markdown
Collaborator

#213: ProdFork tests used return; in fork-availability modifiers,
making forge report PASSED for tests that never ran an assertion. Replace
with vm.skip(true) so missing fork env or unset prod addresses surface
as SKIPPED in CI output instead of false-green.

#208: ORACLE_REGISTRY address was independently encoded in both
src/lib/LibProdDeploy.sol and test/src/concrete/ProdFork.t.sol's
LibProdOracles. Test now imports from LibProdDeploy so a future
prod-address rotation only requires one edit.

Closes #208, #213.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

@coderabbitai

coderabbitai Bot commented May 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1028446b-dd83-4669-982f-f14bac8e7f0f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/audit-prodfork-hardening

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

hardyjosh commented May 11, 2026

Copy link
Copy Markdown
Collaborator Author

…TRY (audit #208 #213)

#213: ProdFork tests used `return;` in fork-availability modifiers,
making forge report PASSED for tests that never ran an assertion. Replace
with `vm.skip(true)` so missing fork env or unset prod addresses surface
as SKIPPED in CI output instead of false-green.

#208: ORACLE_REGISTRY address was independently encoded in both
`src/lib/LibProdDeploy.sol` and `test/src/concrete/ProdFork.t.sol`'s
`LibProdOracles`. Test now imports from `LibProdDeploy` so a future
prod-address rotation only requires one edit.

Closes #208, #213.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@hardyjosh hardyjosh force-pushed the fix/audit-morpho-decimals-check branch from f3a3434 to e479257 Compare May 11, 2026 20:42
@hardyjosh hardyjosh force-pushed the fix/audit-prodfork-hardening branch from e30bfc0 to 6903113 Compare May 11, 2026 20:42
@hardyjosh hardyjosh changed the base branch from fix/audit-morpho-decimals-check to graphite-base/225 May 11, 2026 21:22
@hardyjosh

Copy link
Copy Markdown
Collaborator Author

Folded into PR #222 (refactor: AggregatorV2V3Interface) — the vm.skip(true) hardening and LibProdDeploy.ORACLE_REGISTRY dedup now ship with the interface rename that already touches ProdFork.t.sol.

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.

1 participant