Not public yet. Contact us to get early access.
flashloan sources a flow input by borrowing the amount from a flashloan provider instead of pulling it from the signer. The borrowed amount is made available to the flow as its input, so the rest of the flow can spend capital the user doesnโt hold upfront.
Because a flashloan must be repaid in the same transaction, a flow that borrows via this materialiser must settle the loan (principal + the providerโs fee) before it ends โ typically with one or more lifi.flashloanRepay ops. If the loan isnโt repaid, simulation reverts.
Config:
Example
Borrow USDC via an Aave V3 flashloan and settle it within the flow:
For a complete, tested flow that uses two concurrent flashloans to migrate a borrow position, see the debt-migration recipe and aaveToMorphoDebtMigration.ts. For the minimal borrow-and-repay shape, see flashloanRepay.ts.