Fix Morpho vault migration review preparation - #856
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: euler-xyz/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Comment |
|
🚅 Deployed to the euler-lite-pr-856 environment in euler-lite(dev,PR previews)
|
LeonardEulerXYZ
left a comment
There was a problem hiding this comment.
Review: approved
Reviewed all three changed files at 7284560 against development 45af546. No blocking findings.
The recursive exclusion is scoped to external positionRef subtrees, including externalTarget.positionRef. Euler source/destination vaults, quote verification vaults, explicit vault constraints, assets and accounts continue through their existing collection paths. Independent Euler requirements cannot be erased by encountering the same address in an external reference. Checked the strict migration schemas and inbound/outbound intent producers for consistency. No dependency, API, signing or dispatch changes are introduced.
Validation on the exact head with a fresh npm ci install:
- npx vitest run tests/reviewed-execution: 19 files, 176 tests passed.
- npm run test:run: 218 files, 2,084 tests passed.
- npm run typecheck: passed.
- npm run build: passed.
- ESLint over all three changed files: passed.
- git diff --check: passed; tracked worktree clean.
The new tests exercise the application snapshot loader for MetaMorpho v1/v2 in direct and batch presentation modes, missing Euler destination snapshots, mixed requirement ordering, and Aave/Morpho asset retention. They retain mocked registry/compiler/simulation dependencies: this is preparation-layer regression evidence, not proof of live migration execution. Browser smoke in the PR description is author-provided evidence and was not independently repeated; no signatures or transactions submitted by this review. Connected-wallet production execution remains unverified.
Cross-repo boundary: the existing SDK-facing reference shapes are preserved; no producer release or consumer dependency update is required by this diff.
Summary
Fix Morpho Vaults → Euler review preparation failing with
Vault snapshot is unavailablewhen a MetaMorpho source is treated as an Euler vault.Changes
positionRef, includingexternalTarget.positionRef, as an external protocol reference during vault requirement collection. Preserve asset dependencies, Euler source/destination vaults, swap verification vaults, and explicit vault constraints.Test plan
npm run lint— 0 errors, 6 existing warnings.npm run typecheck.npm run build, thennpm run test:run— 218 files, 2,084 tests passed.To repeat the browser checks, replace
http://localhost:3000with the deployment hostname and select K3 Capital Prime Market · USDC (0x797DD80692c3b2dAdabCe8e30C07fDE5307D48a9). Click Review Migration, close the review, then use Add to batch → Review batch.Connected-wallet production review remains unverified.