Inherits: Initializable, Ownable2StepUpgradeable
Author: Morpho Labs
The storage shared by Morpho's contracts.
The address of Aave's pool.
IPool internal _pool;
The address of the pool addresses provider.
IPoolAddressesProvider internal _addressesProvider;
The e-mode category of the deployed Morpho.
uint8 internal _eModeCategoryId;
The list of created markets.
address internal _marketsCreated;
The markets data.
mapping(address => Types.Market) internal _market;
The markets balances data.
mapping(address => Types.MarketBalances) internal _marketBalances;
The collateral markets entered by users.
mapping(address => EnumerableSet.AddressSet) internal _userCollaterals;
The borrow markets entered by users.
mapping(address => EnumerableSet.AddressSet) internal _userBorrows;
Users allowances to manage other users' accounts. delegator => manager => isManagedBy
mapping(address => mapping(address => bool)) internal _isManagedBy;
The nonce of users. Used to prevent replay attacks with EIP-712 signatures.
mapping(address => uint256) internal _userNonce;
The default number of iterations to use in the matching process.
Types.Iterations internal _defaultIterations;
The address of the positions manager on which calls are delegated to.
address internal _positionsManager;
The address of the rewards manager to track pool rewards for users.
IRewardsManager internal _rewardsManager;
The address of the treasury vault, recipient of the reserve fee.
address internal _treasuryVault;
Whether claiming rewards is paused or not.
bool internal _isClaimRewardsPaused;
The implementation contract disables initialization upon deployment to avoid being hijacked.