test: auto-pause revert propagation through protocol adapters (RAI-321)#24
test: auto-pause revert propagation through protocol adapters (RAI-321)#24hardyjosh wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4c711c5 to
140fb0f
Compare
1473d68 to
8771cc3
Compare
4eb86c3 to
9093228
Compare
8771cc3 to
f286afe
Compare
f286afe to
e3dd304
Compare
5f986f2 to
d538ab2
Compare
e2683f3 to
e4530d2
Compare
d538ab2 to
b26969b
Compare
e4530d2 to
8a87749
Compare
8a87749 to
c17c99c
Compare
b26969b to
73f1220
Compare
c17c99c to
5afd61b
Compare
73f1220 to
2ed0a7f
Compare
Wires up the full Oracle → Registry → Protocol-adapter chain (Passthrough for Aave/Compound and Morpho both) and verifies that auto-pause reverts surface end-to-end with their original selectors and effectiveTime payload — distinguishable from OraclePausedManual and from each other. Four checks: * Happy path: no scheduled action → both adapters return a price * PassthroughProtocolAdapter (latestAnswer + latestRoundData) propagates OraclePausedCorporateAction(effectiveTime) unchanged * MorphoProtocolAdapter.price() propagates the same revert * Manual-pause precedence is preserved through the chain (manual + auto both armed → manual error reported) Uses the shared `test/mocks/MockCorporateActions.sol` stub introduced in PR #22, which returns the documented NODE_NONE = type(uint256).max sentinel on no-match, matching the real ICorporateActionsV1 contract. Scope note: RAI-321 also asks for fork tests against a real st0x.deploy vault scheduling actions through the authoriser. That's deferred to RAI-327 (testnet deploy + dry run) since no production vault has the new corporate-actions facet deployed yet — there's nothing real to fork against. The mock here exercises the same chain wiring; once a vault is deployed, the fork test is an additive layer.
2ed0a7f to
4b1991a
Compare
5afd61b to
1615d4d
Compare

Wires up the full Oracle → Registry → Protocol-adapter chain (Passthrough for Aave/Compound and Morpho both) and verifies that auto-pause reverts surface end-to-end with their original selectors and effectiveTime payload — distinguishable from OraclePausedManual and from each other.
Four checks:
Scope note: RAI-321 also asks for fork tests against a real st0x.deploy vault scheduling actions through the authoriser. That's deferred to RAI-327 (testnet deploy + dry run) since no production vault has the new corporate-actions facet deployed yet — there's nothing real to fork against. The mock here exercises the same chain wiring; once a vault is deployed, the fork test is an additive layer.