# Yield Risk Engine V1 & V2

Our yield risk engine is designed to put a static cap on how much a yield asset can appreciate over time. It's designed to reduce risk exposure to [inflation attacks](https://docs.openzeppelin.com/contracts/5.x/erc4626) where users are able to donate to an ERC-4626 vault and artificially increase the value of a vault token in order to borrow more against it. This type of attack happens [quite frequently](https://www.theblock.co/post/348785/analysis-of-700k-oracle-manipulation-exploit-highlights-vulnerabilities-in-defi-vaults). The yield risk engine was designed in collaboration with Gauntlet.

Disclaimer: No risk strategy can 100% protect against any type of attack. This risk engine should be considered a part of a broader risk strategy - we provide absolutely no warranty of effectiveness.&#x20;

<figure><img src="/files/YBPvJPUq8OPCP1tcvWjn" alt=""><figcaption></figcaption></figure>

1. Navigate to the contract on HyperEVMScan

<figure><img src="/files/v6XIj8F2yu10XXHdFLoW" alt="" width="375"><figcaption></figcaption></figure>

2. Check the current creationFee. This is the amount in the native token (in this case HYPE) that it will cost to spawn a new Yield Risk Engine.

<figure><img src="/files/i8BsKSMKWcp3FMtdVTCI" alt=""><figcaption></figcaption></figure>

3. Accept Terms - write to this tx to signify your acceptance of our disclaimer

<figure><img src="/files/MrwMX1Sor9jsrGFb10ES" alt=""><figcaption></figcaption></figure>

4. Write a "Create" Tx. In this case the user is using one of our ERC-4626 vault price feeds, and paying 6 HYPE to create the yield risk engine. The cap they've chosen is 20%.

<figure><img src="/files/6Kp0K93qGthhnjaUtoaa" alt=""><figcaption></figcaption></figure>

4. Done! You've spawned a new chainlink-interface-compatible yield risk engine which should cap the value of the asset to 20% over time.

<figure><img src="/files/Vcsbr7mPqnFkneg9xWAq" alt=""><figcaption></figcaption></figure>


---

# 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://docs.ojolabs.xyz/integration-guides/yield-risk-engine-v1-and-v2.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.
