tx · 3rumRM2sxAoLHRrmj6QFirWw72dUrnBugoEkG5231xGq 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.05.17 11:13 [2581693] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "3rumRM2sxAoLHRrmj6QFirWw72dUrnBugoEkG5231xGq", "fee": 1000000, "feeAssetId": null, "timestamp": 1684311215271, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "4BKV5F5aVBiZtFqNcfBkw7bPdFGyrGPEUSFTH8MbhkQNQrL2ZPtUP7o5CPDDQZ4TjmxAHnxah6qfLfnrzSQtKqrB" ], "script": "base64:BgIbCAISBwoFCAgBAQESABIDCgEBEgASAwoBARIAGgAJc2VwYXJhdG9yAgJfXwAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFyYXRvcgASa2V5UmF0ZVBlckJsb2NrTWF4CQC5CQIJAMwIAgIEJXMlcwkAzA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lCAULJHQwODgwOTg4ODkCXzMECXZvdGVzTGlzdAkAzAgCBQ92b3Rlc1RvSW5jcmVhc2UJAMwIAgULdm90ZXNUb05vbmUJAMwIAgUPdm90ZXNUb0RlY3JlYXNlBQNuaWwEB2FjdGlvbnMDCQBmAgUJdGhyZXNob2xkBQhhbGxWb3RlcwUDbmlsAwkAAAIFC3ZvdGVzVG9Ob25lCQCWAwEFCXZvdGVzTGlzdAkAzAgCCQELU3RyaW5nRW50cnkCAgNmb28CBE5PTkUFA25pbAMJAAACBQ92b3Rlc1RvSW5jcmVhc2UJAJYDAQUJdm90ZXNMaXN0CQDMCAIJAQtTdHJpbmdFbnRyeQICA2ZvbwIDSU5DBQNuaWwJAMwIAgkBC1N0cmluZ0VudHJ5AgIDZm9vAgNERUMFA25pbAUHYWN0aW9ucwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAJwDcT", "height": 2581693, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DpmvtTasrt98ejUqEgP7ocHmstWxCAMJf5kLLgK9RQnz Next: 6HAYEmA4ZGBVsGuw6R1KU3YyEyXRLTfK1G5S5TnkVVtM Diff:
Old | New | Differences | |
---|---|---|---|
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | + | func T () = { | |
121 | + | let N = getIntegerValue(x, g) | |
122 | + | let O = getIntegerValue(x, f) | |
123 | + | let U = getIntegerValue(this, h) | |
124 | + | M(N, O, U) | |
125 | + | } | |
126 | + | ||
127 | + | ||
120 | 128 | @Callable(G) | |
121 | - | func constructor ( | |
122 | - | let | |
129 | + | func constructor (V,W,X,Y,U) = { | |
130 | + | let Z = [if (isDefined(addressFromString(V))) | |
123 | 131 | then true | |
124 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString( | |
132 | + | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(W))) | |
125 | 133 | then true | |
126 | - | else throw("Invalid emission contract address"), if (( | |
134 | + | else throw("Invalid emission contract address"), if ((X > 0)) | |
127 | 135 | then true | |
128 | - | else throw("Invalid voting duration"), if (( | |
136 | + | else throw("Invalid voting duration"), if ((Y > 0)) | |
129 | 137 | then true | |
130 | - | else throw("invalid threshold"), if (( | |
138 | + | else throw("invalid threshold"), if ((U > 0)) | |
131 | 139 | then true | |
132 | 140 | else throw("invalid rateChangeStep")] | |
133 | - | if (( | |
134 | - | then $Tuple2([StringEntry(d, | |
141 | + | if ((Z == Z)) | |
142 | + | then $Tuple2([StringEntry(d, V), StringEntry(c, W), IntegerEntry(b, X), IntegerEntry(e, Y), IntegerEntry(h, U), IntegerEntry(l(), height), StringEntry(m(), n("0", "0", "0"))], unit) | |
135 | 143 | else throw("Strict value is not equal to itself.") | |
136 | 144 | } | |
137 | 145 | ||
138 | 146 | ||
139 | 147 | ||
140 | 148 | @Callable(G) | |
141 | - | func getRateChangeAmountsREADONLY () = { | |
142 | - | let N = getIntegerValue(x, g) | |
143 | - | let O = getIntegerValue(x, f) | |
144 | - | let X = getIntegerValue(this, h) | |
145 | - | $Tuple2(nil, M(N, O, X)) | |
146 | - | } | |
149 | + | func getRateChangeAmountsREADONLY () = $Tuple2(nil, T()) | |
147 | 150 | ||
148 | 151 | ||
149 | 152 | ||
150 | 153 | @Callable(G) | |
151 | - | func vote ( | |
152 | - | let | |
153 | - | let | |
154 | + | func vote (aa) = { | |
155 | + | let ab = (value(getInteger(l())) + value(getInteger(b))) | |
156 | + | let Z = [if ((ab > height)) | |
154 | 157 | then true | |
155 | - | else throw("too late to vote"), if (containsElement([1, 0, -1], | |
158 | + | else throw("too late to vote"), if (containsElement([1, 0, -1], aa)) | |
156 | 159 | then true | |
157 | 160 | else throw("not valid argument")] | |
158 | - | if (( | |
161 | + | if ((Z == Z)) | |
159 | 162 | then { | |
160 | - | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), | |
161 | - | let | |
163 | + | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), ab], nil) | |
164 | + | let ac = if ((J(u) > 0)) | |
162 | 165 | then true | |
163 | 166 | else throw("you don't have gwx") | |
164 | - | if (( | |
167 | + | if ((ac == ac)) | |
165 | 168 | then { | |
166 | 169 | let v = { | |
167 | 170 | let B = getString(r(toString(G.caller))) | |
169 | 172 | then { | |
170 | 173 | let C = B | |
171 | 174 | let v = split(C, a) | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | then ( | |
175 | + | let ad = v[1] | |
176 | + | let ae = v[2] | |
177 | + | let af = if (if (if ((ae == "increase")) | |
178 | + | then (aa == 1) | |
176 | 179 | else false) | |
177 | 180 | then true | |
178 | - | else if (( | |
179 | - | then ( | |
181 | + | else if ((ae == "decrease")) | |
182 | + | then (aa == -1) | |
180 | 183 | else false) | |
181 | 184 | then true | |
182 | - | else if (( | |
183 | - | then ( | |
185 | + | else if ((ae == "none")) | |
186 | + | then (aa == 0) | |
184 | 187 | else false | |
185 | - | let | |
186 | - | then (J(u) == parseIntValue( | |
188 | + | let ag = if (af) | |
189 | + | then (J(u) == parseIntValue(ad)) | |
187 | 190 | else false | |
188 | - | let | |
189 | - | then | |
191 | + | let ah = if (if (af) | |
192 | + | then ag | |
190 | 193 | else false) | |
191 | 194 | then throw("you already voted") | |
192 | 195 | else invoke(this, "cancelVote", nil, nil) | |
193 | - | | |
196 | + | ah | |
194 | 197 | } | |
195 | 198 | else if ($isInstanceOf(B, "Unit")) | |
196 | 199 | then { | |
197 | - | let | |
198 | - | | |
200 | + | let ai = B | |
201 | + | ai | |
199 | 202 | } | |
200 | 203 | else throw("Match error") | |
201 | 204 | } | |
202 | 205 | if ((v == v)) | |
203 | 206 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
207 | + | let aj = split(value(getString(m())), a) | |
208 | + | let ak = aj[1] | |
209 | + | let al = aj[2] | |
210 | + | let am = aj[3] | |
211 | + | let an = if ((aa == 1)) | |
209 | 212 | then { | |
210 | - | let | |
211 | - | [toString( | |
213 | + | let ao = (parseIntValue(ak) + J(u)) | |
214 | + | [toString(ao), al, am] | |
212 | 215 | } | |
213 | - | else if (( | |
216 | + | else if ((aa == -1)) | |
214 | 217 | then { | |
215 | - | let | |
216 | - | [ | |
218 | + | let ap = (parseIntValue(al) + J(u)) | |
219 | + | [ak, al, toString(ap)] | |
217 | 220 | } | |
218 | 221 | else { | |
219 | - | let | |
220 | - | [ | |
222 | + | let aq = (parseIntValue(al) + J(u)) | |
223 | + | [ak, toString(aq), am] | |
221 | 224 | } | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple2([StringEntry(m(), n( | |
225 | + | let ar = r(toString(G.caller)) | |
226 | + | let ad = t(toString(J(u)), aa) | |
227 | + | $Tuple2([StringEntry(m(), n(an[0], an[1], an[2])), StringEntry(ar, ad)], unit) | |
225 | 228 | } | |
226 | 229 | else throw("Strict value is not equal to itself.") | |
227 | 230 | } | |
234 | 237 | ||
235 | 238 | @Callable(G) | |
236 | 239 | func cancelVote () = { | |
237 | - | let | |
240 | + | let as = if ((G.caller == this)) | |
238 | 241 | then toString(G.originCaller) | |
239 | 242 | else toString(G.caller) | |
240 | - | let | |
243 | + | let Z = [if (isDefined(getString(m()))) | |
241 | 244 | then true | |
242 | 245 | else throw("no vote")] | |
243 | - | if (( | |
246 | + | if ((Z == Z)) | |
244 | 247 | then { | |
245 | - | let v = split(value(getString(r( | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
248 | + | let v = split(value(getString(r(as))), a) | |
249 | + | let ad = v[1] | |
250 | + | let ae = v[2] | |
251 | + | let aj = split(value(getString(m())), a) | |
252 | + | let ak = aj[1] | |
253 | + | let al = aj[2] | |
254 | + | let am = aj[3] | |
255 | + | let at = if ((ae == "increase")) | |
253 | 256 | then { | |
254 | - | let | |
255 | - | $Tuple2([StringEntry(m(), n(toString( | |
257 | + | let au = (parseIntValue(ak) - parseIntValue(ad)) | |
258 | + | $Tuple2([StringEntry(m(), n(toString(au), al, am)), DeleteEntry(r(as))], unit) | |
256 | 259 | } | |
257 | - | else if (( | |
260 | + | else if ((ae == "decrease")) | |
258 | 261 | then { | |
259 | - | let | |
260 | - | $Tuple2([StringEntry(m(), n( | |
262 | + | let av = (parseIntValue(am) - parseIntValue(ad)) | |
263 | + | $Tuple2([StringEntry(m(), n(ak, al, toString(av))), DeleteEntry(r(as))], unit) | |
261 | 264 | } | |
262 | 265 | else { | |
263 | - | let | |
264 | - | $Tuple2([StringEntry(m(), n( | |
266 | + | let aq = (parseIntValue(al) - parseIntValue(ad)) | |
267 | + | $Tuple2([StringEntry(m(), n(ak, toString(aq), am)), DeleteEntry(r(as))], unit) | |
265 | 268 | } | |
266 | - | | |
269 | + | at | |
267 | 270 | } | |
268 | 271 | else throw("Strict value is not equal to itself.") | |
269 | 272 | } | |
271 | 274 | ||
272 | 275 | ||
273 | 276 | @Callable(G) | |
274 | - | func setThreshold ( | |
275 | - | let | |
277 | + | func setThreshold (aw) = { | |
278 | + | let Z = [I(G), if ((aw > 0)) | |
276 | 279 | then true | |
277 | 280 | else throw("invalid threshold")] | |
278 | - | if (( | |
279 | - | then $Tuple2([IntegerEntry(e, | |
281 | + | if ((Z == Z)) | |
282 | + | then $Tuple2([IntegerEntry(e, aw)], unit) | |
280 | 283 | else throw("Strict value is not equal to itself.") | |
281 | 284 | } | |
282 | 285 | ||
284 | 287 | ||
285 | 288 | @Callable(G) | |
286 | 289 | func finalize () = { | |
287 | - | let | |
288 | - | let | |
290 | + | let ab = (value(getInteger(l())) + value(getInteger(b))) | |
291 | + | let Z = [if ((height >= ab)) | |
289 | 292 | then true | |
290 | 293 | else throw("insufficient height for completion")] | |
291 | - | if (( | |
294 | + | if ((Z == Z)) | |
292 | 295 | then { | |
293 | - | let ai = split(value(getString(m())), a) | |
294 | - | let aj = parseIntValue(ai[1]) | |
295 | - | let ak = parseIntValue(ai[2]) | |
296 | - | let al = parseIntValue(ai[3]) | |
297 | - | let aw = ((aj + ak) + al) | |
298 | - | let W = k(e) | |
299 | - | let as = if (if ((aw >= W)) | |
300 | - | then true | |
301 | - | else false) | |
296 | + | let aj = split(value(getString(m())), a) | |
297 | + | let ak = parseIntValue(aj[1]) | |
298 | + | let al = parseIntValue(aj[2]) | |
299 | + | let am = parseIntValue(aj[3]) | |
300 | + | let ax = ((ak + al) + am) | |
301 | + | let Y = k(e) | |
302 | + | let ay = T() | |
303 | + | let R = ay._1 | |
304 | + | let az = ay._2 | |
305 | + | let S = ay._3 | |
306 | + | let aA = [ak, al, am] | |
307 | + | let at = if ((Y > ax)) | |
302 | 308 | then nil | |
303 | - | else nil | |
304 | - | as | |
309 | + | else if ((al == max(aA))) | |
310 | + | then [StringEntry("foo", "NONE")] | |
311 | + | else if ((ak == max(aA))) | |
312 | + | then [StringEntry("foo", "INC")] | |
313 | + | else [StringEntry("foo", "DEC")] | |
314 | + | at | |
305 | 315 | } | |
306 | 316 | else throw("Strict value is not equal to itself.") | |
307 | 317 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "epochLength"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "emissionContract"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "boostingContract"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "votingThreshold"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s%s", "ratePerBlock", "current"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s%s", "ratePerBlockMax", "current"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "rateChangeStep"], a) | |
19 | 19 | ||
20 | 20 | func i (j) = valueOrErrorMessage(getString(this, j), (j + " is not defined")) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func k (j) = valueOrErrorMessage(getInteger(this, j), (j + " is not defined")) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func l () = makeString(["%s", "startHeight"], a) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m () = makeString(["%s", "votingResult"], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func n (o,p,q) = makeString(["%d%d%d", o, p, q], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func r (s) = makeString(["%s%s", "vote", s], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func t (u,v) = { | |
39 | 39 | let j = if ((v == 1)) | |
40 | 40 | then makeString(["%d%s", u, "increase"], a) | |
41 | 41 | else if ((v == -1)) | |
42 | 42 | then makeString(["%d%s", u, "decrease"], a) | |
43 | 43 | else makeString(["%d%s", u, "none"], a) | |
44 | 44 | j | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let w = addressFromStringValue(i(d)) | |
49 | 49 | ||
50 | 50 | let x = addressFromStringValue(i(c)) | |
51 | 51 | ||
52 | 52 | func y () = "%s__managerPublicKey" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z () = "%s__managerVaultAddress" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func A () = { | |
59 | 59 | let B = getString(z()) | |
60 | 60 | if ($isInstanceOf(B, "String")) | |
61 | 61 | then { | |
62 | 62 | let C = B | |
63 | 63 | addressFromStringValue(C) | |
64 | 64 | } | |
65 | 65 | else this | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func D () = { | |
70 | 70 | let E = A() | |
71 | 71 | let B = getString(E, y()) | |
72 | 72 | if ($isInstanceOf(B, "String")) | |
73 | 73 | then { | |
74 | 74 | let C = B | |
75 | 75 | fromBase58String(C) | |
76 | 76 | } | |
77 | 77 | else if ($isInstanceOf(B, "Unit")) | |
78 | 78 | then unit | |
79 | 79 | else throw("Match error") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F (G) = { | |
84 | 84 | let B = D() | |
85 | 85 | if ($isInstanceOf(B, "ByteVector")) | |
86 | 86 | then { | |
87 | 87 | let H = B | |
88 | 88 | (G.callerPublicKey == H) | |
89 | 89 | } | |
90 | 90 | else if ($isInstanceOf(B, "Unit")) | |
91 | 91 | then (G.caller == this) | |
92 | 92 | else throw("Match error") | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func I (G) = if (F(G)) | |
97 | 97 | then true | |
98 | 98 | else throw("permission denied") | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func J (K) = { | |
102 | 102 | let B = K | |
103 | 103 | if ($isInstanceOf(B, "Int")) | |
104 | 104 | then { | |
105 | 105 | let L = B | |
106 | 106 | L | |
107 | 107 | } | |
108 | 108 | else throw("failed to cast into Integer") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func M (N,O,P) = { | |
113 | 113 | let Q = fraction(100, N, 120) | |
114 | 114 | let R = min([fraction((100 + P), O, 100), Q]) | |
115 | 115 | let S = max([fraction((100 - P), O, 100), 0]) | |
116 | 116 | $Tuple3(R, O, S) | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | + | func T () = { | |
121 | + | let N = getIntegerValue(x, g) | |
122 | + | let O = getIntegerValue(x, f) | |
123 | + | let U = getIntegerValue(this, h) | |
124 | + | M(N, O, U) | |
125 | + | } | |
126 | + | ||
127 | + | ||
120 | 128 | @Callable(G) | |
121 | - | func constructor ( | |
122 | - | let | |
129 | + | func constructor (V,W,X,Y,U) = { | |
130 | + | let Z = [if (isDefined(addressFromString(V))) | |
123 | 131 | then true | |
124 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString( | |
132 | + | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(W))) | |
125 | 133 | then true | |
126 | - | else throw("Invalid emission contract address"), if (( | |
134 | + | else throw("Invalid emission contract address"), if ((X > 0)) | |
127 | 135 | then true | |
128 | - | else throw("Invalid voting duration"), if (( | |
136 | + | else throw("Invalid voting duration"), if ((Y > 0)) | |
129 | 137 | then true | |
130 | - | else throw("invalid threshold"), if (( | |
138 | + | else throw("invalid threshold"), if ((U > 0)) | |
131 | 139 | then true | |
132 | 140 | else throw("invalid rateChangeStep")] | |
133 | - | if (( | |
134 | - | then $Tuple2([StringEntry(d, | |
141 | + | if ((Z == Z)) | |
142 | + | then $Tuple2([StringEntry(d, V), StringEntry(c, W), IntegerEntry(b, X), IntegerEntry(e, Y), IntegerEntry(h, U), IntegerEntry(l(), height), StringEntry(m(), n("0", "0", "0"))], unit) | |
135 | 143 | else throw("Strict value is not equal to itself.") | |
136 | 144 | } | |
137 | 145 | ||
138 | 146 | ||
139 | 147 | ||
140 | 148 | @Callable(G) | |
141 | - | func getRateChangeAmountsREADONLY () = { | |
142 | - | let N = getIntegerValue(x, g) | |
143 | - | let O = getIntegerValue(x, f) | |
144 | - | let X = getIntegerValue(this, h) | |
145 | - | $Tuple2(nil, M(N, O, X)) | |
146 | - | } | |
149 | + | func getRateChangeAmountsREADONLY () = $Tuple2(nil, T()) | |
147 | 150 | ||
148 | 151 | ||
149 | 152 | ||
150 | 153 | @Callable(G) | |
151 | - | func vote ( | |
152 | - | let | |
153 | - | let | |
154 | + | func vote (aa) = { | |
155 | + | let ab = (value(getInteger(l())) + value(getInteger(b))) | |
156 | + | let Z = [if ((ab > height)) | |
154 | 157 | then true | |
155 | - | else throw("too late to vote"), if (containsElement([1, 0, -1], | |
158 | + | else throw("too late to vote"), if (containsElement([1, 0, -1], aa)) | |
156 | 159 | then true | |
157 | 160 | else throw("not valid argument")] | |
158 | - | if (( | |
161 | + | if ((Z == Z)) | |
159 | 162 | then { | |
160 | - | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), | |
161 | - | let | |
163 | + | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), ab], nil) | |
164 | + | let ac = if ((J(u) > 0)) | |
162 | 165 | then true | |
163 | 166 | else throw("you don't have gwx") | |
164 | - | if (( | |
167 | + | if ((ac == ac)) | |
165 | 168 | then { | |
166 | 169 | let v = { | |
167 | 170 | let B = getString(r(toString(G.caller))) | |
168 | 171 | if ($isInstanceOf(B, "String")) | |
169 | 172 | then { | |
170 | 173 | let C = B | |
171 | 174 | let v = split(C, a) | |
172 | - | let | |
173 | - | let | |
174 | - | let | |
175 | - | then ( | |
175 | + | let ad = v[1] | |
176 | + | let ae = v[2] | |
177 | + | let af = if (if (if ((ae == "increase")) | |
178 | + | then (aa == 1) | |
176 | 179 | else false) | |
177 | 180 | then true | |
178 | - | else if (( | |
179 | - | then ( | |
181 | + | else if ((ae == "decrease")) | |
182 | + | then (aa == -1) | |
180 | 183 | else false) | |
181 | 184 | then true | |
182 | - | else if (( | |
183 | - | then ( | |
185 | + | else if ((ae == "none")) | |
186 | + | then (aa == 0) | |
184 | 187 | else false | |
185 | - | let | |
186 | - | then (J(u) == parseIntValue( | |
188 | + | let ag = if (af) | |
189 | + | then (J(u) == parseIntValue(ad)) | |
187 | 190 | else false | |
188 | - | let | |
189 | - | then | |
191 | + | let ah = if (if (af) | |
192 | + | then ag | |
190 | 193 | else false) | |
191 | 194 | then throw("you already voted") | |
192 | 195 | else invoke(this, "cancelVote", nil, nil) | |
193 | - | | |
196 | + | ah | |
194 | 197 | } | |
195 | 198 | else if ($isInstanceOf(B, "Unit")) | |
196 | 199 | then { | |
197 | - | let | |
198 | - | | |
200 | + | let ai = B | |
201 | + | ai | |
199 | 202 | } | |
200 | 203 | else throw("Match error") | |
201 | 204 | } | |
202 | 205 | if ((v == v)) | |
203 | 206 | then { | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
207 | + | let aj = split(value(getString(m())), a) | |
208 | + | let ak = aj[1] | |
209 | + | let al = aj[2] | |
210 | + | let am = aj[3] | |
211 | + | let an = if ((aa == 1)) | |
209 | 212 | then { | |
210 | - | let | |
211 | - | [toString( | |
213 | + | let ao = (parseIntValue(ak) + J(u)) | |
214 | + | [toString(ao), al, am] | |
212 | 215 | } | |
213 | - | else if (( | |
216 | + | else if ((aa == -1)) | |
214 | 217 | then { | |
215 | - | let | |
216 | - | [ | |
218 | + | let ap = (parseIntValue(al) + J(u)) | |
219 | + | [ak, al, toString(ap)] | |
217 | 220 | } | |
218 | 221 | else { | |
219 | - | let | |
220 | - | [ | |
222 | + | let aq = (parseIntValue(al) + J(u)) | |
223 | + | [ak, toString(aq), am] | |
221 | 224 | } | |
222 | - | let | |
223 | - | let | |
224 | - | $Tuple2([StringEntry(m(), n( | |
225 | + | let ar = r(toString(G.caller)) | |
226 | + | let ad = t(toString(J(u)), aa) | |
227 | + | $Tuple2([StringEntry(m(), n(an[0], an[1], an[2])), StringEntry(ar, ad)], unit) | |
225 | 228 | } | |
226 | 229 | else throw("Strict value is not equal to itself.") | |
227 | 230 | } | |
228 | 231 | else throw("Strict value is not equal to itself.") | |
229 | 232 | } | |
230 | 233 | else throw("Strict value is not equal to itself.") | |
231 | 234 | } | |
232 | 235 | ||
233 | 236 | ||
234 | 237 | ||
235 | 238 | @Callable(G) | |
236 | 239 | func cancelVote () = { | |
237 | - | let | |
240 | + | let as = if ((G.caller == this)) | |
238 | 241 | then toString(G.originCaller) | |
239 | 242 | else toString(G.caller) | |
240 | - | let | |
243 | + | let Z = [if (isDefined(getString(m()))) | |
241 | 244 | then true | |
242 | 245 | else throw("no vote")] | |
243 | - | if (( | |
246 | + | if ((Z == Z)) | |
244 | 247 | then { | |
245 | - | let v = split(value(getString(r( | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
248 | + | let v = split(value(getString(r(as))), a) | |
249 | + | let ad = v[1] | |
250 | + | let ae = v[2] | |
251 | + | let aj = split(value(getString(m())), a) | |
252 | + | let ak = aj[1] | |
253 | + | let al = aj[2] | |
254 | + | let am = aj[3] | |
255 | + | let at = if ((ae == "increase")) | |
253 | 256 | then { | |
254 | - | let | |
255 | - | $Tuple2([StringEntry(m(), n(toString( | |
257 | + | let au = (parseIntValue(ak) - parseIntValue(ad)) | |
258 | + | $Tuple2([StringEntry(m(), n(toString(au), al, am)), DeleteEntry(r(as))], unit) | |
256 | 259 | } | |
257 | - | else if (( | |
260 | + | else if ((ae == "decrease")) | |
258 | 261 | then { | |
259 | - | let | |
260 | - | $Tuple2([StringEntry(m(), n( | |
262 | + | let av = (parseIntValue(am) - parseIntValue(ad)) | |
263 | + | $Tuple2([StringEntry(m(), n(ak, al, toString(av))), DeleteEntry(r(as))], unit) | |
261 | 264 | } | |
262 | 265 | else { | |
263 | - | let | |
264 | - | $Tuple2([StringEntry(m(), n( | |
266 | + | let aq = (parseIntValue(al) - parseIntValue(ad)) | |
267 | + | $Tuple2([StringEntry(m(), n(ak, toString(aq), am)), DeleteEntry(r(as))], unit) | |
265 | 268 | } | |
266 | - | | |
269 | + | at | |
267 | 270 | } | |
268 | 271 | else throw("Strict value is not equal to itself.") | |
269 | 272 | } | |
270 | 273 | ||
271 | 274 | ||
272 | 275 | ||
273 | 276 | @Callable(G) | |
274 | - | func setThreshold ( | |
275 | - | let | |
277 | + | func setThreshold (aw) = { | |
278 | + | let Z = [I(G), if ((aw > 0)) | |
276 | 279 | then true | |
277 | 280 | else throw("invalid threshold")] | |
278 | - | if (( | |
279 | - | then $Tuple2([IntegerEntry(e, | |
281 | + | if ((Z == Z)) | |
282 | + | then $Tuple2([IntegerEntry(e, aw)], unit) | |
280 | 283 | else throw("Strict value is not equal to itself.") | |
281 | 284 | } | |
282 | 285 | ||
283 | 286 | ||
284 | 287 | ||
285 | 288 | @Callable(G) | |
286 | 289 | func finalize () = { | |
287 | - | let | |
288 | - | let | |
290 | + | let ab = (value(getInteger(l())) + value(getInteger(b))) | |
291 | + | let Z = [if ((height >= ab)) | |
289 | 292 | then true | |
290 | 293 | else throw("insufficient height for completion")] | |
291 | - | if (( | |
294 | + | if ((Z == Z)) | |
292 | 295 | then { | |
293 | - | let ai = split(value(getString(m())), a) | |
294 | - | let aj = parseIntValue(ai[1]) | |
295 | - | let ak = parseIntValue(ai[2]) | |
296 | - | let al = parseIntValue(ai[3]) | |
297 | - | let aw = ((aj + ak) + al) | |
298 | - | let W = k(e) | |
299 | - | let as = if (if ((aw >= W)) | |
300 | - | then true | |
301 | - | else false) | |
296 | + | let aj = split(value(getString(m())), a) | |
297 | + | let ak = parseIntValue(aj[1]) | |
298 | + | let al = parseIntValue(aj[2]) | |
299 | + | let am = parseIntValue(aj[3]) | |
300 | + | let ax = ((ak + al) + am) | |
301 | + | let Y = k(e) | |
302 | + | let ay = T() | |
303 | + | let R = ay._1 | |
304 | + | let az = ay._2 | |
305 | + | let S = ay._3 | |
306 | + | let aA = [ak, al, am] | |
307 | + | let at = if ((Y > ax)) | |
302 | 308 | then nil | |
303 | - | else nil | |
304 | - | as | |
309 | + | else if ((al == max(aA))) | |
310 | + | then [StringEntry("foo", "NONE")] | |
311 | + | else if ((ak == max(aA))) | |
312 | + | then [StringEntry("foo", "INC")] | |
313 | + | else [StringEntry("foo", "DEC")] | |
314 | + | at | |
305 | 315 | } | |
306 | 316 | else throw("Strict value is not equal to itself.") | |
307 | 317 | } | |
308 | 318 | ||
309 | 319 |
github/deemru/w8io/169f3d6 77.55 ms ◑