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