LCOV - code coverage report
Current view: top level - misc/flashloan/base - FlashLoanSimpleReceiverBase.sol (source / functions) Coverage Total Hit
Test: lcov.info.p Lines: 100.0 % 2 2
Test Date: 2024-09-24 09:34:24 Functions: 100.0 % 1 1
Branches: - 0 0

             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                 :             : }
        

Generated by: LCOV version 2.1-1