🫐
Blueberry Product Docs
  • 🫐Welcome to Blueberry Protocol
  • Blueberry Overview
    • 👋What is Blueberry?
    • 🔍Concept Overview
    • 🔬Front End
  • 💸Earn
    • ⚖️Leveraged Strategies
    • 🌊Liquidation Process on Blueberry
      • The Concept of Liquidation
      • Liquidations on Blueberry
      • Role of Bots in the Liquidation Process
      • Mitigating Liquidation Risk
    • 📈Earn Token Listing
    • 📉Earn Token Delisting
    • 📏Strategy Listing and Delisting
    • 💲Fee Structure
    • ⁉️Earn Error Codes
  • 💰Lending Protocol
    • 🔎Overview
      • 🔨Governance
        • 💱Flash Loans
        • 🛑Delist
    • 🪙bToken Introduction
      • bToken Address
    • 📈Interest Rate Model
    • 💲Price Oracle
    • ⁉️Error Code
      • ⁉️Key Events
      • ⁉️bToken Error Code
      • ⁉️Comptroller Error Code
    • 💾Change Log
  • 🪙Tokenomics
    • 🔵BLB Governance Token
    • 💰ibTokens
    • 🍩$bdBLB
    • ⚓Lockdrop
    • 📀Token Distribution
  • 🖥️developer-guides
    • 📜Contracts
      • Blueberry Bank
        • Introduction
        • Blueberry Bank Contract
          • Variables
          • Modifiers
        • Fee Manager
        • ProtocolConfig
      • Oracle
        • Introduction
        • AggregatorOracle
        • CoreOracle
      • Spell
        • Introduction
        • AuraSpell
        • BasicSpell
        • ConvexSpell
        • IchiSpell
        • LongShortSpell
      • Vault
        • Introduction
        • HardVault
        • SoftVault
      • Utils
        • BlueBerryConst
        • BlueBerryErrors
        • EnsureApprove
        • ERC1155NaiveReceiver
      • Wrapper
        • Introduction
        • WAuraPools
        • WConvexPools
        • WCurveGauge
        • WERC20
        • WIchiFarm
      • Interact with Blueberry V1
    • 📔Deployed Contracts
  • 🛡️Security
    • 🛡️Audits
    • 🛡️Bug Bounty
  • Legal
    • 📃Terms of Service
    • 📃Privacy Policy
    • 📄Risks
  • Miscellaneous
    • 💙Early Adopter Wallet List
Powered by GitBook
On this page
  1. Lending Protocol
  2. Overview
  3. Governance

Flash Loans

Blueberry Lend is bringing Flash Loans to our money markets.

Flash Loans allow developers access to undercollateralized loans, provided that the borrowed amount (and fee) is returned within one transaction block.

Flash Loans offer a wide range of use cases, including democratized liquidations, arbitrage, collateral swapping and interest rate swapping.

  1. Using Flash Loans devs interact with BToken contract, instead of the lending pool.

  2. Flash Loan fee is 0.03%

Our markets comply to EIP-3156 interfaces natively. Users should call flashloan on specific market with the following interface:

// 
/**
    * @notice Flash loan funds to a given account.
    * @param receiver The receiver address for the funds
    * @param token The loan currency. Must match the address of this contract's underlying 
    * @param amount The amount of the funders to be loaned
    * @param data The other data
    * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
    */
   function flashLoan(
       ERC3156FlashBorrowerInterface receiver,
       address token,
       uint256 amount,
       bytes calldata data
   ) external returns (bool);
    

Not all makets have Flash Loans. Check out bToken page

PreviousGovernanceNextDelist

Last updated 2 years ago

💰
🔎
🔨
💱