flashLoan()

Borrow an indicated amount from the liquidity pool

Function flashLoan()

    function flashLoan(
        Token token,
        uint256 amount,
        IFlashLoanRecipient recipient,
        bytes calldata data
    )
        external

Triggers a flashloan where the indicated amount is borrowed from the pool to execute the calldata and returned within an atomic transaction.

Flash loans must be returned in the same transaction they are borrowed.

Last updated