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