Skip to content

Refactor SecurityPool settlement delegation - #804

Open
KillariDev wants to merge 9 commits into
mainfrom
t3code/review-assembly-changes
Open

Refactor SecurityPool settlement delegation#804
KillariDev wants to merge 9 commits into
mainfrom
t3code/review-assembly-changes

Conversation

@KillariDev

Copy link
Copy Markdown
Collaborator

Summary

  • keep SecurityPool free of inline assembly and isolate exact revert-data forwarding in a stateless helper
  • move settlement and backing validation into the shared SecurityPoolOperationsDelegate, with operations-oriented naming across deployment wiring and documentation
  • prevent post-escrow complete-set minting and ensure zero-pool-REP fork repair reaches finalization
  • refresh storage/layout coverage, deterministic deployment hashes and manifests, generated contract metadata, and direct consumers

Why assembly remains

Solidity cannot rethrow arbitrary delegatecall revert bytes exactly. The only remaining assembly copies and reverts with those bytes inside DelegateCallForwarder; it holds no state and keeps the stateful protocol contracts readable.

Validation

  • bun run tsc
  • full suite: 3,351 passed, 10 external Uniswap/mainnet-fork skips, 0 failed
  • final affected contract/deployment/catalog suites, including 95 fork-migration and 27 own-fork tests
  • complete Sepolia and mainnet deployment runtime-hash tests
  • augurScan metadata/projection tests: 36 passed
  • bun run format:check
  • bun run check
  • bun run check:generated-clean
  • git diff --check origin/main...HEAD

bun run knip still reports only the existing unrelated liquidator test imports and repository configuration hints.

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