tx · 9HVeLXW1z9yddBN8d2LRLLCETRgfv6iUc4iDDmYroJWe

3N1nHpe7KLcmJq27kwby5Z6tkcjBPSnLXgG:  -0.01000000 Waves

2020.09.28 19:51 [1197446] smart account 3N1nHpe7KLcmJq27kwby5Z6tkcjBPSnLXgG > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
30.67 ms