Smart Contracts
API reference and documentation for LayerCover smart contracts.
TL;DR: Full Solidity interface reference for every deployed LayerCover contract. All interfaces follow the I* naming convention and use bundled config patterns for gas efficiency.
Architecture Overview
Core Infrastructure
The foundational vaults and capital layer that hold and manage underwriting capital.
Policy Lifecycle
Contracts governing policy issuance, claim resolution, and payout execution.
🏷️ Naming
All interfaces use the I* prefix (e.g., ISyndicate, IPolicyManager)
⚙️ Config Pattern
Bundled struct configs (configureVault, configureGovernanceSettings) for gas efficiency
📝 NatSpec
Full @notice / @param / @return documentation on all public functions
🔐 Access Control
Role-based via OpenZeppelin AccessControl + TimelockController
🔄 Upgradability
UUPS proxy pattern with upgradeToAndCall on core contracts
📄 License
BUSL-1.1 for core contracts, MIT for interfaces
Risk & Registry
Pool management, risk assessment, and capital allocation tracking.
IYieldStrategyManager
Manages whitelisted external yield strategies (Aave, Compound) for idle capital deployment.
IYieldAdapter
Adapter interface for integrating individual yield sources into the strategy manager.
ISyndicateFactory
Deployment factory for creating new Syndicate vaults with deterministic proxy addresses.
Orderbook & Rewards
Intent-based coverage matching, referral tracking, and reward distribution.
IIntentMatcher
On-chain orderbook matching buyer intents with underwriter quotes via EIP-712 signatures.
IReferralManager
Referral code registration, tracking, and reward attribution for distribution partners.
IRewardDistributor
Protocol reward distribution engine for underwriters and liquidity providers.
Yield & Deployment
Yield strategy management and syndicate factory deployment.
IRiskManager
Risk assessment, incident reporting, and pool risk parameter configuration.
IPoolRegistry
Central registry of all underwriting pools - creation, metadata, and status management.
IPoolAllocations
Per-syndicate capital allocation tracking - pledges, utilization, and capacity limits.
Conventions
IPolicyManager
Central entry point for policy issuance, cancellation, and lifecycle. Uses unified purchaseCoverage flow.
IPolicyNFT
ERC-721 tokenized insurance policy - transferable coverage represented as an NFT.
IPayoutManager
Claim payout execution, loss distribution waterfall, and deficit coverage logic.
Related Documentation
ISyndicate
ERC4626 underwriting vault - merged Hub+Strategy architecture for LP deposits, pool allocation, and yield.
ICapitalPool
Central asset storage, liquidity management, and ERC4626 withdrawal gating for the protocol.
ISharedAssetController
The Backstop (reinsurance) system that provides catastrophic loss coverage across pools.