MorphoStorage
Inherits: OwnableUpgradeable, ReentrancyGuardUpgradeable
Author: Morpho Labs.
All storage variables used in Morpho contracts.
State Variables
CTOKEN_DECIMALS
GLOBAL STORAGE ///
uint8 public constant CTOKEN_DECIMALS = 8;
MAX_BASIS_POINTS
uint16 public constant MAX_BASIS_POINTS = 100_00;
WAD
uint256 public constant WAD = 1e18;
maxSortedUsers
uint256 public maxSortedUsers;
dustThreshold
uint256 public dustThreshold;
defaultMaxGasForMatching
Types.MaxGasForMatching public defaultMaxGasForMatching;
suppliersInP2P
POSITIONS STORAGE ///
mapping(address => DoubleLinkedList.List) internal suppliersInP2P;
suppliersOnPool
mapping(address => DoubleLinkedList.List) internal suppliersOnPool;
borrowersInP2P
mapping(address => DoubleLinkedList.List) internal borrowersInP2P;
borrowersOnPool
mapping(address => DoubleLinkedList.List) internal borrowersOnPool;
supplyBalanceInOf
mapping(address => mapping(address => Types.SupplyBalance)) public supplyBalanceInOf;
borrowBalanceInOf
mapping(address => mapping(address => Types.BorrowBalance)) public borrowBalanceInOf;
userMembership
mapping(address => mapping(address => bool)) public userMembership;
enteredMarkets
mapping(address => address[]) public enteredMarkets;
marketsCreated
MARKETS STORAGE ///
address[] internal marketsCreated;
p2pDisabled
mapping(address => bool) public p2pDisabled;
p2pSupplyIndex
mapping(address => uint256) public p2pSupplyIndex;
p2pBorrowIndex
mapping(address => uint256) public p2pBorrowIndex;
lastPoolIndexes
mapping(address => Types.LastPoolIndexes) public lastPoolIndexes;
marketParameters
mapping(address => Types.MarketParameters) public marketParameters;
marketStatus
mapping(address => Types.MarketStatus) public marketStatus;
deltas
mapping(address => Types.Delta) public deltas;
positionsManager
CONTRACTS AND ADDRESSES ///
IPositionsManager public positionsManager;
incentivesVault
address public incentivesVault;
rewardsManager
IRewardsManager public rewardsManager;
interestRatesManager
IInterestRatesManager public interestRatesManager;
comptroller
IComptroller public comptroller;
treasuryVault
address public treasuryVault;
cEth
address public cEth;
wEth
address public wEth;
lastBorrowBlock
APPENDIX STORAGE ///
mapping(address => uint256) public lastBorrowBlock;
isClaimRewardsPaused
bool public isClaimRewardsPaused;
marketPauseStatus
mapping(address => Types.MarketPauseStatus) public marketPauseStatus;
Functions
constructor
CONSTRUCTOR ///
Constructs the contract.
The contract is automatically marked as initialized when deployed so that nobody can highjack the implementation contract.
constructor() initializer;