Skip to content

implement optional insurance fund system for vaults#612

Open
mrmoney10010-design wants to merge 2 commits into
code-flexing:mainfrom
mrmoney10010-design:feature/vault-activity-feed
Open

implement optional insurance fund system for vaults#612
mrmoney10010-design wants to merge 2 commits into
code-flexing:mainfrom
mrmoney10010-design:feature/vault-activity-feed

Conversation

@mrmoney10010-design

Copy link
Copy Markdown

Area: backend · Effort: L

What: Implement an optional insurance fund that vault operators can fund to cover depositor losses in the event of a smart contract exploit or strategy failure.

Why: Insurance funds are a powerful trust signal that separates professional vault operators from anonymous ones. They directly address the biggest user concern: 'what if I lose my funds?'

closes #578

- Add InsuranceClaim entity with vault/depositor relationships and status tracking
- Create InsuranceFundService with Soroban multisig escrow, coverage ratio calculation
- Add depositToFund, processIncident, declareIncident methods with proper auth
- Implement pro-rata payout distribution when insufficient insurance funds
- Add duplicate claim prevention for incident workflow
- Create getAuditTrail for public on-chain auditability
- Add InsuranceFundController with REST endpoints
- Add comprehensive unit and integration tests (47 tests passing)
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the vic's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@mrmoney10010-design Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

#1051 Add vault insurance fund mechanism

1 participant