# Fallback Mechanism

Evoq's <mark style="color:blue;">**fallback mechanism**</mark> ensures user funds remain liquid and efficiently utilized by combining underlying lending protocols like Venus with a P2P matching engine. Here’s how it works:

* Fully matched

  Evoq's matching engine instantly pairs a supplier with borrowers for complete matching. In this case, there is no need for a fallback, and both parties enjoy a P2P APY.

<figure><img src="https://4226119492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkWffCRtT7sEuuCxLsLGz%2Fuploads%2FqakeUDbL39Wqnml0YvgP%2FFallback%20Mechanism-Fully%20matched.png?alt=media&#x26;token=0a88bcb4-eb73-452c-9d17-d21bf3866c1e" alt=""><figcaption></figcaption></figure>

* Partially matched

  If there are borrowers but not enough to fill the supplier's entire order, the matching engine partially matches their funds. The unmatched portion is supplied to the underlying protocol. The supplier enjoys a P2P APY on the matched portion and the underlying protocol's APY on the remaining funds.

<figure><img src="https://4226119492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkWffCRtT7sEuuCxLsLGz%2Fuploads%2F3cndwDH10DnRtZGJUXXo%2FFallback%20Mechanism-Partially%20matched.png?alt=media&#x26;token=49118a29-be39-4a43-bf8f-108b5901385e" alt=""><figcaption></figcaption></figure>

* Unmatched

  If there is no borrowing demand, Evoq's matching engine cannot find a match, so all of the supplier's funds are supplied to the underlying protocol, earning the underlying protocol's APY.

<figure><img src="https://4226119492-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkWffCRtT7sEuuCxLsLGz%2Fuploads%2FAfSUkibf7IDoIXCwDyJE%2FFallback%20Mechanism-Unmatched.png?alt=media&#x26;token=bdf324ab-487b-4ac4-9187-477e01448d54" alt=""><figcaption></figcaption></figure>

The symmetric scenarios exist when <mark style="color:blue;">borrowing</mark>. However, we need to consider two more cases: <mark style="color:blue;">withdrawing</mark> and <mark style="color:blue;">repaying</mark>.

#### Withdrawing (1) when supply > borrow, (2) when supply ≤ borrow

If a supplier wants to withdraw their funds while matched, (1) Evoq will try to replace their matched funds with other suppliers waiting to be matched. (2) If there are no other suppliers, Evoq borrows the necessary liquidity from the underlying protocol using other suppliers' assets as collateral and returns it to the supplier. By doing this, the supplier can always seamlessly withdraw all of their assets.

#### Repaying (3) when supply < borrow (4) when supply ≥ borrow

If a borrower wants to repay while matched, (3) Evoq will first try to replace their matched funds with other borrowers waiting to be matched. (4) If there are no other borrowers, Evoq supplies the excess liquidity to the underlying protocol.
