tx · Fp8MBeMkygTfLAMnFb1R2VC3nid6t4ryUgBSzUhm9uHq 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh: -0.01000000 Waves 2023.05.17 10:30 [2581656] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves
{ "type": 13, "id": "Fp8MBeMkygTfLAMnFb1R2VC3nid6t4ryUgBSzUhm9uHq", "fee": 1000000, "feeAssetId": null, "timestamp": 1684308687684, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "46B6rbeeAUSazAmFcUXKQjRqGxyxbNYwgXLEz8yGXgyeAux7te4VSPn3AgAHFstPvBBSrtYwhmZB8LcUUtKx7PY5" ], "script": "base64:BgIeCAISBgoECAgBARIAEgMKAQESABIDCgEBEgQKAggIGQAJc2VwYXJhdG9yAgJfXwAOa2V5RXBvY2hMZW5ndGgJALkJAgkAzAgCAgIlcwkAzAgCAgtlcG9jaExlbmd0aAUDbmlsBQlzZXBhcmF0b3IAE2tleUVtaXNzaW9uQ29udHJhY3QJALkJAgkAzAgCAgIlcwkAzAgCAhBlbWlzc2lvbkNvbnRyYWN0BQNuaWwFCXNlcGFyYXRvcgATa2V5Qm9vc3RpbmdDb250cmFjdAkAuQkCCQDMCAICAiVzCQDMCAICEGJvb3N0aW5nQ29udHJhY3QFA25pbAUJc2VwYXJhdG9yAAxrZXlUaHJlc2hvbGQJALkJAgkAzAgCAgIlcwkAzAgCAg92b3RpbmdUaHJlc2hvbGQFA25pbAUJc2VwYXJhdG9yAA9rZXlSYXRlUGVyQmxvY2sJALkJAgkAzAgCAgQlcyVzCQDMCAICDHJhdGVQZXJCbG9jawkAzAgCAgdjdXJyZW50BQNuaWwFCXNlcGFyYXRvcgASa2V5UmF0ZVBlckJsb2NrTWF4CQC5CQIJAMwIAgIEJXMl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AYJAAIBAiJpbnN1ZmZpY2llbnQgaGVpZ2h0IGZvciBjb21wbGV0aW9uBQNuaWwDCQAAAgUGY2hlY2tzBQZjaGVja3MEDHZvdGluZ1Jlc3VsdAkAtQkCCQEFdmFsdWUBCQCiCAEJAQ9rZXlWb3RpbmdSZXN1bHQABQlzZXBhcmF0b3IED3ZvdGVzVG9JbmNyZWFzZQkBDXBhcnNlSW50VmFsdWUBCQCRAwIFDHZvdGluZ1Jlc3VsdAABBAt2b3Rlc1RvTm9uZQkBDXBhcnNlSW50VmFsdWUBCQCRAwIFDHZvdGluZ1Jlc3VsdAACBA92b3Rlc1RvRGVjcmVhc2UJAQ1wYXJzZUludFZhbHVlAQkAkQMCBQx2b3RpbmdSZXN1bHQAAwQIYWxsVm90ZXMJAGQCCQBkAgUPdm90ZXNUb0luY3JlYXNlBQt2b3Rlc1RvTm9uZQUPdm90ZXNUb0RlY3JlYXNlBAl0aHJlc2hvbGQJAQxnZXRJbnRPckZhaWwBBQxrZXlUaHJlc2hvbGQEB2FjdGlvbnMDAwkAZwIFCGFsbFZvdGVzBQl0aHJlc2hvbGQGBwUDbmlsBQNuaWwFB2FjdGlvbnMJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4A0FLFGQ==", "height": 2581656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FpMcHXZKes1tdv5PDmm3WTWjR1gUqfVCZYoVgmH6Y5DW Next: HqH4q7b9MnoFm2K46edyUPLitFdVdorLF8Xx1PL3z5Gj Diff:
Old | New | Differences | |
---|---|---|---|
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(G) | |
121 | - | func constructor (T,U,V,W | |
122 | - | let | |
121 | + | func constructor (T,U,V,W) = { | |
122 | + | let X = [if (isDefined(addressFromString(T))) | |
123 | 123 | then true | |
124 | 124 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(U))) | |
125 | 125 | then true | |
126 | - | else throw("Invalid emission contract address"), if (( | |
126 | + | else throw("Invalid emission contract address"), if ((V > 0)) | |
127 | 127 | then true | |
128 | - | else throw("Invalid voting duration"), if (( | |
128 | + | else throw("Invalid voting duration"), if ((W > 0)) | |
129 | 129 | then true | |
130 | 130 | else throw("invalid threshold")] | |
131 | - | if (( | |
132 | - | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, | |
131 | + | if ((X == X)) | |
132 | + | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W)], unit) | |
133 | 133 | else throw("Strict value is not equal to itself.") | |
134 | 134 | } | |
135 | 135 | ||
139 | 139 | func getRateChangeAmountsREADONLY () = { | |
140 | 140 | let N = getIntegerValue(x, g) | |
141 | 141 | let O = getIntegerValue(x, f) | |
142 | - | let | |
143 | - | $Tuple2(nil, M(N, O, | |
142 | + | let Y = getIntegerValue(this, h) | |
143 | + | $Tuple2(nil, M(N, O, Y)) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(G) | |
149 | - | func vote ( | |
150 | - | let | |
151 | - | let | |
149 | + | func vote (Z) = { | |
150 | + | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
151 | + | let X = [if ((aa > height)) | |
152 | 152 | then true | |
153 | - | else throw("too late to vote"), if (containsElement([1, 0, -1], | |
153 | + | else throw("too late to vote"), if (containsElement([1, 0, -1], Z)) | |
154 | 154 | then true | |
155 | 155 | else throw("not valid argument")] | |
156 | - | if (( | |
156 | + | if ((X == X)) | |
157 | 157 | then { | |
158 | - | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), | |
159 | - | let | |
158 | + | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), aa], nil) | |
159 | + | let ab = if ((J(u) > 0)) | |
160 | 160 | then true | |
161 | 161 | else throw("you don't have gwx") | |
162 | - | if (( | |
162 | + | if ((ab == ab)) | |
163 | 163 | then { | |
164 | 164 | let v = { | |
165 | 165 | let B = getString(r(toString(G.caller))) | |
167 | 167 | then { | |
168 | 168 | let C = B | |
169 | 169 | let v = split(C, a) | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | then ( | |
170 | + | let ac = v[1] | |
171 | + | let ad = v[2] | |
172 | + | let ae = if (if (if ((ad == "increase")) | |
173 | + | then (Z == 1) | |
174 | 174 | else false) | |
175 | 175 | then true | |
176 | - | else if (( | |
177 | - | then ( | |
176 | + | else if ((ad == "decrease")) | |
177 | + | then (Z == -1) | |
178 | 178 | else false) | |
179 | 179 | then true | |
180 | - | else if (( | |
181 | - | then ( | |
180 | + | else if ((ad == "none")) | |
181 | + | then (Z == 0) | |
182 | 182 | else false | |
183 | - | let | |
184 | - | then (J(u) == parseIntValue( | |
183 | + | let af = if (ae) | |
184 | + | then (J(u) == parseIntValue(ac)) | |
185 | 185 | else false | |
186 | - | let | |
187 | - | then | |
186 | + | let ag = if (if (ae) | |
187 | + | then af | |
188 | 188 | else false) | |
189 | 189 | then throw("you already voted") | |
190 | 190 | else invoke(this, "cancelVote", nil, nil) | |
191 | - | | |
191 | + | ag | |
192 | 192 | } | |
193 | 193 | else if ($isInstanceOf(B, "Unit")) | |
194 | 194 | then { | |
195 | - | let | |
196 | - | | |
195 | + | let ah = B | |
196 | + | ah | |
197 | 197 | } | |
198 | 198 | else throw("Match error") | |
199 | 199 | } | |
200 | 200 | if ((v == v)) | |
201 | 201 | then { | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
202 | + | let ai = split(value(getString(m())), a) | |
203 | + | let aj = ai[1] | |
204 | + | let ak = ai[2] | |
205 | + | let al = ai[3] | |
206 | + | let am = if ((Z == 1)) | |
207 | 207 | then { | |
208 | - | let | |
209 | - | [toString( | |
208 | + | let an = (parseIntValue(aj) + J(u)) | |
209 | + | [toString(an), ak, al] | |
210 | 210 | } | |
211 | - | else if (( | |
211 | + | else if ((Z == -1)) | |
212 | 212 | then { | |
213 | - | let | |
214 | - | [ | |
213 | + | let ao = (parseIntValue(ak) + J(u)) | |
214 | + | [aj, ak, toString(ao)] | |
215 | 215 | } | |
216 | 216 | else { | |
217 | - | let | |
218 | - | [ | |
217 | + | let ap = (parseIntValue(ak) + J(u)) | |
218 | + | [aj, toString(ap), al] | |
219 | 219 | } | |
220 | - | let | |
221 | - | let | |
222 | - | $Tuple2([StringEntry(m(), n( | |
220 | + | let aq = r(toString(G.caller)) | |
221 | + | let ac = t(toString(J(u)), Z) | |
222 | + | $Tuple2([StringEntry(m(), n(am[0], am[1], am[2])), StringEntry(aq, ac)], unit) | |
223 | 223 | } | |
224 | 224 | else throw("Strict value is not equal to itself.") | |
225 | 225 | } | |
232 | 232 | ||
233 | 233 | @Callable(G) | |
234 | 234 | func cancelVote () = { | |
235 | - | let | |
235 | + | let ar = if ((G.caller == this)) | |
236 | 236 | then toString(G.originCaller) | |
237 | 237 | else toString(G.caller) | |
238 | - | let | |
238 | + | let X = [if (isDefined(getString(m()))) | |
239 | 239 | then true | |
240 | 240 | else throw("no vote")] | |
241 | - | if (( | |
241 | + | if ((X == X)) | |
242 | 242 | then { | |
243 | - | let v = split(value(getString(r( | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
243 | + | let v = split(value(getString(r(ar))), a) | |
244 | + | let ac = v[1] | |
245 | + | let ad = v[2] | |
246 | + | let ai = split(value(getString(m())), a) | |
247 | + | let aj = ai[1] | |
248 | + | let ak = ai[2] | |
249 | + | let al = ai[3] | |
250 | + | let as = if ((ad == "increase")) | |
251 | 251 | then { | |
252 | - | let | |
253 | - | $Tuple2([StringEntry(m(), n(toString( | |
252 | + | let at = (parseIntValue(aj) - parseIntValue(ac)) | |
253 | + | $Tuple2([StringEntry(m(), n(toString(at), ak, al)), DeleteEntry(r(ar))], unit) | |
254 | 254 | } | |
255 | - | else if (( | |
255 | + | else if ((ad == "descrease")) | |
256 | 256 | then { | |
257 | - | let | |
258 | - | $Tuple2([StringEntry(m(), n( | |
257 | + | let au = (parseIntValue(al) - parseIntValue(ac)) | |
258 | + | $Tuple2([StringEntry(m(), n(aj, ak, toString(au))), DeleteEntry(r(ar))], unit) | |
259 | 259 | } | |
260 | 260 | else { | |
261 | - | let | |
262 | - | $Tuple2([StringEntry(m(), n( | |
261 | + | let ap = (parseIntValue(ak) - parseIntValue(ac)) | |
262 | + | $Tuple2([StringEntry(m(), n(aj, toString(ap), al)), DeleteEntry(r(ar))], unit) | |
263 | 263 | } | |
264 | - | | |
264 | + | as | |
265 | 265 | } | |
266 | 266 | else throw("Strict value is not equal to itself.") | |
267 | 267 | } | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(G) | |
272 | - | func setThreshold ( | |
273 | - | let | |
272 | + | func setThreshold (av) = { | |
273 | + | let X = [I(G), if ((av > 0)) | |
274 | 274 | then true | |
275 | 275 | else throw("invalid threshold")] | |
276 | - | if (( | |
277 | - | then $Tuple2([IntegerEntry(e, | |
276 | + | if ((X == X)) | |
277 | + | then $Tuple2([IntegerEntry(e, av)], unit) | |
278 | 278 | else throw("Strict value is not equal to itself.") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Callable(G) | |
284 | - | func finalize (ax | |
285 | - | let | |
286 | - | let | |
284 | + | func finalize (aw,ax) = { | |
285 | + | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
286 | + | let X = [if ((height >= aa)) | |
287 | 287 | then true | |
288 | 288 | else throw("insufficient height for completion")] | |
289 | - | if (( | |
289 | + | if ((X == X)) | |
290 | 290 | then { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
291 | + | let ai = split(value(getString(m())), a) | |
292 | + | let aj = parseIntValue(ai[1]) | |
293 | + | let ak = parseIntValue(ai[2]) | |
294 | + | let al = parseIntValue(ai[3]) | |
295 | + | let ay = ((aj + ak) + al) | |
296 | + | let W = k(e) | |
297 | + | let as = if (if ((ay >= W)) | |
298 | 298 | then true | |
299 | 299 | else false) | |
300 | 300 | then nil | |
301 | 301 | else nil | |
302 | - | | |
302 | + | as | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } |
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 | 120 | @Callable(G) | |
121 | - | func constructor (T,U,V,W | |
122 | - | let | |
121 | + | func constructor (T,U,V,W) = { | |
122 | + | let X = [if (isDefined(addressFromString(T))) | |
123 | 123 | then true | |
124 | 124 | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(U))) | |
125 | 125 | then true | |
126 | - | else throw("Invalid emission contract address"), if (( | |
126 | + | else throw("Invalid emission contract address"), if ((V > 0)) | |
127 | 127 | then true | |
128 | - | else throw("Invalid voting duration"), if (( | |
128 | + | else throw("Invalid voting duration"), if ((W > 0)) | |
129 | 129 | then true | |
130 | 130 | else throw("invalid threshold")] | |
131 | - | if (( | |
132 | - | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, | |
131 | + | if ((X == X)) | |
132 | + | then $Tuple2([StringEntry(d, T), StringEntry(c, U), IntegerEntry(b, V), IntegerEntry(e, W)], unit) | |
133 | 133 | else throw("Strict value is not equal to itself.") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | ||
138 | 138 | @Callable(G) | |
139 | 139 | func getRateChangeAmountsREADONLY () = { | |
140 | 140 | let N = getIntegerValue(x, g) | |
141 | 141 | let O = getIntegerValue(x, f) | |
142 | - | let | |
143 | - | $Tuple2(nil, M(N, O, | |
142 | + | let Y = getIntegerValue(this, h) | |
143 | + | $Tuple2(nil, M(N, O, Y)) | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(G) | |
149 | - | func vote ( | |
150 | - | let | |
151 | - | let | |
149 | + | func vote (Z) = { | |
150 | + | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
151 | + | let X = [if ((aa > height)) | |
152 | 152 | then true | |
153 | - | else throw("too late to vote"), if (containsElement([1, 0, -1], | |
153 | + | else throw("too late to vote"), if (containsElement([1, 0, -1], Z)) | |
154 | 154 | then true | |
155 | 155 | else throw("not valid argument")] | |
156 | - | if (( | |
156 | + | if ((X == X)) | |
157 | 157 | then { | |
158 | - | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), | |
159 | - | let | |
158 | + | let u = invoke(w, "getUserGwxAmountAtHeightREADONLY", [toString(G.caller), aa], nil) | |
159 | + | let ab = if ((J(u) > 0)) | |
160 | 160 | then true | |
161 | 161 | else throw("you don't have gwx") | |
162 | - | if (( | |
162 | + | if ((ab == ab)) | |
163 | 163 | then { | |
164 | 164 | let v = { | |
165 | 165 | let B = getString(r(toString(G.caller))) | |
166 | 166 | if ($isInstanceOf(B, "String")) | |
167 | 167 | then { | |
168 | 168 | let C = B | |
169 | 169 | let v = split(C, a) | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
173 | - | then ( | |
170 | + | let ac = v[1] | |
171 | + | let ad = v[2] | |
172 | + | let ae = if (if (if ((ad == "increase")) | |
173 | + | then (Z == 1) | |
174 | 174 | else false) | |
175 | 175 | then true | |
176 | - | else if (( | |
177 | - | then ( | |
176 | + | else if ((ad == "decrease")) | |
177 | + | then (Z == -1) | |
178 | 178 | else false) | |
179 | 179 | then true | |
180 | - | else if (( | |
181 | - | then ( | |
180 | + | else if ((ad == "none")) | |
181 | + | then (Z == 0) | |
182 | 182 | else false | |
183 | - | let | |
184 | - | then (J(u) == parseIntValue( | |
183 | + | let af = if (ae) | |
184 | + | then (J(u) == parseIntValue(ac)) | |
185 | 185 | else false | |
186 | - | let | |
187 | - | then | |
186 | + | let ag = if (if (ae) | |
187 | + | then af | |
188 | 188 | else false) | |
189 | 189 | then throw("you already voted") | |
190 | 190 | else invoke(this, "cancelVote", nil, nil) | |
191 | - | | |
191 | + | ag | |
192 | 192 | } | |
193 | 193 | else if ($isInstanceOf(B, "Unit")) | |
194 | 194 | then { | |
195 | - | let | |
196 | - | | |
195 | + | let ah = B | |
196 | + | ah | |
197 | 197 | } | |
198 | 198 | else throw("Match error") | |
199 | 199 | } | |
200 | 200 | if ((v == v)) | |
201 | 201 | then { | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
202 | + | let ai = split(value(getString(m())), a) | |
203 | + | let aj = ai[1] | |
204 | + | let ak = ai[2] | |
205 | + | let al = ai[3] | |
206 | + | let am = if ((Z == 1)) | |
207 | 207 | then { | |
208 | - | let | |
209 | - | [toString( | |
208 | + | let an = (parseIntValue(aj) + J(u)) | |
209 | + | [toString(an), ak, al] | |
210 | 210 | } | |
211 | - | else if (( | |
211 | + | else if ((Z == -1)) | |
212 | 212 | then { | |
213 | - | let | |
214 | - | [ | |
213 | + | let ao = (parseIntValue(ak) + J(u)) | |
214 | + | [aj, ak, toString(ao)] | |
215 | 215 | } | |
216 | 216 | else { | |
217 | - | let | |
218 | - | [ | |
217 | + | let ap = (parseIntValue(ak) + J(u)) | |
218 | + | [aj, toString(ap), al] | |
219 | 219 | } | |
220 | - | let | |
221 | - | let | |
222 | - | $Tuple2([StringEntry(m(), n( | |
220 | + | let aq = r(toString(G.caller)) | |
221 | + | let ac = t(toString(J(u)), Z) | |
222 | + | $Tuple2([StringEntry(m(), n(am[0], am[1], am[2])), StringEntry(aq, ac)], unit) | |
223 | 223 | } | |
224 | 224 | else throw("Strict value is not equal to itself.") | |
225 | 225 | } | |
226 | 226 | else throw("Strict value is not equal to itself.") | |
227 | 227 | } | |
228 | 228 | else throw("Strict value is not equal to itself.") | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(G) | |
234 | 234 | func cancelVote () = { | |
235 | - | let | |
235 | + | let ar = if ((G.caller == this)) | |
236 | 236 | then toString(G.originCaller) | |
237 | 237 | else toString(G.caller) | |
238 | - | let | |
238 | + | let X = [if (isDefined(getString(m()))) | |
239 | 239 | then true | |
240 | 240 | else throw("no vote")] | |
241 | - | if (( | |
241 | + | if ((X == X)) | |
242 | 242 | then { | |
243 | - | let v = split(value(getString(r( | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | let | |
243 | + | let v = split(value(getString(r(ar))), a) | |
244 | + | let ac = v[1] | |
245 | + | let ad = v[2] | |
246 | + | let ai = split(value(getString(m())), a) | |
247 | + | let aj = ai[1] | |
248 | + | let ak = ai[2] | |
249 | + | let al = ai[3] | |
250 | + | let as = if ((ad == "increase")) | |
251 | 251 | then { | |
252 | - | let | |
253 | - | $Tuple2([StringEntry(m(), n(toString( | |
252 | + | let at = (parseIntValue(aj) - parseIntValue(ac)) | |
253 | + | $Tuple2([StringEntry(m(), n(toString(at), ak, al)), DeleteEntry(r(ar))], unit) | |
254 | 254 | } | |
255 | - | else if (( | |
255 | + | else if ((ad == "descrease")) | |
256 | 256 | then { | |
257 | - | let | |
258 | - | $Tuple2([StringEntry(m(), n( | |
257 | + | let au = (parseIntValue(al) - parseIntValue(ac)) | |
258 | + | $Tuple2([StringEntry(m(), n(aj, ak, toString(au))), DeleteEntry(r(ar))], unit) | |
259 | 259 | } | |
260 | 260 | else { | |
261 | - | let | |
262 | - | $Tuple2([StringEntry(m(), n( | |
261 | + | let ap = (parseIntValue(ak) - parseIntValue(ac)) | |
262 | + | $Tuple2([StringEntry(m(), n(aj, toString(ap), al)), DeleteEntry(r(ar))], unit) | |
263 | 263 | } | |
264 | - | | |
264 | + | as | |
265 | 265 | } | |
266 | 266 | else throw("Strict value is not equal to itself.") | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(G) | |
272 | - | func setThreshold ( | |
273 | - | let | |
272 | + | func setThreshold (av) = { | |
273 | + | let X = [I(G), if ((av > 0)) | |
274 | 274 | then true | |
275 | 275 | else throw("invalid threshold")] | |
276 | - | if (( | |
277 | - | then $Tuple2([IntegerEntry(e, | |
276 | + | if ((X == X)) | |
277 | + | then $Tuple2([IntegerEntry(e, av)], unit) | |
278 | 278 | else throw("Strict value is not equal to itself.") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | ||
283 | 283 | @Callable(G) | |
284 | - | func finalize (ax | |
285 | - | let | |
286 | - | let | |
284 | + | func finalize (aw,ax) = { | |
285 | + | let aa = (value(getInteger(l())) + value(getInteger(b))) | |
286 | + | let X = [if ((height >= aa)) | |
287 | 287 | then true | |
288 | 288 | else throw("insufficient height for completion")] | |
289 | - | if (( | |
289 | + | if ((X == X)) | |
290 | 290 | then { | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
291 | + | let ai = split(value(getString(m())), a) | |
292 | + | let aj = parseIntValue(ai[1]) | |
293 | + | let ak = parseIntValue(ai[2]) | |
294 | + | let al = parseIntValue(ai[3]) | |
295 | + | let ay = ((aj + ak) + al) | |
296 | + | let W = k(e) | |
297 | + | let as = if (if ((ay >= W)) | |
298 | 298 | then true | |
299 | 299 | else false) | |
300 | 300 | then nil | |
301 | 301 | else nil | |
302 | - | | |
302 | + | as | |
303 | 303 | } | |
304 | 304 | else throw("Strict value is not equal to itself.") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 |
github/deemru/w8io/026f985 77.47 ms ◑