2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-11-27 14:15:05 +00:00
|
|
|
import {ILendingPoolAddressesProvider} from '../../interfaces/ILendingPoolAddressesProvider.sol';
|
|
|
|
import {ILendingPool} from '../../interfaces/ILendingPool.sol';
|
|
|
|
|
2020-05-29 16:45:37 +00:00
|
|
|
/**
|
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
|
|
|
|
**/
|
2020-05-29 16:45:37 +00:00
|
|
|
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,
|
2020-10-30 12:32:42 +00:00
|
|
|
address initiator,
|
2020-08-21 14:03:01 +00:00
|
|
|
bytes calldata params
|
2020-10-12 13:19:27 +00:00
|
|
|
) external returns (bool);
|
2020-11-27 14:15:05 +00:00
|
|
|
|
2020-11-30 11:02:34 +00:00
|
|
|
function ADDRESSES_PROVIDER() external view returns (ILendingPoolAddressesProvider);
|
2020-11-27 14:15:05 +00:00
|
|
|
|
2020-11-30 11:02:34 +00:00
|
|
|
function LENDING_POOL() external view returns (ILendingPool);
|
2020-05-29 16:45:37 +00:00
|
|
|
}
|