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