tx · FnaSDvZJ9CqkxySJfcFzA1vj6Ux1DGV9bURgun74yWz5 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.02000000 Waves 2020.07.14 16:58 [1087090] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "FnaSDvZJ9CqkxySJfcFzA1vj6Ux1DGV9bURgun74yWz5", "fee": 2000000, "feeAssetId": null, "timestamp": 1594735040166, "version": 1, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "2QP9bt9U1hdpbCiuypEms7dyB2m5JsRfeGVw2YQcqQcCUggFndtRYRfZpBZX9S1GNQADneKnuEcTizCSpcB3srfY", "3rksjYewHLB78N7XdusBkTQG3MrKP6FYL477Fzk8kihJ2Np4m715hpS5HWSvi8SVbFUUDqATND1Ar1XMHAKQSNFC", "36qcJzJpGTfmZZ9k1yyHCtLKs2RYW9HmR1NhYB87QZhEY2Bx8M2y3XMDYAWhrpwggP4BjVV8Sy6jepbwp4Q9ceMs" ], "script": "base64:AAIDAAAAAAAAABcIARIDCgEIEgwKCgECAQIBAgECAQISAAAAABgBAAAAFmNvbnZlcnRXYXZlc1RvTmV1dHJpbm8AAAACAAAABmFtb3VudAAAAAVwcmljZQkAAGsAAAADCQAAawAAAAMFAAAABmFtb3VudAUAAAAFcHJpY2UAAAAAAAAPQkAAAAAAAAAPQkAAAAAAAAX14QABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAEAAAAYZ2V0TnVtYmVyQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdh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AAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAABAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADAfSrSg==", "chainId": 84, "height": 1087090, "spentComplexity": 0 } View: original | compacted Prev: 8Pw9hj1CRm5MpxfoV7SLVYn3bFhAceZW7gYwyAtVxViq Next: 8MMAPLgc1dx9wweySh4pAuwYek7XLArWYsFvws4y56t8 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = fraction(fraction(b, c, | |
4 | + | func a (b,c) = fraction(fraction(b, c, 1000000), 1000000, 100000000) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (e) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c) = fraction(fraction(b, c, | |
4 | + | func a (b,c) = fraction(fraction(b, c, 1000000), 1000000, 100000000) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func d (e) = { | |
8 | 8 | let f = getString(this, e) | |
9 | 9 | if ($isInstanceOf(f, "String")) | |
10 | 10 | then { | |
11 | 11 | let g = f | |
12 | 12 | g | |
13 | 13 | } | |
14 | 14 | else "" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h (i,e) = { | |
19 | 19 | let f = getInteger(addressFromStringValue(i), e) | |
20 | 20 | if ($isInstanceOf(f, "Int")) | |
21 | 21 | then { | |
22 | 22 | let g = f | |
23 | 23 | g | |
24 | 24 | } | |
25 | 25 | else 0 | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func j (k,l) = { | |
30 | 30 | let f = getInteger(addressFromPublicKey(k), ("price_" + toString(l))) | |
31 | 31 | if ($isInstanceOf(f, "Int")) | |
32 | 32 | then { | |
33 | 33 | let g = f | |
34 | 34 | g | |
35 | 35 | } | |
36 | 36 | else 0 | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func m (i,e) = { | |
41 | 41 | let f = getString(i, e) | |
42 | 42 | if ($isInstanceOf(f, "String")) | |
43 | 43 | then { | |
44 | 44 | let g = f | |
45 | 45 | g | |
46 | 46 | } | |
47 | 47 | else "" | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func n (o,p) = { | |
52 | 52 | let q = split(o, p) | |
53 | 53 | if ((take(q[1], 1) == ",")) | |
54 | 54 | then (q[0] + drop(q[1], 1)) | |
55 | 55 | else (dropRight(q[0], 1) + q[1]) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func r (s) = split(s, ",") | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | let c = { | |
63 | 63 | let f = getInteger(this, "price") | |
64 | 64 | if ($isInstanceOf(f, "Int")) | |
65 | 65 | then { | |
66 | 66 | let g = f | |
67 | 67 | g | |
68 | 68 | } | |
69 | 69 | else 0 | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | let t = { | |
73 | 73 | let f = getInteger(this, "price_index") | |
74 | 74 | if ($isInstanceOf(f, "Int")) | |
75 | 75 | then { | |
76 | 76 | let g = f | |
77 | 77 | g | |
78 | 78 | } | |
79 | 79 | else 0 | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | let u = { | |
83 | 83 | let f = getBoolean(this, "is_blocked") | |
84 | 84 | if ($isInstanceOf(f, "Boolean")) | |
85 | 85 | then { | |
86 | 86 | let g = f | |
87 | 87 | g | |
88 | 88 | } | |
89 | 89 | else false | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | let v = 25 | |
93 | 93 | ||
94 | 94 | let w = d("oracles") | |
95 | 95 | ||
96 | 96 | let x = r(w) | |
97 | 97 | ||
98 | 98 | let y = 3 | |
99 | 99 | ||
100 | 100 | let z = addressFromPublicKey(fromBase58String("BxuvXsg8sFXf7MNECYrdsEgrMMMkWVKKhbcFdoormLWF")) | |
101 | 101 | ||
102 | 102 | let A = addressFromPublicKey(fromBase58String("6PBV8fVJwLaUQbCyG7iqoKR3x1nqFRZFNeuN9qodoiTu")) | |
103 | 103 | ||
104 | 104 | let B = fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT") | |
105 | 105 | ||
106 | 106 | let C = { | |
107 | 107 | let f = getInteger(z, "balance_lock_neutrino") | |
108 | 108 | if ($isInstanceOf(f, "Int")) | |
109 | 109 | then { | |
110 | 110 | let g = f | |
111 | 111 | g | |
112 | 112 | } | |
113 | 113 | else 0 | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | let D = { | |
117 | 117 | let f = getInteger(z, "balance_lock_waves") | |
118 | 118 | if ($isInstanceOf(f, "Int")) | |
119 | 119 | then { | |
120 | 120 | let g = f | |
121 | 121 | g | |
122 | 122 | } | |
123 | 123 | else 0 | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | let E = (wavesBalance(z) - D) | |
127 | 127 | ||
128 | 128 | let F = (((C + extract(assetInfo(B)).quantity) - assetBalance(z, B)) - assetBalance(A, B)) | |
129 | 129 | ||
130 | 130 | let G = (F - a(E, c)) | |
131 | 131 | ||
132 | 132 | func H (I) = { | |
133 | 133 | let J = 90 | |
134 | 134 | let K = 110 | |
135 | 135 | let L = I[0] | |
136 | 136 | let M = if ((0 >= I[0])) | |
137 | 137 | then [0] | |
138 | 138 | else { | |
139 | 139 | let N = ((I[1] * 100) / L) | |
140 | 140 | let O = ((I[2] * 100) / L) | |
141 | 141 | let P = ((I[3] * 100) / L) | |
142 | 142 | let Q = ((I[4] * 100) / L) | |
143 | 143 | let R = if (if ((K > N)) | |
144 | 144 | then (N > J) | |
145 | 145 | else false) | |
146 | 146 | then [1, 0] | |
147 | 147 | else [0] | |
148 | 148 | let S = if (if ((K > O)) | |
149 | 149 | then (O > J) | |
150 | 150 | else false) | |
151 | 151 | then 2 :: R | |
152 | 152 | else R | |
153 | 153 | let T = if (if ((K > P)) | |
154 | 154 | then (P > J) | |
155 | 155 | else false) | |
156 | 156 | then 3 :: S | |
157 | 157 | else S | |
158 | 158 | if (if ((K > Q)) | |
159 | 159 | then (Q > J) | |
160 | 160 | else false) | |
161 | 161 | then 4 :: T | |
162 | 162 | else T | |
163 | 163 | } | |
164 | 164 | let U = if ((size(M) >= 3)) | |
165 | 165 | then M | |
166 | 166 | else { | |
167 | 167 | let V = I[1] | |
168 | 168 | if ((0 >= V)) | |
169 | 169 | then [1] | |
170 | 170 | else { | |
171 | 171 | let W = ((I[0] * 100) / V) | |
172 | 172 | let X = ((I[2] * 100) / V) | |
173 | 173 | let Y = ((I[3] * 100) / V) | |
174 | 174 | let Z = ((I[4] * 100) / V) | |
175 | 175 | let R = if (if ((K > W)) | |
176 | 176 | then (W > J) | |
177 | 177 | else false) | |
178 | 178 | then [0, 1] | |
179 | 179 | else [1] | |
180 | 180 | let S = if (if ((K > X)) | |
181 | 181 | then (X > J) | |
182 | 182 | else false) | |
183 | 183 | then 2 :: R | |
184 | 184 | else R | |
185 | 185 | let T = if (if ((K > Y)) | |
186 | 186 | then (Y > J) | |
187 | 187 | else false) | |
188 | 188 | then 3 :: S | |
189 | 189 | else S | |
190 | 190 | if (if ((K > Z)) | |
191 | 191 | then (Z > J) | |
192 | 192 | else false) | |
193 | 193 | then 4 :: T | |
194 | 194 | else T | |
195 | 195 | } | |
196 | 196 | } | |
197 | 197 | let aa = if ((size(U) >= 3)) | |
198 | 198 | then U | |
199 | 199 | else { | |
200 | 200 | let ab = I[2] | |
201 | 201 | if ((0 >= ab)) | |
202 | 202 | then [2] | |
203 | 203 | else { | |
204 | 204 | let ac = ((I[0] * 100) / ab) | |
205 | 205 | let ad = ((I[1] * 100) / ab) | |
206 | 206 | let ae = ((I[3] * 100) / ab) | |
207 | 207 | let af = ((I[4] * 100) / ab) | |
208 | 208 | let R = if (if ((K > ac)) | |
209 | 209 | then (ac > J) | |
210 | 210 | else false) | |
211 | 211 | then [0, 2] | |
212 | 212 | else [2] | |
213 | 213 | let S = if (if ((K > ad)) | |
214 | 214 | then (ad > J) | |
215 | 215 | else false) | |
216 | 216 | then 1 :: R | |
217 | 217 | else R | |
218 | 218 | let T = if (if ((K > ae)) | |
219 | 219 | then (ae > J) | |
220 | 220 | else false) | |
221 | 221 | then 3 :: S | |
222 | 222 | else S | |
223 | 223 | if (if ((K > af)) | |
224 | 224 | then (af > J) | |
225 | 225 | else false) | |
226 | 226 | then 4 :: T | |
227 | 227 | else T | |
228 | 228 | } | |
229 | 229 | } | |
230 | 230 | let ag = if ((size(aa) >= 3)) | |
231 | 231 | then aa | |
232 | 232 | else { | |
233 | 233 | let ah = I[3] | |
234 | 234 | if ((0 >= ah)) | |
235 | 235 | then [3] | |
236 | 236 | else { | |
237 | 237 | let ai = ((I[0] * 100) / ah) | |
238 | 238 | let aj = ((I[1] * 100) / ah) | |
239 | 239 | let ak = ((I[2] * 100) / ah) | |
240 | 240 | let al = ((I[4] * 100) / ah) | |
241 | 241 | let R = if (if ((K > ai)) | |
242 | 242 | then (ai > J) | |
243 | 243 | else false) | |
244 | 244 | then [0, 3] | |
245 | 245 | else [3] | |
246 | 246 | let S = if (if ((K > aj)) | |
247 | 247 | then (aj > J) | |
248 | 248 | else false) | |
249 | 249 | then 1 :: R | |
250 | 250 | else R | |
251 | 251 | let T = if (if ((K > ak)) | |
252 | 252 | then (ak > J) | |
253 | 253 | else false) | |
254 | 254 | then 2 :: S | |
255 | 255 | else S | |
256 | 256 | if (if ((K > al)) | |
257 | 257 | then (al > J) | |
258 | 258 | else false) | |
259 | 259 | then 4 :: T | |
260 | 260 | else T | |
261 | 261 | } | |
262 | 262 | } | |
263 | 263 | if ((size(ag) >= 3)) | |
264 | 264 | then ag | |
265 | 265 | else { | |
266 | 266 | let am = I[4] | |
267 | 267 | if ((0 >= am)) | |
268 | 268 | then [4] | |
269 | 269 | else { | |
270 | 270 | let an = ((I[0] * 100) / am) | |
271 | 271 | let ao = ((I[1] * 100) / am) | |
272 | 272 | let ap = ((I[2] * 100) / am) | |
273 | 273 | let aq = ((I[3] * 100) / am) | |
274 | 274 | let R = if (if ((K > an)) | |
275 | 275 | then (an > J) | |
276 | 276 | else false) | |
277 | 277 | then [0, 4] | |
278 | 278 | else [4] | |
279 | 279 | let S = if (if ((K > ao)) | |
280 | 280 | then (ao > J) | |
281 | 281 | else false) | |
282 | 282 | then 1 :: R | |
283 | 283 | else R | |
284 | 284 | let T = if (if ((K > ap)) | |
285 | 285 | then (ap > J) | |
286 | 286 | else false) | |
287 | 287 | then 2 :: S | |
288 | 288 | else S | |
289 | 289 | if (if ((K > aq)) | |
290 | 290 | then (aq > J) | |
291 | 291 | else false) | |
292 | 292 | then 3 :: T | |
293 | 293 | else T | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func ar (c,l) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(l)) + "_") + toString(c))) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(as) | |
303 | 303 | func callEmergencyShutdown (at) = { | |
304 | 304 | let au = "3N65UDbSkK72XdSgH3NhvJ8HaH57x8VmoW3" | |
305 | 305 | let av = toString(as.caller) | |
306 | 306 | if ((au != av)) | |
307 | 307 | then throw("caller must be one an emergency oracle") | |
308 | 308 | else WriteSet([DataEntry("is_blocked", true), DataEntry("is_blocked_caller", av), DataEntry("is_blocked_reason", at)]) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | 313 | @Callable(as) | |
314 | 314 | func finalizeCurrentPrice (aw,ax,ay,az,aA,aB,aC,aD,aE,aF) = if (u) | |
315 | 315 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
316 | 316 | else if (({ | |
317 | 317 | let f = getInteger(this, ("price_" + toString(height))) | |
318 | 318 | if ($isInstanceOf(f, "Int")) | |
319 | 319 | then { | |
320 | 320 | let g = f | |
321 | 321 | g | |
322 | 322 | } | |
323 | 323 | else 0 | |
324 | 324 | } != 0)) | |
325 | 325 | then throw("wait next block") | |
326 | 326 | else if ((x[(height % 5)] != toBase58String(as.callerPublicKey))) | |
327 | 327 | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + x[(height % 5)])) | |
328 | 328 | else { | |
329 | 329 | let I = [if (sigVerify(ar(aw, height), ax, fromBase58String(x[0]))) | |
330 | 330 | then aw | |
331 | 331 | else 0, if (sigVerify(ar(ay, height), az, fromBase58String(x[1]))) | |
332 | 332 | then ay | |
333 | 333 | else 0, if (sigVerify(ar(aA, height), aB, fromBase58String(x[2]))) | |
334 | 334 | then aA | |
335 | 335 | else 0, if (sigVerify(ar(aC, height), aD, fromBase58String(x[3]))) | |
336 | 336 | then aC | |
337 | 337 | else 0, if (sigVerify(ar(aE, height), aF, fromBase58String(x[4]))) | |
338 | 338 | then aE | |
339 | 339 | else 0] | |
340 | 340 | let aG = H(I) | |
341 | 341 | let aH = size(aG) | |
342 | 342 | if ((3 > aH)) | |
343 | 343 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
344 | 344 | ") + x[0]) + "=") + toString(I[0])) + " | |
345 | 345 | ") + x[1]) + "=") + toString(I[1])) + " | |
346 | 346 | ") + x[2]) + "=") + toString(I[2])) + " | |
347 | 347 | ") + x[3]) + "=") + toString(I[3])) + " | |
348 | 348 | ") + x[4]) + "=") + toString(I[4]))) | |
349 | 349 | else { | |
350 | 350 | let aI = ((I[aG[0]] + I[aG[1]]) + I[aG[2]]) | |
351 | 351 | let aJ = if ((aH >= 4)) | |
352 | 352 | then (aI + I[aG[3]]) | |
353 | 353 | else aI | |
354 | 354 | let aK = if ((aH >= 5)) | |
355 | 355 | then (aJ + I[aG[4]]) | |
356 | 356 | else aJ | |
357 | 357 | if ((aH >= 6)) | |
358 | 358 | then throw("Invalid pricesInRange creation") | |
359 | 359 | else { | |
360 | 360 | let aL = (aK / aH) | |
361 | 361 | if (if ((aL >= (c + ((c * v) / 100)))) | |
362 | 362 | then true | |
363 | 363 | else ((c - ((c * v) / 100)) >= aL)) | |
364 | 364 | then { | |
365 | 365 | let at = "automatic emergency shutdown because of large price variability" | |
366 | 366 | WriteSet([DataEntry("is_blocked", true), DataEntry("is_blocked_caller", toString(this)), DataEntry("is_blocked_reason", at), DataEntry((("black_swarm_price" + "_") + toString(height)), aL)]) | |
367 | 367 | } | |
368 | 368 | else { | |
369 | 369 | let aM = (t + 1) | |
370 | 370 | WriteSet([DataEntry("price", aL), DataEntry(("price_" + toString(height)), aL), DataEntry("price_index", aM), DataEntry(("price_index_" + toString(aM)), height), DataEntry(("deficit_" + toString(height)), G), DataEntry(("neutrinoSupply_" + toString(height)), F), DataEntry(("deficit_percent_" + toString(height)), if ((F != 0)) | |
371 | 371 | then ((G * 100) / F) | |
372 | 372 | else 0)]) | |
373 | 373 | } | |
374 | 374 | } | |
375 | 375 | } | |
376 | 376 | } | |
377 | 377 | ||
378 | 378 | ||
379 | 379 | ||
380 | 380 | @Callable(as) | |
381 | 381 | func updateReservesAndNeutrinoSupply () = { | |
382 | 382 | func aN (e) = { | |
383 | 383 | let f = getInteger(this, e) | |
384 | 384 | if ($isInstanceOf(f, "Int")) | |
385 | 385 | then { | |
386 | 386 | let g = f | |
387 | 387 | g | |
388 | 388 | } | |
389 | 389 | else 0 | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | let aO = aN("updateReservesAndNeutrinoSupplyIdx") | |
393 | 393 | let aP = (aO + 1) | |
394 | 394 | WriteSet([DataEntry("updateReservesAndNeutrinoSupplyIdx", aP), DataEntry("reserve", E), DataEntry("neutrinoSupply", F), DataEntry("deficit", G)]) | |
395 | 395 | } | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | @Verifier(aQ) | |
399 | 399 | func aR () = { | |
400 | 400 | let aS = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
401 | 401 | let aT = ((((if (sigVerify(aQ.bodyBytes, aQ.proofs[0], fromBase58String(aS[0]))) | |
402 | 402 | then 1 | |
403 | 403 | else 0) + (if (sigVerify(aQ.bodyBytes, aQ.proofs[1], fromBase58String(aS[1]))) | |
404 | 404 | then 1 | |
405 | 405 | else 0)) + (if (sigVerify(aQ.bodyBytes, aQ.proofs[2], fromBase58String(aS[2]))) | |
406 | 406 | then 1 | |
407 | 407 | else 0)) + (if (sigVerify(aQ.bodyBytes, aQ.proofs[3], fromBase58String(aS[3]))) | |
408 | 408 | then 2 | |
409 | 409 | else 0)) | |
410 | 410 | (aT >= 3) | |
411 | 411 | } | |
412 | 412 |
github/deemru/w8io/169f3d6 48.62 ms ◑