tx · HPTxCEFVU3Gzqtb7s1PS29Q9wtVbg8SAYJ37FcS5aUYR 3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH: -0.10000000 Waves 2020.04.02 05:16 [935922] smart account 3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH > SELF 0.00000000 Waves
{ "type": 13, "id": "HPTxCEFVU3Gzqtb7s1PS29Q9wtVbg8SAYJ37FcS5aUYR", "fee": 10000000, "feeAssetId": null, "timestamp": 1585793790880, "version": 1, "sender": "3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH", "senderPublicKey": "HRyg4YHsVLeXBvMTqFpWfyRMg57CCKwpad33v1c9dt31", "proofs": [ "4zwYewbYrSQpkMdWjJ7o8RXod2VZTCygVfJxUmy2F9Mn3rCnZ2Bd6YmgEDArKQ5EHvaEHSFrrwFStYQQfAJSV7f" ], "script": "base64:AAIDAAAAAAAAABAIARIDCgEIEgcKBQEBAQEBAAAAGAEAAAAWY29udmVydFdhdmVzVG9OZXV0cmlubwAAAAIAAAAGYW1vdW50AAAABXByaWNlCQAAawAAAAMJAABrAAAAAwUAAAAGYW1vdW50BQAAAAVwcmljZQAAAAAAAAAAZAAAAAAAAA9CQAAAAAAABfXhAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAA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eQAAAAIJAAEsAAAAAgIAAAAIZGVmaWNpdF8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAAdkZWZpY2l0CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAD25ldXRyaW5vU3VwcGx5XwkAAaQAAAABBQAAAAZoZWlnaHQFAAAADm5ldXRyaW5vU3VwcGx5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAEGRlZmljaXRfcGVyY2VudF8JAAGkAAAAAQUAAAAGaGVpZ2h0AwkBAAAAAiE9AAAAAgUAAAAObmV1dHJpbm9TdXBwbHkAAAAAAAAAAAAJAABpAAAAAgkAAGgAAAACBQAAAAdkZWZpY2l0AAAAAAAAAABkBQAAAA5uZXV0cmlub1N1cHBseQAAAAAAAAAAAAUAAAADbmlsAAAAAMSjIyQ=", "chainId": 84, "height": 935922, "spentComplexity": 0 } View: original | compacted Prev: 6sMdn3ab3SWAF9vRKhKes5kkSJYbzyKiD4s1UZrzg9aS Next: none Diff:
Old | New | Differences | |
---|---|---|---|
323 | 323 | else 0 | |
324 | 324 | } != 0)) | |
325 | 325 | then throw("wait next block") | |
326 | - | else if ((x[(height % 5)] != toBase58String(as.callerPublicKey))) | |
327 | - | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + x[(height % 5)])) | |
328 | - | else { | |
329 | - | let I = [if ((aw > 0)) | |
330 | - | then aw | |
331 | - | else 0, if ((ax > 0)) | |
332 | - | then ax | |
333 | - | else 0, if ((ay > 0)) | |
334 | - | then ay | |
335 | - | else 0, if ((az > 0)) | |
336 | - | then az | |
337 | - | else 0, if ((aA > 0)) | |
338 | - | then aA | |
339 | - | else 0] | |
340 | - | if (((1 + 1) > 3)) | |
341 | - | then throw("running here!") | |
342 | - | else { | |
343 | - | let aB = H(I) | |
344 | - | let aC = size(aB) | |
345 | - | if ((3 > aC)) | |
346 | - | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
326 | + | else { | |
327 | + | let I = [if ((aw > 0)) | |
328 | + | then aw | |
329 | + | else 0, if ((ax > 0)) | |
330 | + | then ax | |
331 | + | else 0, if ((ay > 0)) | |
332 | + | then ay | |
333 | + | else 0, if ((az > 0)) | |
334 | + | then az | |
335 | + | else 0, if ((aA > 0)) | |
336 | + | then aA | |
337 | + | else 0] | |
338 | + | if (((1 + 1) > 3)) | |
339 | + | then throw("running here!") | |
340 | + | else { | |
341 | + | let aB = H(I) | |
342 | + | let aC = size(aB) | |
343 | + | if ((3 > aC)) | |
344 | + | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
347 | 345 | ") + x[0]) + "=") + toString(I[0])) + " | |
348 | 346 | ") + x[1]) + "=") + toString(I[1])) + " | |
349 | 347 | ") + x[2]) + "=") + toString(I[2])) + " | |
350 | 348 | ") + x[3]) + "=") + toString(I[3])) + " | |
351 | 349 | ") + x[4]) + "=") + toString(I[4]))) | |
352 | - | ||
353 | - | ||
354 | - | ||
355 | - | ||
356 | - | ||
357 | - | ||
358 | - | ||
359 | - | ||
360 | - | ||
361 | - | ||
362 | - | ||
363 | - | ||
364 | - | ||
365 | - | ||
366 | - | ||
367 | - | ||
368 | - | ||
369 | - | ||
370 | - | ||
371 | - | ||
372 | - | ||
373 | - | ||
374 | - | ||
375 | - | ||
376 | - | ||
377 | - | ||
350 | + | else { | |
351 | + | let aD = ((I[aB[0]] + I[aB[1]]) + I[aB[2]]) | |
352 | + | let aE = if ((aC >= 4)) | |
353 | + | then (aD + I[aB[3]]) | |
354 | + | else aD | |
355 | + | let aF = if ((aC >= 5)) | |
356 | + | then (aE + I[aB[4]]) | |
357 | + | else aE | |
358 | + | if ((aC >= 6)) | |
359 | + | then throw("Invalid pricesInRange creation") | |
360 | + | else { | |
361 | + | let aG = (aF / aC) | |
362 | + | if (if ((aG >= (c + ((c * v) / 100)))) | |
363 | + | then true | |
364 | + | else ((c - ((c * v) / 100)) >= aG)) | |
365 | + | then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aG)]) | |
366 | + | else { | |
367 | + | let aH = (t + 1) | |
368 | + | WriteSet([DataEntry("price", aG), DataEntry(("price_" + toString(height)), aG), DataEntry("price_index", aH), DataEntry(("price_index_" + toString(aH)), height), DataEntry(("deficit_" + toString(height)), G), DataEntry(("neutrinoSupply_" + toString(height)), F), DataEntry(("deficit_percent_" + toString(height)), if ((F != 0)) | |
369 | + | then ((G * 100) / F) | |
370 | + | else 0)]) | |
371 | + | } | |
372 | + | } | |
373 | + | } | |
374 | + | } | |
375 | + | } | |
378 | 376 | ||
379 | 377 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = fraction(fraction(b, c, 100), 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 = 7 | |
93 | 93 | ||
94 | 94 | let w = d("oracles") | |
95 | 95 | ||
96 | 96 | let x = r(w) | |
97 | 97 | ||
98 | 98 | let y = 4 | |
99 | 99 | ||
100 | 100 | let z = addressFromPublicKey(fromBase58String("J4hU7VqLs2JAJXwFnjicQ97XShyZEqt8REC8fJHkTdKd")) | |
101 | 101 | ||
102 | 102 | let A = addressFromPublicKey(fromBase58String("HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R")) | |
103 | 103 | ||
104 | 104 | let B = fromBase58String("EyizrdEpB9yuh45Zv3f2UfxKLjcecrmvcq5DSP9fEwum") | |
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 = "3Mwho43kPZa9w1y91NJsAoYxgQpsg3JjGby" | |
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) = 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 | - | else if ((x[(height % 5)] != toBase58String(as.callerPublicKey))) | |
327 | - | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + x[(height % 5)])) | |
328 | - | else { | |
329 | - | let I = [if ((aw > 0)) | |
330 | - | then aw | |
331 | - | else 0, if ((ax > 0)) | |
332 | - | then ax | |
333 | - | else 0, if ((ay > 0)) | |
334 | - | then ay | |
335 | - | else 0, if ((az > 0)) | |
336 | - | then az | |
337 | - | else 0, if ((aA > 0)) | |
338 | - | then aA | |
339 | - | else 0] | |
340 | - | if (((1 + 1) > 3)) | |
341 | - | then throw("running here!") | |
342 | - | else { | |
343 | - | let aB = H(I) | |
344 | - | let aC = size(aB) | |
345 | - | if ((3 > aC)) | |
346 | - | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
326 | + | else { | |
327 | + | let I = [if ((aw > 0)) | |
328 | + | then aw | |
329 | + | else 0, if ((ax > 0)) | |
330 | + | then ax | |
331 | + | else 0, if ((ay > 0)) | |
332 | + | then ay | |
333 | + | else 0, if ((az > 0)) | |
334 | + | then az | |
335 | + | else 0, if ((aA > 0)) | |
336 | + | then aA | |
337 | + | else 0] | |
338 | + | if (((1 + 1) > 3)) | |
339 | + | then throw("running here!") | |
340 | + | else { | |
341 | + | let aB = H(I) | |
342 | + | let aC = size(aB) | |
343 | + | if ((3 > aC)) | |
344 | + | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
347 | 345 | ") + x[0]) + "=") + toString(I[0])) + " | |
348 | 346 | ") + x[1]) + "=") + toString(I[1])) + " | |
349 | 347 | ") + x[2]) + "=") + toString(I[2])) + " | |
350 | 348 | ") + x[3]) + "=") + toString(I[3])) + " | |
351 | 349 | ") + x[4]) + "=") + toString(I[4]))) | |
352 | - | ||
353 | - | ||
354 | - | ||
355 | - | ||
356 | - | ||
357 | - | ||
358 | - | ||
359 | - | ||
360 | - | ||
361 | - | ||
362 | - | ||
363 | - | ||
364 | - | ||
365 | - | ||
366 | - | ||
367 | - | ||
368 | - | ||
369 | - | ||
370 | - | ||
371 | - | ||
372 | - | ||
373 | - | ||
374 | - | ||
375 | - | ||
376 | - | ||
377 | - | ||
350 | + | else { | |
351 | + | let aD = ((I[aB[0]] + I[aB[1]]) + I[aB[2]]) | |
352 | + | let aE = if ((aC >= 4)) | |
353 | + | then (aD + I[aB[3]]) | |
354 | + | else aD | |
355 | + | let aF = if ((aC >= 5)) | |
356 | + | then (aE + I[aB[4]]) | |
357 | + | else aE | |
358 | + | if ((aC >= 6)) | |
359 | + | then throw("Invalid pricesInRange creation") | |
360 | + | else { | |
361 | + | let aG = (aF / aC) | |
362 | + | if (if ((aG >= (c + ((c * v) / 100)))) | |
363 | + | then true | |
364 | + | else ((c - ((c * v) / 100)) >= aG)) | |
365 | + | then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aG)]) | |
366 | + | else { | |
367 | + | let aH = (t + 1) | |
368 | + | WriteSet([DataEntry("price", aG), DataEntry(("price_" + toString(height)), aG), DataEntry("price_index", aH), DataEntry(("price_index_" + toString(aH)), height), DataEntry(("deficit_" + toString(height)), G), DataEntry(("neutrinoSupply_" + toString(height)), F), DataEntry(("deficit_percent_" + toString(height)), if ((F != 0)) | |
369 | + | then ((G * 100) / F) | |
370 | + | else 0)]) | |
371 | + | } | |
372 | + | } | |
373 | + | } | |
374 | + | } | |
375 | + | } | |
378 | 376 | ||
379 | 377 |
github/deemru/w8io/169f3d6 85.61 ms ◑