C.R.E.A.M. Finance
LendingIron BankAPI DocsForum
Binance Smart Chain
Binance Smart Chain
  • C.R.E.A.M. Finance
  • Flash Loans
  • Lending
    • Lending Contract Address
    • Collateral Factor & Reserve Factor
    • Interest Rate Model
    • Price Oracle
  • Developer
    • Developer
    • Data API
    • Subgraph (GraphQL)
  • Give Feedback
Powered by GitBook
On this page
  • Overview
  • Step by step guide

Was this helpful?

Flash Loans

Overview

C.R.E.A.M. 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 C.R.E.A.M. Flash Loans devs interact with CToken contract, instead of the lending pool.

  2. Flash Loan fee is 0.03%

Our BSC markets comply to EIP-3156 interfaces natively. The old flashloanLender is no longer workable. 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 funds 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 markets have Flash Loans

Step by step guide

PreviousC.R.E.A.M. FinanceNextLending Contract Address

Last updated 3 years ago

Was this helpful?

Please refer to Ethereum mainnet's .

Lending Contract Address
documentation