Rhombus Docs
Rhombus Docs - ENG
Rhombus Docs - ENG
  • Rhombus Protocol
  • Basics
    • Assets
    • Lend and Borrow
    • Parameters
  • Features
    • LST Lending
    • Liquidation
    • Flash Loan
    • High Efficiency Mode
  • Guide
    • Frequently Asked Questions
    • How to Supply & Borrow
    • How to Repay & Withdraw
  • Security
    • Audit
    • Oracle
    • Contract Addresses
    • Risks
      • Asset Risks
      • Liquidity Risks
      • Risk Parameters
  • Legal
    • Terms of Use
    • Privacy Policy
  • Others
    • Social Links
Powered by GitBook
On this page
  1. Features

Flash Loan

Flash Loans are a powerful feature primarily designed for developers due to the technical expertise required to implement them. This functionality allows users to borrow any amount of available assets without needing to provide collateral, provided that the borrowed liquidity is returned to the protocol within the same block transaction. Flash Loans offer a range of advanced use cases such as arbitrage, collateral swapping, and liquidations, all executed in a single atomic transaction.

How Flash Loans Work

Flash Loans enable you to borrow assets from the protocol for the duration of a single blockchain transaction. This is possible because the borrowed amount, along with any accrued fees and interest, must be repaid before the transaction concludes. If the borrowed amount is not returned within the same transaction, the entire transaction is reverted, ensuring the security of the protocol’s funds.

Key Steps in a Flash Loan Transaction:

  1. Request the Flash Loan: Your smart contract sends a request to the protocol to borrow a specified amount of assets.

  2. Execute Arbitrary Operations: The smart contract can perform any number of operations such as trading, arbitrage, or collateral swapping using the borrowed assets.

  3. Repay the Loan: Before the transaction ends, the smart contract must return the borrowed amount along with any accrued interest and fees.

  4. Transaction Completion: If the borrowed amount is not repaid, the entire transaction is reverted, ensuring no assets are lost.

PreviousLiquidationNextHigh Efficiency Mode

Last updated 8 months ago