tx · Grh8toPwnL8jtb3sCijt2mHpx9aQBrPBWpNkUsu2swh2 3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH: -0.10000000 Waves 2020.03.31 10:07 [933299] smart account 3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH > SELF 0.00000000 Waves
{ "type": 13, "id": "Grh8toPwnL8jtb3sCijt2mHpx9aQBrPBWpNkUsu2swh2", "fee": 10000000, "feeAssetId": null, "timestamp": 1585638502456, "version": 1, "sender": "3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH", "senderPublicKey": "HRyg4YHsVLeXBvMTqFpWfyRMg57CCKwpad33v1c9dt31", "proofs": [ "4THd9pYcvhyFpwKiwh5SfP8UhKz8W9yvp4FH7HKXwt6FvTsVLRQjjNyrWqcJZB5FMfSEx1cS8nP4TWBZ1N6Wa4dZ" ], "script": "base64:AAIDAAAAAAAAABUIARIDCgEIEgwKCgECAQIBAgECAQIAAAAYAQAAABZjb252ZXJ0V2F2ZXNUb05ldXRyaW5vAAAAAgAAAAZhbW91bnQAAAAFcHJpY2UJAABrAAAAAwkAAGsAAAADBQAAAAZhbW91bnQFAAAABXByaWNlAAAAAAAAAABkAAAAAAAAD0JAAAAAAAAF9eEAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldE51bWJlckJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQ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ABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAA9uZXV0cmlub1N1cHBseV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAA5uZXV0cmlub1N1cHBseQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAABBkZWZpY2l0X3BlcmNlbnRfCQABpAAAAAEFAAAABmhlaWdodAMJAQAAAAIhPQAAAAIFAAAADm5ldXRyaW5vU3VwcGx5AAAAAAAAAAAACQAAaQAAAAIJAABoAAAAAgUAAAAHZGVmaWNpdAAAAAAAAAAAZAUAAAAObmV1dHJpbm9TdXBwbHkAAAAAAAAAAAAFAAAAA25pbAAAAABTpEbv", "chainId": 84, "height": 933299, "spentComplexity": 0 } View: original | compacted Prev: none Next: 7W7SgA2t4UhsL5qnP8yG6XPDS8zbNf4rBqdc5ajuBwSv 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 = 7 | |
93 | + | ||
94 | + | let w = d("oracles") | |
95 | + | ||
96 | + | let x = r(w) | |
97 | + | ||
98 | + | let y = 4 | |
99 | + | ||
100 | + | let z = addressFromPublicKey(fromBase58String("J4hU7VqLs2JAJXwFnjicQ97XShyZEqt8REC8fJHkTdKd")) | |
101 | + | ||
102 | + | let A = addressFromPublicKey(fromBase58String("HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R")) | |
103 | + | ||
104 | + | let B = fromBase58String("EyizrdEpB9yuh45Zv3f2UfxKLjcecrmvcq5DSP9fEwum") | |
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 = "3Mwho43kPZa9w1y91NJsAoYxgQpsg3JjGby" | |
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 WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aL)]) | |
365 | + | else { | |
366 | + | let aM = (t + 1) | |
367 | + | 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)) | |
368 | + | then ((G * 100) / F) | |
369 | + | else 0)]) | |
370 | + | } | |
371 | + | } | |
372 | + | } | |
373 | + | } | |
374 | + | ||
375 | + |
github/deemru/w8io/169f3d6 34.49 ms ◑