Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces functionality to retrieve and manage sub-vaults within a meta vault structure, allowing users to query information about vaults that are allocated within a parent meta vault.
Changes:
- Added
getSubVaultsmethod to retrieve sub-vault information including APY, assets, and exit queue data - Extended the allocator GraphQL query to include APY field
- Added
isStateUpdateRequiredfunction to the DefaultVaultAbi contract
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/services/vault/requests/index.ts | Exports the new getSubVaults function and its input type |
| src/services/vault/requests/getSubVaults/index.ts | Implements the main logic for fetching and aggregating sub-vault data |
| src/services/vault/requests/getSubVaults/getSubVaults.md | Provides API documentation for the getSubVaults method |
| src/services/vault/index.ts | Adds the public getSubVaults method to the Vault service class |
| src/graphql/subgraph/vault/subVaultsQuery.graphql | Defines the GraphQL query for fetching sub-vaults |
| src/graphql/subgraph/vault/index.ts | Exports the SubVaults query types and fetch function |
| src/graphql/subgraph/allocator/allocatorsQuery.graphql | Adds apy field to the allocators query |
| src/contracts/vault/abis/DefaultVaultAbi.json | Adds isStateUpdateRequired function to the vault ABI |
| changelog/next-release.md | Documents the addition of the getSubVaults method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| ] | ||
|
|
||
|
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 23 out of 24 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* [create-metavault] add metavault creation support * [create-metavault] fixes * [create-metavault] improve types
* add ejectingSubVault and pendingMetaSubVault fields to vault * add new methods to sub-vaults (add, eject, reject)
No description provided.