-
Notifications
You must be signed in to change notification settings - Fork 261
test: VaultHub/StakingVault integration #1609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: VaultHub/StakingVault integration #1609
Conversation
Hardhat Unit Tests Coverage SummaryDetailsDiff against masterResults for commit: 3c92e40 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive integration tests for VaultHub/StakingVault functionality, focusing on edge cases and critical behavior scenarios. The tests cover withdrawable value guard rails, obligations shortfall handling, forced validator exits, ownership transfers, share management, and vault enumeration.
Key changes:
- Integration tests for withdrawable value calculation under various conditions (pending disconnect, redemption obligations)
- Ownership transfer tests covering access control, state preservation, and edge cases
- Share transfer and burning tests validating liability and balance updates
- Forced validator exit tests for obligations shortfall scenarios
- Vault enumeration tests for counting and indexing behavior
- Bad debt internalization test case addition
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
test/integration/vaults/vaulthub.withdrawable-value.integration.ts |
Tests withdrawable value returns 0 during pending disconnect and when redemption obligations exceed balance |
test/integration/vaults/vaulthub.transfer-ownership.integration.ts |
Tests vault ownership transfer functionality including access control, state preservation, and various edge cases |
test/integration/vaults/vaulthub.transfer-and-burn-shares.integration.ts |
Tests share transfer and burning operations with liability tracking and balance validation |
test/integration/vaults/vaulthub.obligations-shortfall.integration.ts |
Tests that obligations shortfall correctly returns 0 after vault disconnection |
test/integration/vaults/vaulthub.force-validator-exit.integration.ts |
Tests forced validator exit functionality when obligations shortfall exists and redemption share reduction |
test/integration/vaults/vaulthub.enumeration.integration.ts |
Tests vault counting and indexing functions including behavior during disconnections |
test/integration/vaults/bad-debt.integration.ts |
Adds test case verifying bad debt is not internalized when vault value covers liabilities |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
test/integration/vaults/vaulthub.transfer-ownership.integration.ts
Outdated
Show resolved
Hide resolved
96f91a9 to
f7062bf
Compare
f7062bf to
9153436
Compare
Integration tests for VaultHub/StakingVault edge cases covering withdrawable guard rails, obligations shortfall, forced exits, and rebalance balance flow