Skip to content

feat(vaults): implement redemption liquidity management with cash buf… - #368

Merged
techisigu merged 3 commits into
Zenith-options:mainfrom
GoodnessJohn:feat/241-redemption-liquidity
Oct 24, 2026
Merged

techisigu merged 3 commits into
Zenith-options:mainfrom
GoodnessJohn:feat/241-redemption-liquidity

Conversation

@GoodnessJohn

Copy link
Copy Markdown
Contributor

…fer and JIT unwind (#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 #241

Summary

Changes

Testing

Checklist

  • Tests pass locally
  • No new warnings/lints introduced

GoodnessJohn and others added 3 commits October 23, 2026 11:24
…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>
@techisigu
techisigu merged commit 07be699 into Zenith-options:main Oct 24, 2026
6 of 29 checks passed
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.

Implement Redemption Liquidity Management With a Cash Buffer and JIT Strategy Unwind

2 participants