Y2K Finance
  • 🎬Overview
  • Products
    • πŸ’₯Earthquake
      • Mechanics
      • Determining Strike Prices
      • Hedge Pricing
      • Contracts
        • Developer Info
        • Addresses
        • Subgraph
    • Developer Info
    • πŸ‘·β€β™‚οΈEarthquake Builder program
      • πŸ‘©β€πŸ’»Builder Info
        • Technical Overview Self-Insured Vault (SIV) Contract
        • Technical Overview of the Yield Source Contract
        • Technical Overview of the InsuranceProvider Contract
      • πŸ“šGuides
        • YieldSource examples
    • πŸ”₯Wildfire
    • πŸ—ΊοΈRoadmap
  • Tokenomics
    • πŸ™‚Y2K
    • πŸ”“vlY2K
    • πŸ’£Vault Tokens
    • πŸͺ™Tokenomics/Distribution
  • HOW-TO GUIDES
    • 🏎️Turbo Options
    • 🧠Vault Strategies
      • ❓FAQ's
      • πŸ—ΊοΈHow To Use
      • πŸ—οΈUI Breakdown
    • πŸ’°Claiming Rewards
    • πŸ’₯V2 User Guide
    • 🧯Y2K App - UI V2
      • πŸ’ΉMarkets Page
      • πŸ†ŽMarket Type Page
      • πŸ“ΌAsset Page
      • 🧚Quick Mint
      • πŸ…My Portfolio
  • Learn More
    • πŸ”Audits
    • πŸ“©Borrowing & Lending Using $Y2K
    • πŸ’±Change log
    • πŸ”΄Disclaimers
    • ⬆️Earthquake V2 FAQ
    • πŸ‘Useful Links
Powered by GitBook
On this page
  • Architecture Diagram
  • Interacting with the Contracts
  1. Products
  2. Earthquake Builder program

Builder Info

PreviousEarthquake Builder programNextTechnical Overview Self-Insured Vault (SIV) Contract

Last updated 1 year ago

Architecture Diagram

The architecture can be visualized with the help of the diagram linked below:

  1. SelfInsuredVault (SIV): The SIV functions as a depository for a variety of yield-bearing assets, leveraging their yield to purchase insurance. In the occurrence of an earthquake event, the ensuing payout are distributed back to the users.

  2. YieldSource: This encapsulates the implementation of IYieldSource and other actual yield sources like farming shares and other yield-bearing assets.

  3. InsuranceProviders: These contracts serve as bridges between the SIV and earthquake vaults, facilitating deposit and withdrawal into an earthquake epoch.

Interacting with the Contracts

Interacting with the contracts requires understanding and familiarity with the structure and function of each contract. Before you proceed, we recommend familiarizing yourself with our documentation on Vaults, Markets, and Epochs.

Here's a step-by-step guide to using these contracts:

  1. Configuring Markets: As an admin of the SIV, you can add multiple markets with custom weights. The weights help calculate the purchase amount for insurance.

  2. Depositing into the SIV: To mint shares in the SIV, you must deposit yield-bearing assets into the vault. This deposit operation transfers the assets to the YieldSource contract.

  3. Purchasing Insurance: The process is initiated by the admin. It involves claiming the yields from the Yield Source and depositing them into the next provided epoch.

  4. Claiming Earthquake Payout: Once the epoch is resolved, the yields can be claimed by anyone and will be allocated to the users entering the vault before the epoch started.

The architecture consists of three main components:

πŸ‘·β€β™‚οΈ
πŸ‘©β€πŸ’»
Source Code
Architecture Diagram