2020-09-16 10:16:51 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
|
|
|
import {UserConfiguration} from '../libraries/configuration/UserConfiguration.sol';
|
|
|
|
import {ReserveConfiguration} from '../libraries/configuration/ReserveConfiguration.sol';
|
|
|
|
import {ReserveLogic} from '../libraries/logic/ReserveLogic.sol';
|
|
|
|
import {ILendingPoolAddressesProvider} from '../interfaces/ILendingPoolAddressesProvider.sol';
|
|
|
|
|
|
|
|
contract LendingPoolStorage {
|
|
|
|
using ReserveLogic for ReserveLogic.ReserveData;
|
|
|
|
using ReserveConfiguration for ReserveConfiguration.Map;
|
|
|
|
using UserConfiguration for UserConfiguration.Map;
|
|
|
|
|
|
|
|
ILendingPoolAddressesProvider internal _addressesProvider;
|
|
|
|
|
|
|
|
mapping(address => ReserveLogic.ReserveData) internal _reserves;
|
|
|
|
mapping(address => UserConfiguration.Map) internal _usersConfig;
|
|
|
|
// debt token address => user who gives allowance => user who receives allowance => amount
|
|
|
|
mapping(address => mapping(address => mapping(address => uint256))) internal _borrowAllowance;
|
|
|
|
|
2020-10-06 13:51:48 +00:00
|
|
|
// the list of the available reserves, structured as a mapping for gas savings reasons
|
|
|
|
mapping(uint256 => address) internal _reservesList;
|
|
|
|
|
|
|
|
uint256 internal _reservesCount;
|
2020-09-16 10:16:51 +00:00
|
|
|
|
|
|
|
bool internal _flashLiquidationLocked;
|
|
|
|
bool internal _paused;
|
|
|
|
}
|