Our documentation has been updated with details on Phase 2, how coverage works, claims payouts, and more.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

On-Chain Components

Firelight's on-chain surface is the set of smart contracts that hold collateral, issue coverage, record incidents, and execute payouts. This page summarizes each component, what it stores, and who interacts with it.

Component summary

Component
Contract
Role
Primary actors

Cover Registry

CoverOrderAllocator

Publishes per-market base premium rate and available limits

Pricing service (write). Program operators and wallets (read)

Cover Agent

CoverOrderAllocator

Quotes and issues coverage tokens

Program operators

Firelight Vault

FirelightVault

Holds FXRP and tracks stXRP positions, executes slashing

Stakers

First-Loss Buffer

Custodial Wallet

Stablecoin reserve that absorbs the first tranche of validated losses

Network (top-up), Claims Registry (draw-down)

Cover Token

CoverNFT

ERC-7621 token representing an active coverage position

Program operators

Claims Registry

IncidentManager

On-chain record of incidents, auto-included coverage, consortium votes, and slash instructions

Risk Consortium, protocol

Fee Distributor

VaultRewardDistributor

Distributes premiums and vault emission boosts into two flows that auto-compound to stXRP

Matching pipeline (input). protocol and reward emissions (output)

Price Feed

FtsoChainlinkAdapter

Supplies the XRP/USD price used to value staked FXRP for capacity and payout calculations

Cover Agent, Claims Registry

Cover Registry

Contract: CoverOrderAllocator

The source of truth for market-level coverage parameters.

Stored state: approved markets (chain, protocol, market, optional pool), base premium rate per market, and the available limit per protocol.

Updates: refreshed every 30 days at period boundaries from the off-chain pricing service under access control.

Reads: any program operator or integrating system can read current coverage parameters.

Cover Agent

Contract: CoverOrderAllocator

The entry point for enabling cover on a vault.

  1. An onboarded program operator requests a quote for specified markets and amounts.

  2. Cover Agent queries the Cover Registry and matching engine for available limits.

  3. A quote is returned with per-market rates, a blended rate, premium amount, and validity.

  4. On confirmation and period-boundary matching, Cover Agent pulls premium via the program operator's approval.

  5. Cover Agent issues a CoverNFT to the program operator with the coverage metadata.

Firelight Protocol

Contract: FirelightVault

Holds FXRP and tracks staker positions in stXRP under the ERC-4626 standard. Core functions cover deployments, withdrawal requests, post-cooldown claims, state queries, and blocklist/pause controls for compliance. The vault exposes slashing hooks triggered by the Claims Registry on a validated claim. All capital in the protocol is utilized in coverage.

First-Loss Buffer

A protocol-owned stablecoin reserve that sits between claims and staker collateral and absorbs the earliest tranche of any validated loss. It is funded by Network top-ups (and, in some configurations, a portion of premium flow), and replenished by recovered assets in reverse waterfall order. The wallet grants the Claims Registry an allowance to draw on it. On a validated claim, the Claims Registry pulls the first tranche directly from the buffer before requesting any remainder from the vault. The buffer's balance also counts toward coverage capacity.

CoverNFT

Contract: CoverNFT

An ERC-721 token representing an active coverage position. It is a non-fungible record of coverage. Full metadata structure is in Cover Tokens. The token remains in the program operator's wallet. There is no escrow or receipt-token step.

Claims Registry

Contract: IncidentManager

The Claims Registry replaces the older submit-and-escrow claims flow. It is the on-chain record for the auto-inclusion model:

  • Incident record: when an incident is confirmed and reported, it is recorded here.

  • Auto-inclusion: the protocol identifies active CoverNFTs exposed to the incident and records the included set, program operators do not submit anything.

  • Consortium decision: approving or rejecting an assessment is restricted to the Risk Consortium's 3-of-5 multisig, so the quorum is enforced by the multisig's signing threshold. The registry records each assessment round and its outcome.

  • Slash instruction: on approval, the registry generates slash instructions specifying the payout. The waterfall is debited sequentially. First-Loss Buffer, then the vault, with a concurrency guard preventing overlapping slashes.

  • Settlement: proceeds are released per the calculation logic in Claims Process. CoverNFTs are marked SETTLED when fully consumed.

Fee Distributor

Contract: VaultRewardDistributor

Premium and vault emission boosts flow into the Fee Distributor, which auto-compounds them into the vault. Distribution proceeds on a regular streaming cadence rather than a single period-end distribution.

Price Feed

Contract: FtsoChainlinkAdapter

Supplies the XRP/USD price from Flare's FTSO oracle through a Chainlink-compatible interface. The Cover Agent reads it to value staked FXRP in USD when computing capacity, and the Claims Registry reads it when valuing payouts.

Flare mainnet deployments

All addresses below are on Flare mainnet (chain ID 14). FirelightVault, CoverNFT, CoverOrderAllocator, IncidentManager and VaultRewardDistributor are upgradeable proxies. The listed addresses are the proxy addresses, which stay the same across upgrades. Source code for every contract is verified on the Flare explorer. The First-Loss Buffer is a custodial wallet, not a contract.

Last updated