mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
26 lines
834 B
Solidity
26 lines
834 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity 0.6.12;
|
|
|
|
import {ILendingPoolAddressesProvider} from '../../interfaces/ILendingPoolAddressesProvider.sol';
|
|
import {ILendingPool} from '../../interfaces/ILendingPool.sol';
|
|
|
|
/**
|
|
* @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 {
|
|
function executeOperation(
|
|
address[] calldata assets,
|
|
uint256[] calldata amounts,
|
|
uint256[] calldata premiums,
|
|
address initiator,
|
|
bytes calldata params
|
|
) external returns (bool);
|
|
|
|
function getAddressesProvider() external view returns (ILendingPoolAddressesProvider);
|
|
|
|
function getLendingPool() external view returns (ILendingPool);
|
|
}
|