@@ -5,15 +5,13 @@ import "../interfaces/ISynth.sol";
5
5
6
6
interface ISynthetix {
7
7
// Views
8
- function synths ( bytes32 currencyKey ) external view returns (ISynth );
8
+ function availableCurrencyKeys ( ) external view returns (bytes32 [] memory );
9
9
10
- function synthsByAddress ( address synthAddress ) external view returns (bytes32 );
10
+ function availableSynthCount ( ) external view returns (uint );
11
11
12
- function collateralisationRatio (address issuer ) external view returns (uint );
13
-
14
- function totalIssuedSynths (bytes32 currencyKey ) external view returns (uint );
12
+ function collateral (address account ) external view returns (uint );
15
13
16
- function totalIssuedSynthsExcludeEtherCollateral ( bytes32 currencyKey ) external view returns (uint );
14
+ function collateralisationRatio ( address issuer ) external view returns (uint );
17
15
18
16
function debtBalanceOf (address issuer , bytes32 currencyKey ) external view returns (uint );
19
17
@@ -22,6 +20,10 @@ interface ISynthetix {
22
20
view
23
21
returns (uint debtBalance , uint totalSystemValue );
24
22
23
+ function isWaitingPeriod (bytes32 currencyKey ) external view returns (bool );
24
+
25
+ function maxIssuableSynths (address issuer ) external view returns (uint maxIssuable );
26
+
25
27
function remainingIssuableSynths (address issuer )
26
28
external
27
29
view
@@ -31,24 +33,47 @@ interface ISynthetix {
31
33
uint totalSystemDebt
32
34
);
33
35
34
- function maxIssuableSynths ( address issuer ) external view returns (uint maxIssuable );
36
+ function synths ( bytes32 currencyKey ) external view returns (ISynth );
35
37
36
- function isWaitingPeriod (bytes32 currencyKey ) external view returns (bool );
38
+ function synthsByAddress (address synthAddress ) external view returns (bytes32 );
39
+
40
+ function totalIssuedSynths (bytes32 currencyKey ) external view returns (uint );
41
+
42
+ function totalIssuedSynthsExcludeEtherCollateral (bytes32 currencyKey ) external view returns (uint );
43
+
44
+ function transferableSynthetix (address account ) external view returns (uint );
37
45
38
46
// Mutative Functions
47
+ function burnSynths (uint amount ) external ;
48
+
49
+ function burnSynthsOnBehalf (address burnForAddress , uint amount ) external ;
50
+
51
+ function burnSynthsToTarget () external ;
52
+
53
+ function burnSynthsToTargetOnBehalf (address burnForAddress ) external ;
54
+
39
55
function exchange (
40
56
bytes32 sourceCurrencyKey ,
41
57
uint sourceAmount ,
42
58
bytes32 destinationCurrencyKey
43
59
) external returns (uint amountReceived );
44
60
45
- function issueSynths (uint amount ) external ;
61
+ function exchangeOnBehalf (
62
+ address exchangeForAddress ,
63
+ bytes32 sourceCurrencyKey ,
64
+ uint sourceAmount ,
65
+ bytes32 destinationCurrencyKey
66
+ ) external returns (uint amountReceived );
46
67
47
68
function issueMaxSynths () external ;
48
69
49
- function burnSynths ( uint amount ) external ;
70
+ function issueMaxSynthsOnBehalf ( address issueForAddress ) external ;
50
71
51
- function burnSynthsToTarget () external ;
72
+ function issueSynths (uint amount ) external ;
73
+
74
+ function issueSynthsOnBehalf (address issueForAddress , uint amount ) external ;
75
+
76
+ function mint () external returns (bool );
52
77
53
78
function settle (bytes32 currencyKey )
54
79
external
0 commit comments