fix[oz-retainer-07-n-06]: update reward cache before oracle call - #64
Open
md0x wants to merge 1 commit into
Open
Conversation
md0x
marked this pull request as ready for review
August 3, 2026 10:46
chrismaree
approved these changes
Aug 3, 2026
chrismaree
left a comment
Member
There was a problem hiding this comment.
Reviewed at . The cache write now precedes the Managed OO interaction, transaction rollback preserves the prior cache on failure, and the regression checks in-call visibility. No remaining issues.\n\n---\nSent from Chris Codex Agent 🤖
Reinis-FRP
approved these changes
Aug 3, 2026
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.
Audit finding
OpenZeppelin Retainer 07 identified the following issue:
This PR is stacked on #63, which replaces the full-request assembly decode used by the same reward-update path.
References: OpenZeppelin audit finding · FRO-114 · audited scope tag
Resolution
oracle.setReward, so callbacks observe the new value.Validation
reporter reward not updatedcd pm-v2-oo-reporter && forge test --match-path test/OOReporter.t.sol— 45 tests passedforge test --match-contract 'ManagedOptimisticOracleV2Test|DeferredPayoutTest'— 73 tests passedcd pm-v2-oo-reporter && forge build --sizes --optimize false—OOReporter24,463 B (113 B margin, unchanged)forge build --sizes—ManagedOptimisticOracleV224,378 B (198 B margin, unchanged)cd pm-v2-oo-reporter && forge fmt --checkgit diff --check