Evoq Finance
  • introduction
    • Evoq Finance: A P2P-Based Lending Optimizer
  • background
    • Problem: Capital Inefficiency
  • protocol overview
    • How it works
      • Fallback Mechanism
      • Interest Rate Model
      • Cap Mechanism
    • Liquidation
    • Price Oracle
    • Risk Fund
  • advanced mechanism
    • Matching Engine
      • Priority Queue Matching
      • Max Gas Limit
    • Delta Mechanism
  • security
    • General Risks
      • Flash Loan Attack
      • Front-Running Attack
    • Audits
  • Technical
    • Overview
      • Evoq
      • WBNBGateway
      • Lens
      • Contract Deployments
    • Liquidation Bot
  • GETTING STARTED
    • User Guide
    • FAQ
  • Links
    • Launch App
    • Community
Powered by GitBook
On this page
  1. protocol overview
  2. How it works

Fallback Mechanism

PreviousHow it worksNextInterest Rate Model

Last updated 4 months ago

Evoq's fallback mechanism 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.

  • 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.

  • 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.

The symmetric scenarios exist when borrowing. However, we need to consider two more cases: withdrawing and repaying.

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.