Skip to main content
This page explains the current CoverFi architecture for Stellar Community Fund reviewers, Stellar technical reviewers, partners, and operators. CoverFi is a Stellar-native app with two user-facing money flows:
  • Executed username payments: a sender resolves a Soroban username, signs a Stellar payment, submits it to the network, and can anchor a receipt hash after confirmation.
  • Contract-defined protection: a user opens a Soroban protection position, pays a transparent premium, locks reserve payout capacity, and settles against oracle data at expiry.
CoverFi protection is not insurance. Payouts are not guaranteed. Outcomes depend on wallet signatures, contract rules, oracle freshness, reserve state, and Stellar network execution.

Current system map

Architecture layers

Executed username payment flow

Username payments are a completed app flow, not only an AI draft. The app implementation resolves usernames with get_address, builds a Stellar Operation.payment, asks the wallet to sign, submits the signed transaction, polls for confirmation, and then optionally anchors a receipt hash with create_receipt. Private payment notes and user receipt history stay in wallet-unlocked encrypted browser storage. The receipt registry stores hashes and access state, not raw private notes.

Protection position flow

The protection engine coordinates the money path. The backend does not sign or custody user funds.

Settlement and exit flow

Settlement is permissionless after expiry. Payout claims and principal withdrawals are owner-only. If the oracle observation is missing or too old, the position waits in an oracle-needed state instead of settling unsafely.

Contract workspace

The current Soroban workspace has ten contracts.

Reserve accounting model

Reserve accounting separates user claims from provider withdrawable NAV.
Important reserve controls:
  • New positions lock maximum payout capacity before exposure is accepted.
  • Settled payouts are reserved for a specific position.
  • Provider withdrawals use shares, NAV, cooldown, and available-liquidity checks.
  • Locked liabilities, reserved claims, unearned premiums, safety funds, and automation funds are excluded from provider withdrawals.
  • Premium routing is visible in contract state and tests.

Oracle model

The current architecture separates oracle source and adapter behavior. Mainnet scale requires a documented multi-source or established Stellar-compatible oracle policy. Testnet can use controlled publishers for reviewer and smoke-test flows.

Backend and data boundaries

The backend supports the product but is not the financial source of truth.

Current verification commands

Run these from the repository root or package folders.
Latest local verification before this page was added:

Mainnet readiness boundaries

CoverFi should not be presented as ready for meaningful mainnet value until these are complete:
  • Third-party smart contract audit or audit-bank review.
  • Production oracle quorum or established oracle-provider policy.
  • Multisig or admin-controller setup for privileged actions.
  • Production secret rotation and shared session revocation storage.
  • Distributed rate limiting for horizontally scaled backend services.
  • Partner webhook URL validation, idempotency, and per-key rate-limit enforcement.
  • Legal review of terms, privacy, and non-insurance language.
  • Production monitoring, incident response, and deployment smoke-test runbooks.