Flash lenders
Who can lend the flash loan behind a position, on which chains, what each one charges, and how the lender for your transaction is chosen.
Every open and every close starts by borrowing the loan token for the length of one transaction. The lender gets it back before the transaction ends, or the whole thing is cancelled. Several protocols will lend this way. They charge different amounts, and on any given day they hold very different amounts of any given token.
The lenders
A lender appears here only when its contract was read on that chain and matched what we reviewed. The address alone proves nothing. The same address can be a lender on one chain and something else entirely on another.
How one is chosen
The lender is chosen for each transaction. At the size you enter, every lender on the chain that holds enough of the token, and that the helper accepts, is ranked in this order. First, a lender whose fee was read goes ahead of one whose fee could not be read. Next, Uniswap v4 and PancakeSwap Infinity go after the others, because no aggregator can keep a swap out of their pools and such a swap cannot run inside their flash loan. Then by what each would charge for exactly that amount. Then a lender that limits no swap route goes ahead of one that does. Then by liquidity. So a lender whose fee could not be read ranks after Uniswap v4. When you sign, the best few are read again from the chain at the real amount, and the fee you agree to cannot be higher than what was read. The Execution Plan names the lender that was chosen, what it charges and what it holds, and lists the other lenders next to it.
A lender whose balance could not be read is never treated as empty. If no lender that was read can fund the transaction, the unread lenders are tried one after another, in the same order, and a simulation of the real transaction decides. A Morpho market always borrows from Morpho Blue, which charges nothing.
Routes a lender cannot share
Some lenders lock their own pools while they lend. A swap that passes through a Uniswap v4 pool cannot run inside a Uniswap v4 flash loan. The same is true for PancakeSwap Infinity and Balancer V2. No aggregator can reliably keep its route out of those pools when asked. So the real transaction is simulated with the chosen lender before you sign, and if every route fails with it, the next lender is tried.
Reading the table
- chosen
- The lender this transaction borrows from.
- costlier
- Could fund it, and would charge more at this size.
- ranked lower
- Could fund it, and lost on the routes it rules out, on an unread fee, or at the same fee on liquidity.
- thin
- Answered, but holds less than this transaction needs with room to spare.
- unmeasured
- Could not be read. Never counted as empty, and never a reason to refuse.
- flash disabled
- The lender has switched flash loans off for this token.
- Morpho only
- A Morpho market, which always borrows from Morpho Blue.
- snapshot or live
- How old the balance is. A snapshot must clear the need by a wider margin than a live read.