1
1
package icon .inflation .score .pol ;
2
2
3
+ import static icon .inflation .score .util .Checks .onlyOwner ;
4
+ import static icon .inflation .score .util .Constants .EXA ;
5
+
3
6
import java .math .BigInteger ;
4
7
8
+ import com .eclipsesource .json .JsonArray ;
9
+ import com .eclipsesource .json .JsonObject ;
10
+ import com .eclipsesource .json .JsonValue ;
11
+
5
12
import icon .inflation .score .structs .LiquidityDistribution ;
6
13
import icon .inflation .score .util .DBUtils ;
7
- import score .Context ;
14
+ import score .Address ;
8
15
import score .ArrayDB ;
16
+ import score .Context ;
9
17
import score .VarDB ;
10
- import score .Address ;
11
18
import score .annotation .External ;
12
19
import score .annotation .Payable ;
13
20
14
- import com .eclipsesource .json .JsonObject ;
15
- import com .eclipsesource .json .JsonValue ;
16
- import com .eclipsesource .json .JsonArray ;
17
-
18
- import static icon .inflation .score .util .Constants .EXA ;
19
- import static icon .inflation .score .util .Checks .onlyOwner ;
20
-
21
21
public class ProofOfLiquidity {
22
22
23
23
public static final ArrayDB <LiquidityDistribution > distribution = Context .newArrayDB ("DISTRIBUTIONS" , LiquidityDistribution .class );
@@ -42,6 +42,42 @@ public String name() {
42
42
return NAME ;
43
43
}
44
44
45
+
46
+ @ External
47
+ public void setStaking (Address _staking ) {
48
+ onlyOwner ();
49
+ staking .set (_staking );
50
+ }
51
+
52
+ @ External (readonly = true )
53
+ public Address getStaking () {
54
+ return staking .get ();
55
+ }
56
+
57
+
58
+ @ External
59
+ public void setBalancedRewards (Address _balancedRewards ) {
60
+ onlyOwner ();
61
+ balancedRewards .set (_balancedRewards );
62
+ }
63
+
64
+ @ External (readonly = true )
65
+ public Address getBalancedRewards () {
66
+ return balancedRewards .get ();
67
+ }
68
+
69
+
70
+ @ External
71
+ public void setSICX (Address _sICX ) {
72
+ onlyOwner ();
73
+ sICX .set (_sICX );
74
+ }
75
+
76
+ @ External (readonly = true )
77
+ public Address getSICX () {
78
+ return sICX .get ();
79
+ }
80
+
45
81
@ External (readonly = true )
46
82
public LiquidityDistribution [] getDistributions () {
47
83
int size = distribution .size ();
@@ -103,6 +139,7 @@ public void distribute() {
103
139
}
104
140
105
141
142
+
106
143
@ External
107
144
public void tokenFallback (Address _from , BigInteger _value , byte [] _data ) {
108
145
}
0 commit comments