# PegKeeper Monitor

**Overview**

This indicator tracks the total debt and collateral that is held in each PegKeeper contract. Total debt across all PegKeeper contracts has a direct connection to the borrow rates for crvUSD. With the borrow rate equation as follows:

<figure><img src="https://lh7-us.googleusercontent.com/nV3a5u8sxW0jBVceezaqWNGExcQKsiwSBtwXhJqPaapMAEDZsLse3guu0UHktqZfYn_zdkiNWsiWXl2_2oeRO9oRKcCteK2dyunpsOZTz5BOZ_xnGSU_-ICMOXeqhjpCkTEVUuMIExj5UupW2j1fLKo" alt=""><figcaption></figcaption></figure>

With:

\- r: rate

\- rate0: rate when pegkeepers have no debt and the price of crvUSD is 1

\- price\_peg: desired crvUSD price: 1.00

\- price\_crvusd: actual crvUSD price

\- DebtFraction: ratio of the PegKeeper's debt to the total outstanding debt

\- TargetFraction: target fraction

\- PegKeeperDebt: sum of debt of all PegKeepers

\- TotalDebt: total crvUSD debt

This means that increased debt in the contracts leads to lower borrowing rates while the opposite is true when the debt decreases. As the debt fraction plays a larger role in borrow rates than slight depegs to crvUSD, this indicator can help a user understand trends in the dynamics between each PegKeeper pool and borrow rates.

In addition to monitoring borrowing rates for crvUSD, this indicator monitors the balance of debt and collateral in each of the PegKeeper contracts. While small variations between collateral and debt are to be expected as the pool automatically corrects itself as market conditions change, large imbalances between the two could indicate larger issues with the peg of crvUSD.

**How can I use it?**

<figure><img src="https://lh7-us.googleusercontent.com/s_zPv5bpxYkUgBUrgylFDw5NteZ67Y97-RMK6I7iWq7ueL9L14hMdXjaYea9TCFx_pplbSBpiGCeyQUAYsl9xI9vkbVyJGaPh4uEDkd0nXXkMQ6dEdYSiwJuT7VPllOv1EcuM8oeIJFGb_7U8VhCRm0" alt=""><figcaption></figcaption></figure>

The above chart is an example of the PegKeeper Monitor indicator for the crvUDS/USDT pool. A user planning to use collateral to mint crvUSD can look at these charts to help them determine if they believe the current borrow rates will be on the higher or lower end of the spectrum.

For example, if a user decided to mint crvUSD, when the debt is at its current level (seen on the far right of the chart) they can expect that once the debt falls back to near zero, the borrow rates will likely increase. In this situation, a user might prefer to either increase the number of bands they distribute their collateral across when creating their position or create a position that has an initial higher collateral ratio since they expect that the rates will likely increase in the future.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.defirisk.intotheblock.com/crvusd/pegkeeper-monitor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
