Skip to content

End to End Process Flow Diagrams

Lucas Manuel edited this page Apr 6, 2021 · 7 revisions

This page contains links to various diagrams that outline the end-to-end flows for different scenarios and processes in the protocol. These diagrams contain all EOAs and smart contracts involved in these scenarios, and map out all smart contract calls and flows of funds chronologically.

Interest Payment

The following diagram outlines the process of:

  1. An LP adding liquidity to a Pool
  2. A Loan getting created
  3. The Pool funding the Loan
  4. The Loan drawing down funds
  5. The Pool claiming fees and excess funds
  6. The Loan paying interest
  7. The Pool claiming interest
  8. The LP claiming earned interest from the Pool

Link to high-res diagram

Liquidation

The following diagram outlines the process of:

  1. An LP adding liquidity to a Pool
  2. A Loan getting created
  3. The Pool funding the Loan
  4. The Loan drawing down funds
  5. The Pool claiming fees and excess funds
  6. The Loan getting a liquidation triggered by the Pool Delegate since no payment was made and the grace period has passed
  7. The Pool claiming the liquidated amount and covering the shortfall by burning BPTs

Link to high-res diagram