Flash Loan
Flash Loan allows users to borrow assets without collateral, provided the loan is repaid within the same transaction. Primarily used in DeFi for arbitrage, refinancing, and liquidation, Flash Loans offer rapid, high-liquidity lending opportunities. However, they also introduce security risks like reentrancy attacks and price manipulation, necessitating careful protocol design.
Essential Invariants
The loaned principal amount must be repaid in full by the end of the transaction.
A precise fee, as defined by the protocol, must be collected along with the loan amount.
The flash loan process, including borrowing and repayment, must be completed within a single atomic transaction.
Flexible Invariant
If a partial repayment is allowed, leave the unpaid amount as debt under specific conditions.
Protocol
Last updated