[L-01] VestingWallet audit - 417#463
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: Path: .coderabbit.yaml 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)
Comment |
There was a problem hiding this comment.
Pull request overview
Updates operational documentation around VestingWallet teardown to clarify retryability and stranded-funds risk in the presence of newly settled or in-flight funds.
Changes:
- Clarifies that
destroy_emptycan abort withEUnsweptFundswhen third-party funds settle before teardown, so teardown should be treated as retryable (sweep then retry). - Expands the warning that funds sent in the same checkpoint as teardown (or after UID deletion) may become permanently unrecoverable, recommending waiting at least one full checkpoint before teardown.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| contracts/finance/sources/vesting_wallet.move | Refines destroy_empty documentation to emphasize retryability on EUnsweptFunds and checkpoint-related stranded-funds risk. |
| contracts/finance/sources/vesting_wallet_linear.move | Updates linear wallet teardown docs to match core wallet guidance on retryability and checkpoint timing risks. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-v1.4 #463 +/- ##
=============================================
Coverage 80.36% 80.36%
=============================================
Files 25 25
Lines 1971 1971
Branches 679 678 -1
=============================================
Hits 1584 1584
Misses 350 350
Partials 37 37
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
No description provided.