The V1 protocol is written in Solidity 0.8.24 on OpenZeppelin v5, built and tested with Foundry. Each module has a single responsibility. Modules that do not need to hold funds hold none.
Roles and compliance
| Module | Responsibility |
|---|---|
| ProtocolRoles | Central role-based access control with ten canonical roles, the only source of authorization |
| ComplianceRegistry | Whitelist, KYC expiry, jurisdiction codes, block flags and investor limits, checked on every share mint, transfer and burn |
| ProtocolTimelock | Timelock controller holding the Owner role, with a multisig Safe as proposer |
Registries
| Module | Responsibility |
|---|---|
| PortfolioRegistry | Ceded portfolios and treaties: cedent, structure, coverage, ceded premium, document hash and lifecycle status. Holds no funds |
| PolicyRegistry | Policy records and the protocol clock, with a one-way switch that locks the protocol to real block time |
| AdapterRegistry | Allowlist of optional external risk pool adapters and their interface |
Vaults and capital
| Module | Responsibility |
|---|---|
| VaultFactory | Permissioned deployment of independent vaults, wired to registries and roles |
| VaultDeployer | Holds the vault creation code on behalf of the factory, bound once to it |
| InsuranceVault | ERC-4626 USDC vault issuing nbUSDC: compliance hooks, deposit cap, unearned premium accounting, liquidity buffer, allocations, claim reserves and payouts. The final solvency check |
| VaultAllocator | Allocation proposals with expiry, portfolio and cedent concentration limits, advisory oracle guard |
| PremiumDistributor | Receives ceded premium in USDC and routes it to the vault with exact conservation |
| RedemptionQueue | Periodic-window, pro rata exit queue with escrowed shares |
Claims and data
| Module | Responsibility |
|---|---|
| ClaimManager | Claim lifecycle: submission, advisory assessment, dispute window, committee approval, payout through the vault |
| ClaimReceipt | Soulbound ERC-721 receipts minted at claim approval and burned at payout |
| NavOracle | Attested NAV and risk inputs with staleness and deviation guards |
| BordereauOracle | Optimistic attestations of premium, policy and claims bordereaux |
| AIAssessor | Advisory claim assessment store, unable to approve or pay |
Lending and read layer
| Module | Responsibility |
|---|---|
| LendingMarket and LendingMarketFactory | Permissioned isolated lending markets using nbUSDC as collateral |
| NavShareOracle | Guarded NAV per share source for the lending market |
| NextBlockLens | Read model with dashboards for protocol, vault, Liquidity Provider, portfolio, premium, claim, oracle, bordereau and adapter state |
Offchain components
A Next.js application with server routes for onboarding, claims evidence and notifications; a subgraph indexing protocol events; scheduled keepers that settle redemption windows and finalize approved claims; and a database with row level security denying access by default.