Repository navigation
Reuse resolved state in frozen redemption quotes - #1901
Merged
Merged
Conversation
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.
Frozen through-clock redemption quotes already resolve the book, scaled question and frozen book ID. Pass those values to the private pricing helper so the frozen path resolves them once. Stored-clock quotes also reuse the book lookup. The contract ABI and storage layout are identical.
The changed creation bytecode updates the settlement book deployer, pool factory and deployment status oracle addresses. Refresh the four deterministic deployment manifests and the audited Solidity source fingerprint.
Validation
The before/after Anvil comparison matched the exact return or revert bytes in all 14 cases, including zero, partial, full and excessive burns, inherited frozen claims, empty questions and sealed books. Frozen through-clock quotes saved 3,643 gas, including the inherited case. Stored-clock quotes saved 279 gas. Live and empty through-clock quotes cost 6 gas more and the sealed-live early return cost 1 gas more. Runtime size fell from 21,098 to 21,063 bytes. The benchmark candidate matched the final checkout build byte for byte.
Local validation passed full TypeScript, targeted settlement, fork, accounting, scanner, bot and deployment tests, formatting, repository checks, Knip, generated freshness and whitespace checks.