-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBorrowerOperationsStorage.sol
More file actions
55 lines (39 loc) · 1.69 KB
/
BorrowerOperationsStorage.sol
File metadata and controls
55 lines (39 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
import "./Interfaces/IActivePool.sol";
import "./Interfaces/IBorrowerOperations.sol";
import "./Interfaces/ITroveManager.sol";
import "./Interfaces/IZUSDToken.sol";
import "./Interfaces/ICollSurplusPool.sol";
import "./Interfaces/ISortedTroves.sol";
import "./Interfaces/IZEROStaking.sol";
import "./Interfaces/IFeeDistributor.sol";
import "./Dependencies/Ownable.sol";
import "./Dependencies/Mynt/IMassetManager.sol";
import "./Interfaces/IRedemptionBuffer.sol";
contract BorrowerOperationsStorage is Ownable {
string public constant NAME = "BorrowerOperations";
// --- Connected contract declarations ---
ITroveManager public troveManager;
address stabilityPoolAddress;
address gasPoolAddress;
ICollSurplusPool collSurplusPool;
IZEROStaking public zeroStaking;
address public zeroStakingAddress;
IZUSDToken public zusdToken;
// A doubly linked list of Troves, sorted by their collateral ratios
ISortedTroves public sortedTroves;
IMassetManager public massetManager;
IFeeDistributor public feeDistributor;
// --- Redemption buffer config ---
// Redemption buffer contract used to hold protocol RBTC
IRedemptionBuffer internal redemptionBuffer;
// Fraction of incoming RBTC sent to the buffer on openTrove.
// 1e18 == 100%, e.g. 1e17 == 10%.
uint256 internal redemptionBufferRate;
// ---------------------------------------------------------------------
// Reentrancy guard (BorrowerOperations only)
// ---------------------------------------------------------------------
// 0 = uninitialized, 1 = not entered, 2 = entered
uint256 internal _reentrancyStatus;
}