# Delta Mechanism

Evoq has robust mechanisms to ensure that user assets remain liquid. However, if a supplier matched P2P tries to withdraw their funds and the transaction incurs high gas costs due to the matching engine's iterations, the <mark style="color:blue;">**delta mechanism**</mark> addresses this issue to maintain liquidity in all scenarios.

To limit gas costs, Evoq can instantly halt the matching engine at any time. However, this means users may not be properly unmatched and might receive the P2P APY instead of the underlying protocol's APY, which they should be receiving. There is a delta between what is matched P2P and what should be matched P2P if there was no maximum gas consumption. This difference is reflected in the underlying protocol. Thus, we need to consider two cases: incompletely handled repayments and incompletely handled withdrawals.

#### If there is excess liquidity (incompletely handled repayments):&#x20;

Evoq supplies the remaining amount to the underlying protocol, benefiting from the protocol's supply APY. Meanwhile, some suppliers remain matched with the repayer, earning a higher APY.

#### If there is excess debt (incompletely handled withdrawals):

Evoq borrows the remaining amount from the underlying protocol, paying the protocol's borrow APY. Some borrowers remain matched with the withdrawer, paying a lower APY than Evoq's actual borrow APY.


---

# 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.evoq.finance/advanced-mechanism/delta-mechanism.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.
