Branch data Line data Source code
1 : : // SPDX-License-Identifier: MIT
2 : : pragma solidity ^0.8.10;
3 : :
4 : : import {IFlashLoanReceiver} from '../interfaces/IFlashLoanReceiver.sol';
5 : : import {IPoolAddressesProvider} from '../../../interfaces/IPoolAddressesProvider.sol';
6 : : import {IPool} from '../../../interfaces/IPool.sol';
7 : :
8 : : /**
9 : : * @title FlashLoanReceiverBase
10 : : * @author Aave
11 : : * @notice Base contract to develop a flashloan-receiver contract.
12 : : */
13 : : abstract contract FlashLoanReceiverBase is IFlashLoanReceiver {
14 : : IPoolAddressesProvider public immutable override ADDRESSES_PROVIDER;
15 : : IPool public immutable override POOL;
16 : :
17 : : constructor(IPoolAddressesProvider provider) {
18 : 0 : ADDRESSES_PROVIDER = provider;
19 : 0 : POOL = IPool(provider.getPool());
20 : : }
21 : : }
|