Monitor/Create Claim/Foreclosure

This flow is responsible for monitoring the health of all loans in the protocol, as well as issuing claims on loans that are not healthy.

Loan Monitoring

The backend is reponsible for monitoring the health of all loans. If a loan is found to be at or near an action point, the appropriate action must be taken. This can include creating a claim, or foreclosing a position.

Monitoring System

Cron Jobs

The backend will maintain a series of cron jobs. The purpose of these cron jobs is to continuously monitor each loan that is taken out in our system. The monitoring system will check for the following:

  • Check if the collateral asset price is approaching the ltv_protect price

  • Check if any loans (including uncovered) loans are approaching foreclosure limit

If the former is true, trigger a claim

If the latter is true, trigger a foreclosure

Trigger A Claim

The monitoring system identifies that a claim needs to be triggered

The monitoring system identifies that a loan needs to be foreclosed

Last updated