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
  • Overview of Vulnerability
  • Potential Scenarios of Vulnerability
  • Evoq’s Preventive Measures
  1. security
  2. General Risks

Flash Loan Attack

Overview of Vulnerability

Flash loan attacks involve taking out an uncollateralized loan, manipulating market conditions within the same block, and repaying the loan. These attacks take advantage of discrepancies in market pricing or weaknesses in protocol mechanisms, potentially causing significant financial losses to the platform and its users.

In decentralized finance (DeFi), oracles provide external data, such as asset prices, to smart contracts. Some systems allow permissionless submissions to update oracles, which enhances accessibility but can also create vulnerabilities. Attackers might exploit this feature to temporarily distort asset prices and execute an attack.

Potential Scenarios of Vulnerability

If users were allowed to perform both borrowing and repayment operations within the same block, attackers could exploit this to disrupt normal protocol operations. They might manipulate rate differences or liquidity pools, potentially causing financial damage. Additionally, attackers could use manipulated oracle updates to distort asset values and gain unfair advantages.

Evoq’s Preventive Measures

Evoq prevents users from performing both repayment and borrowing operations within the same block. This restriction effectively blocks flash loans and ensures that attackers cannot exploit rapid transactional cycles to manipulate the system.

This approach significantly reduces the risk of flash loan-based exploits, improving the platform’s security and providing stability for both users and the protocol.

PreviousGeneral RisksNextFront-Running Attack

Last updated 6 months ago