aave-protocol-v2/contracts/flashloan/interfaces/IFlashLoanReceiver.sol

26 lines
830 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: agpl-3.0
2020-11-20 10:45:20 +00:00
pragma solidity 0.6.12;
import {ILendingPoolAddressesProvider} from '../../interfaces/ILendingPoolAddressesProvider.sol';
import {ILendingPool} from '../../interfaces/ILendingPool.sol';
/**
2020-07-13 08:54:08 +00:00
* @title IFlashLoanReceiver interface
* @notice Interface for the Aave fee IFlashLoanReceiver.
* @author Aave
* @dev implement this interface to develop a flashloan-compatible flashLoanReceiver contract
**/
interface IFlashLoanReceiver {
2020-07-13 08:54:08 +00:00
function executeOperation(
2020-10-23 16:41:08 +00:00
address[] calldata assets,
2020-10-22 18:37:50 +00:00
uint256[] calldata amounts,
uint256[] calldata premiums,
address initiator,
bytes calldata params
2020-10-12 13:19:27 +00:00
) external returns (bool);
2020-11-30 11:02:34 +00:00
function ADDRESSES_PROVIDER() external view returns (ILendingPoolAddressesProvider);
2020-11-30 11:02:34 +00:00
function LENDING_POOL() external view returns (ILendingPool);
}