forked from Synthetixio/synthetix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmptyCollateralManager.sol
108 lines (81 loc) · 2.83 KB
/
EmptyCollateralManager.sol
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
pragma solidity ^0.5.16;
import "./interfaces/ICollateralManager.sol";
contract EmptyCollateralManager is ICollateralManager {
// Manager information
function hasCollateral(address) external view returns (bool) {
return false;
}
function isSynthManaged(bytes32) external view returns (bool) {
return false;
}
// State information
function long(bytes32) external view returns (uint amount) {
return 0;
}
function short(bytes32) external view returns (uint amount) {
return 0;
}
function totalLong() external view returns (uint susdValue, bool anyRateIsInvalid) {
return (0, false);
}
function totalShort() external view returns (uint susdValue, bool anyRateIsInvalid) {
return (0, false);
}
function getBorrowRate() external view returns (uint borrowRate, bool anyRateIsInvalid) {
return (0, false);
}
function getShortRate(bytes32) external view returns (uint shortRate, bool rateIsInvalid) {
return (0, false);
}
function getRatesAndTime(uint)
external
view
returns (
uint entryRate,
uint lastRate,
uint lastUpdated,
uint newIndex
)
{
return (0, 0, 0, 0);
}
function getShortRatesAndTime(bytes32, uint)
external
view
returns (
uint entryRate,
uint lastRate,
uint lastUpdated,
uint newIndex
)
{
return (0, 0, 0, 0);
}
function exceedsDebtLimit(uint, bytes32) external view returns (bool canIssue, bool anyRateIsInvalid) {
return (false, false);
}
function areSynthsAndCurrenciesSet(bytes32[] calldata, bytes32[] calldata) external view returns (bool) {
return false;
}
function areShortableSynthsSet(bytes32[] calldata, bytes32[] calldata) external view returns (bool) {
return false;
}
// Loans
function getNewLoanId() external returns (uint id) {
return 0;
}
// Manager mutative
function addCollaterals(address[] calldata) external {}
function removeCollaterals(address[] calldata) external {}
function addSynths(bytes32[] calldata, bytes32[] calldata) external {}
function removeSynths(bytes32[] calldata, bytes32[] calldata) external {}
function addShortableSynths(bytes32[2][] calldata, bytes32[] calldata) external {}
function removeShortableSynths(bytes32[] calldata) external {}
// State mutative
function updateBorrowRates(uint) external {}
function updateShortRates(bytes32, uint) external {}
function incrementLongs(bytes32, uint) external {}
function decrementLongs(bytes32, uint) external {}
function incrementShorts(bytes32, uint) external {}
function decrementShorts(bytes32, uint) external {}
}