Skip to content

feat(vault): add force deallocate penalities to AccrualVaultV2#523

Open
Foulks-Plb wants to merge 4 commits intomainfrom
feature/vmv1-4865-add-penality-for-vaultv2-adapter-in-core-sdk
Open

feat(vault): add force deallocate penalities to AccrualVaultV2#523
Foulks-Plb wants to merge 4 commits intomainfrom
feature/vmv1-4865-add-penality-for-vaultv2-adapter-in-core-sdk

Conversation

@Foulks-Plb
Copy link
Contributor

@Foulks-Plb Foulks-Plb commented Mar 10, 2026

Summary

Add support for force deallocate penalities on Vault V2 adapters.

Each adapter in a Vault V2 can have an associated force deallocate penalty. This PR exposes that data end-to-end:

  • Viem fetch layer (VaultV2.ts): retrieve the penalty for each adapter in parallel and pass it to AccrualVaultV2.
  • Core SDK (VaultV2.ts): add forceDeallocatePenalties to the AccrualVaultV2 class, parallel to accrualAdapters.

The penalty calls are integrated at the VaultV2 level through a mapping, to avoid blocking calls at the adapter level.

@Foulks-Plb Foulks-Plb self-assigned this Mar 10, 2026
@linear
Copy link

linear bot commented Mar 10, 2026

@Foulks-Plb Foulks-Plb changed the title feat(vault): add force deallocate penalties to AccrualVaultV2 feat(vault): add force deallocate penalities to AccrualVaultV2 Mar 11, 2026
@Foulks-Plb Foulks-Plb marked this pull request as ready for review March 11, 2026 18:21
@Foulks-Plb
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Foulks-Plb Foulks-Plb requested a review from Rubilmax March 12, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants