Repository navigation
feat(vaults): implement redemption liquidity management with cash buf… - #368
Merged
techisigu merged 3 commits intoOct 24, 2026
Merged
Conversation
…fer and JIT unwind (Zenith-options#241) - vaultLiquidity.ts: CashBufferConfig, UnwindCandidate, UnwindPlan types - buildUnwindPlan(): greedy least-cost position ranking (least_loss / nearest_expiry / largest_notional) with cumulative proceeds tracking - evaluateLiquidityNeeds(): five-state verdict (healthy / buffer_draw / jit_needed / insufficient / alert) comparing buffer against queue demand - executeUnwindStep(): mock + live adapter for closing individual positions - VaultLiquidityPanel: operator dashboard showing buffer bar, status cards, ConfigForm (target/min buffer, slippage, priority, approval flag), UnwindPlanTable with per-step execute buttons and approval gating - VaultDetail type extended with cashBufferUsd and queuedRedemptionUsd - Mock data seeded with realistic buffer/queue values for xlm-cc-v1 - Wire VaultLiquidityPanel into vault detail page - Governance actions catalog: set_cash_buffer_bps, set_min_buffer_bps, set_unwind_priority, set_max_unwind_slippage_bps Closes Zenith-options#241
…mple agent) - src/app/[locale]/vaults/[id]/page.tsx: merged [markers] — model resolved the conflict markers - src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers - src/lib/governance/actions.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
…mple agent) - src/app/[locale]/vaults/[id]/page.tsx: merged [markers] — model resolved the conflict markers - src/lib/api/vaults.ts: merged [markers] — model resolved the conflict markers - src/lib/governance/actions.ts: merged [markers] — model resolved the conflict markers Co-authored-by: Simple Agent <agent@simple.dev>
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.
…fer and JIT unwind (#241)
Closes #241
Summary
Changes
Testing
Checklist