View Source: contracts/TroveManagerStorage.sol
↗ Extends: Ownable, BaseMath ↘ Derived Contracts: TroveManagerBase, TroveManagerBase1MinuteBootstrap
TroveManagerStorage
Enums
enum Status {
nonExistent,
active,
closedByOwner,
closedByLiquidation,
closedByRedemption
}
struct Trove {
uint256 debt,
uint256 coll,
uint256 stake,
enum TroveManagerStorage.Status status,
uint128 arrayIndex
}
struct RewardSnapshot {
uint256 ETH,
uint256 ZUSDDebt
}
Constants & Variables
//public members
string public constant NAME;
address public troveManagerRedeemOps;
address public borrowerOperationsAddress;
contract IStabilityPool public _stabilityPool;
contract IZUSDToken public _zusdToken;
contract IZEROToken public _zeroToken;
contract IZEROStaking public _zeroStaking;
contract IFeeDistributor public feeDistributor;
contract ISortedTroves public sortedTroves;
uint256 public baseRate;
uint256 public lastFeeOperationTime;
mapping(address => struct TroveManagerStorage.Trove) public Troves;
uint256 public totalStakes;
uint256 public totalStakesSnapshot;
uint256 public totalCollateralSnapshot;
uint256 public L_ETH;
uint256 public L_ZUSDDebt;
mapping(address => struct TroveManagerStorage.RewardSnapshot) public rewardSnapshots;
address[] public TroveOwners;
uint256 public lastETHError_Redistribution;
uint256 public lastZUSDDebtError_Redistribution;
//internal members
address internal gasPoolAddress;
contract ICollSurplusPool internal collSurplusPool;
- ActivePool
- ActivePoolStorage
- BaseMath
- BorrowerOperations
- BorrowerOperationsScript
- BorrowerOperationsStorage
- BorrowerWrappersScript
- CheckContract
- CollSurplusPool
- CollSurplusPoolStorage
- console
- Context
- DefaultPool
- DefaultPoolStorage
- DocsCover
- DSAuth
- DSAuthEvents
- DSAuthority
- DSNote
- DSProxy
- DSProxyCache
- DSProxyFactory
- ERC20
- ETHTransferScript
- FeeDistributor
- FeeDistributorStorage
- GasPool
- HintHelpers
- HintHelpersStorage
- IActivePool
- IBalanceRedirectPresale
- IBorrowerOperations
- ICollSurplusPool
- IDefaultPool
- IERC20
- IERC2612
- IExternalPriceFeed
- IFeeDistributor
- IFeeSharingProxy
- ILiquityBase
- ILiquityBaseParams
- IMasset
- IMoCBaseOracle
- Initializable
- IPool
- IPriceFeed
- IRSKOracle
- ISortedTroves
- IStabilityPool
- ITroveManager
- IWrbtc
- IZUSDToken
- LiquityBase
- LiquityBaseParams
- LiquityMath
- LiquitySafeMath128
- MoCMedianizer
- MultiTroveGetter
- MultiTroveGetterStorage
- NueToken
- Ownable
- PriceFeed
- PriceFeedStorage
- ProxiableContract
- ProxiableContract2
- Proxy
- RskOracle
- SafeMath
- SortedTroves
- SortedTrovesStorage
- StabilityPool
- StabilityPoolScript
- StabilityPoolStorage
- Storage
- Storage2
- TokenScript
- TroveManager
- TroveManagerBase
- TroveManagerBase1MinuteBootstrap
- TroveManagerRedeemOps
- TroveManagerScript
- TroveManagerStorage
- UpgradableProxy
- ZUSDToken
- ZUSDTokenStorage