Architecture Diagram
The following diagram illustrates the interactions between the main components of the CoverFi contract ecosystem:Money and Data Flow
For a user protecting1000 units with a 1% fee and a 10% max payout cap:
- Initiation: The user creates a protection position.
- Principal: The principal amount (
1000units) moves into theprotected_balance_vault. - Fee Collection: The protection fee (
10units) moves into thepremium_vault. - Yield Routing: The
premium_vaultforwards fees to thereserve_vault. - Capacity Locking: The
reserve_vaultlocks the maximum payout capacity (100units). - Data Storage: The position is stored as active in the engine’s state.