2020-09-16 10:16:51 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
2020-11-20 10:45:20 +00:00
|
|
|
pragma solidity 0.6.12;
|
2020-09-16 10:16:51 +00:00
|
|
|
|
|
|
|
import {UserConfiguration} from '../libraries/configuration/UserConfiguration.sol';
|
|
|
|
import {ReserveConfiguration} from '../libraries/configuration/ReserveConfiguration.sol';
|
|
|
|
import {ReserveLogic} from '../libraries/logic/ReserveLogic.sol';
|
2020-11-23 10:28:57 +00:00
|
|
|
import {ILendingPoolAddressesProvider} from '../../interfaces/ILendingPoolAddressesProvider.sol';
|
2020-11-24 13:53:34 +00:00
|
|
|
import {DataTypes} from '../libraries/types/DataTypes.sol';
|
2020-09-16 10:16:51 +00:00
|
|
|
|
|
|
|
contract LendingPoolStorage {
|
2020-11-24 13:53:34 +00:00
|
|
|
using ReserveLogic for DataTypes.ReserveData;
|
2020-11-24 15:17:27 +00:00
|
|
|
using ReserveConfiguration for DataTypes.ReserveConfigurationMap;
|
|
|
|
using UserConfiguration for DataTypes.UserConfigurationMap;
|
2020-09-16 10:16:51 +00:00
|
|
|
|
|
|
|
ILendingPoolAddressesProvider internal _addressesProvider;
|
|
|
|
|
2020-11-24 13:53:34 +00:00
|
|
|
mapping(address => DataTypes.ReserveData) internal _reserves;
|
2020-11-24 15:17:27 +00:00
|
|
|
mapping(address => DataTypes.UserConfigurationMap) internal _usersConfig;
|
2020-09-16 10:16:51 +00:00
|
|
|
|
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 _paused;
|
2021-01-28 10:05:19 +00:00
|
|
|
|
|
|
|
uint256 internal _maxStableRateBorrowSizePercent;
|
|
|
|
|
|
|
|
uint256 internal _flashLoanPremiumTotal;
|
|
|
|
|
|
|
|
uint256 internal _maxNumberOfReserves;
|
2020-09-16 10:16:51 +00:00
|
|
|
}
|