mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
22 lines
799 B
Solidity
22 lines
799 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity ^0.6.8;
|
|
|
|
import {SafeMath} from '../../dependencies/openzeppelin/contracts/SafeMath.sol';
|
|
import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol';
|
|
import {IFlashLoanReceiver} from '../interfaces/IFlashLoanReceiver.sol';
|
|
import {ILendingPoolAddressesProvider} from '../../interfaces/ILendingPoolAddressesProvider.sol';
|
|
import {SafeERC20} from '../../dependencies/openzeppelin/contracts/SafeERC20.sol';
|
|
|
|
abstract contract FlashLoanReceiverBase is IFlashLoanReceiver {
|
|
using SafeERC20 for IERC20;
|
|
using SafeMath for uint256;
|
|
|
|
ILendingPoolAddressesProvider internal _addressesProvider;
|
|
|
|
constructor(ILendingPoolAddressesProvider provider) public {
|
|
_addressesProvider = provider;
|
|
}
|
|
|
|
receive() external payable {}
|
|
}
|