feat(liquidity-sdk-viem): add Vault V2 liquidity loader - #930
Draft
Rubilmax wants to merge 21 commits into
Draft
Conversation
Freezes the design of a Vault V2 mirror of the V1 PublicAllocator shared-liquidity engine, based on the new BluePublicAllocator periphery contract in morpho-org/vault-v2. Additive only: the V1 surface is untouched, the new symbols mirror V1 names with a VaultV2 suffix, and the engine is deliberately not wired into any transaction flow (deferred to the blue bundles migration). Records the contract-level finding that VaultV2 rebases allocation[id] to expectedSupplyAssets rather than incrementing it, so shared allocation ids do not net to zero across a reallocation and allocation[id] never bounds the deallocate leg. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rubilmax
force-pushed
the
hermes/public-allocator-v2-sdk
branch
2 times, most recently
from
August 18, 2026 08:13
11e1acc to
15112a8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VaultV2LiquidityLoaderStack
hermes/public-allocator-v2-sdkValidation
pnpm lintpnpm --filter @morpho-org/liquidity-sdk-viem exec tsc --noEmitpnpm exec vitest run --project liquidity-sdk-viem(32 tests)