tx · 7W7SgA2t4UhsL5qnP8yG6XPDS8zbNf4rBqdc5ajuBwSv

3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH:  -0.10000000 Waves

2020.04.02 05:04 [935908] smart account 3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH > SELF 0.00000000 Waves

{ "type": 13, "id": "7W7SgA2t4UhsL5qnP8yG6XPDS8zbNf4rBqdc5ajuBwSv", "fee": 10000000, "feeAssetId": null, "timestamp": 1585793070070, "version": 1, "sender": "3MqY3tM5bgwds1ugNQGJziL8VJVvjTiNccH", "senderPublicKey": "HRyg4YHsVLeXBvMTqFpWfyRMg57CCKwpad33v1c9dt31", "proofs": [ "nx6LZATkXrz11ymkpj5sy97PWi6wUqYkjjupL9kdRnaco7THj8nYzTS3y67HqmVLWopiqsAc85i86PrnLdCtv1n" ], "script": "base64:AAIDAAAAAAAAABAIARIDCgEIEgcKBQEBAQEBAAAAGAEAAAAWY29udmVydFdhdmVzVG9OZXV0cmlubwAAAAIAAAAGYW1vdW50AAAABXByaWNlCQAAawAAAAMJAABrAAAAAwUAAAAGYW1vdW50BQAAAAVwcmljZQAAAAAAAAAAZAAAAAAAAA9CQAAAAAAABfXhAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAB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AAAZwcmljZV8JAAGkAAAAAQUAAAAGaGVpZ2h0BQAAAAhuZXdQcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALcHJpY2VfaW5kZXgFAAAADW5ld1ByaWNlSW5kZXgJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAMcHJpY2VfaW5kZXhfCQABpAAAAAEFAAAADW5ld1ByaWNlSW5kZXgFAAAABmhlaWdodAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAAAhkZWZpY2l0XwkAAaQAAAABBQAAAAZoZWlnaHQFAAAAB2RlZmljaXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAPbmV1dHJpbm9TdXBwbHlfCQABpAAAAAEFAAAABmhlaWdodAUAAAAObmV1dHJpbm9TdXBwbHkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAQZGVmaWNpdF9wZXJjZW50XwkAAaQAAAABBQAAAAZoZWlnaHQDCQEAAAACIT0AAAACBQAAAA5uZXV0cmlub1N1cHBseQAAAAAAAAAAAAkAAGkAAAACCQAAaAAAAAIFAAAAB2RlZmljaXQAAAAAAAAAAGQFAAAADm5ldXRyaW5vU3VwcGx5AAAAAAAAAAAABQAAAANuaWwAAAAAoT2q7A==", "chainId": 84, "height": 935908, "spentComplexity": 0 } View: original | compacted Prev: Grh8toPwnL8jtb3sCijt2mHpx9aQBrPBWpNkUsu2swh2 Next: 6sMdn3ab3SWAF9vRKhKes5kkSJYbzyKiD4s1UZrzg9aS Diff:
OldNewDifferences
311311
312312
313313 @Callable(as)
314-func finalizeCurrentPrice (aw,ax,ay,az,aA,aB,aC,aD,aE,aF) = if (u)
314+func finalizeCurrentPrice (aw,ax,ay,az,aA) = if (u)
315315 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
316316 else if (({
317317 let f = getInteger(this, ("price_" + toString(height)))
326326 else if ((x[(height % 5)] != toBase58String(as.callerPublicKey)))
327327 then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + x[(height % 5)]))
328328 else {
329- let I = [if (sigVerify(ar(aw, height), ax, fromBase58String(x[0])))
329+ let I = [if ((aw > 0))
330330 then aw
331- else 0, if (sigVerify(ar(ay, height), az, fromBase58String(x[1])))
331+ else 0, if ((ax > 0))
332+ then ax
333+ else 0, if ((ay > 0))
332334 then ay
333- else 0, if (sigVerify(ar(aA, height), aB, fromBase58String(x[2])))
335+ else 0, if ((az > 0))
336+ then az
337+ else 0, if ((aA > 0))
334338 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
339339 else 0]
340- let aG = H(I)
341- let aH = size(aG)
342- if ((3 > aH))
340+ let aB = H(I)
341+ let aC = size(aB)
342+ if ((3 > aC))
343343 then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + "
344344 ") + x[0]) + "=") + toString(I[0])) + "
345345 ") + x[1]) + "=") + toString(I[1])) + "
347347 ") + x[3]) + "=") + toString(I[3])) + "
348348 ") + x[4]) + "=") + toString(I[4])))
349349 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))
350+ let aD = ((I[aB[0]] + I[aB[1]]) + I[aB[2]])
351+ let aE = if ((aC >= 4))
352+ then (aD + I[aB[3]])
353+ else aD
354+ let aF = if ((aC >= 5))
355+ then (aE + I[aB[4]])
356+ else aE
357+ if ((aC >= 6))
358358 then throw("Invalid pricesInRange creation")
359359 else {
360- let aL = (aK / aH)
361- if (if ((aL >= (c + ((c * v) / 100))))
360+ let aG = (aF / aC)
361+ if (if ((aG >= (c + ((c * v) / 100))))
362362 then true
363- else ((c - ((c * v) / 100)) >= aL))
364- then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aL)])
363+ else ((c - ((c * v) / 100)) >= aG))
364+ then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aG)])
365365 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))
366+ let aH = (t + 1)
367+ 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))
368368 then ((G * 100) / F)
369369 else 0)])
370370 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c) = fraction(fraction(b, c, 100), 1000000, 100000000)
55
66
77 func d (e) = {
88 let f = getString(this, e)
99 if ($isInstanceOf(f, "String"))
1010 then {
1111 let g = f
1212 g
1313 }
1414 else ""
1515 }
1616
1717
1818 func h (i,e) = {
1919 let f = getInteger(addressFromStringValue(i), e)
2020 if ($isInstanceOf(f, "Int"))
2121 then {
2222 let g = f
2323 g
2424 }
2525 else 0
2626 }
2727
2828
2929 func j (k,l) = {
3030 let f = getInteger(addressFromPublicKey(k), ("price_" + toString(l)))
3131 if ($isInstanceOf(f, "Int"))
3232 then {
3333 let g = f
3434 g
3535 }
3636 else 0
3737 }
3838
3939
4040 func m (i,e) = {
4141 let f = getString(i, e)
4242 if ($isInstanceOf(f, "String"))
4343 then {
4444 let g = f
4545 g
4646 }
4747 else ""
4848 }
4949
5050
5151 func n (o,p) = {
5252 let q = split(o, p)
5353 if ((take(q[1], 1) == ","))
5454 then (q[0] + drop(q[1], 1))
5555 else (dropRight(q[0], 1) + q[1])
5656 }
5757
5858
5959 func r (s) = split(s, ",")
6060
6161
6262 let c = {
6363 let f = getInteger(this, "price")
6464 if ($isInstanceOf(f, "Int"))
6565 then {
6666 let g = f
6767 g
6868 }
6969 else 0
7070 }
7171
7272 let t = {
7373 let f = getInteger(this, "price_index")
7474 if ($isInstanceOf(f, "Int"))
7575 then {
7676 let g = f
7777 g
7878 }
7979 else 0
8080 }
8181
8282 let u = {
8383 let f = getBoolean(this, "is_blocked")
8484 if ($isInstanceOf(f, "Boolean"))
8585 then {
8686 let g = f
8787 g
8888 }
8989 else false
9090 }
9191
9292 let v = 7
9393
9494 let w = d("oracles")
9595
9696 let x = r(w)
9797
9898 let y = 4
9999
100100 let z = addressFromPublicKey(fromBase58String("J4hU7VqLs2JAJXwFnjicQ97XShyZEqt8REC8fJHkTdKd"))
101101
102102 let A = addressFromPublicKey(fromBase58String("HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R"))
103103
104104 let B = fromBase58String("EyizrdEpB9yuh45Zv3f2UfxKLjcecrmvcq5DSP9fEwum")
105105
106106 let C = {
107107 let f = getInteger(z, "balance_lock_neutrino")
108108 if ($isInstanceOf(f, "Int"))
109109 then {
110110 let g = f
111111 g
112112 }
113113 else 0
114114 }
115115
116116 let D = {
117117 let f = getInteger(z, "balance_lock_waves")
118118 if ($isInstanceOf(f, "Int"))
119119 then {
120120 let g = f
121121 g
122122 }
123123 else 0
124124 }
125125
126126 let E = (wavesBalance(z) - D)
127127
128128 let F = (((C + extract(assetInfo(B)).quantity) - assetBalance(z, B)) - assetBalance(A, B))
129129
130130 let G = (F - a(E, c))
131131
132132 func H (I) = {
133133 let J = 90
134134 let K = 110
135135 let L = I[0]
136136 let M = if ((0 >= I[0]))
137137 then [0]
138138 else {
139139 let N = ((I[1] * 100) / L)
140140 let O = ((I[2] * 100) / L)
141141 let P = ((I[3] * 100) / L)
142142 let Q = ((I[4] * 100) / L)
143143 let R = if (if ((K > N))
144144 then (N > J)
145145 else false)
146146 then [1, 0]
147147 else [0]
148148 let S = if (if ((K > O))
149149 then (O > J)
150150 else false)
151151 then 2 :: R
152152 else R
153153 let T = if (if ((K > P))
154154 then (P > J)
155155 else false)
156156 then 3 :: S
157157 else S
158158 if (if ((K > Q))
159159 then (Q > J)
160160 else false)
161161 then 4 :: T
162162 else T
163163 }
164164 let U = if ((size(M) >= 3))
165165 then M
166166 else {
167167 let V = I[1]
168168 if ((0 >= V))
169169 then [1]
170170 else {
171171 let W = ((I[0] * 100) / V)
172172 let X = ((I[2] * 100) / V)
173173 let Y = ((I[3] * 100) / V)
174174 let Z = ((I[4] * 100) / V)
175175 let R = if (if ((K > W))
176176 then (W > J)
177177 else false)
178178 then [0, 1]
179179 else [1]
180180 let S = if (if ((K > X))
181181 then (X > J)
182182 else false)
183183 then 2 :: R
184184 else R
185185 let T = if (if ((K > Y))
186186 then (Y > J)
187187 else false)
188188 then 3 :: S
189189 else S
190190 if (if ((K > Z))
191191 then (Z > J)
192192 else false)
193193 then 4 :: T
194194 else T
195195 }
196196 }
197197 let aa = if ((size(U) >= 3))
198198 then U
199199 else {
200200 let ab = I[2]
201201 if ((0 >= ab))
202202 then [2]
203203 else {
204204 let ac = ((I[0] * 100) / ab)
205205 let ad = ((I[1] * 100) / ab)
206206 let ae = ((I[3] * 100) / ab)
207207 let af = ((I[4] * 100) / ab)
208208 let R = if (if ((K > ac))
209209 then (ac > J)
210210 else false)
211211 then [0, 2]
212212 else [2]
213213 let S = if (if ((K > ad))
214214 then (ad > J)
215215 else false)
216216 then 1 :: R
217217 else R
218218 let T = if (if ((K > ae))
219219 then (ae > J)
220220 else false)
221221 then 3 :: S
222222 else S
223223 if (if ((K > af))
224224 then (af > J)
225225 else false)
226226 then 4 :: T
227227 else T
228228 }
229229 }
230230 let ag = if ((size(aa) >= 3))
231231 then aa
232232 else {
233233 let ah = I[3]
234234 if ((0 >= ah))
235235 then [3]
236236 else {
237237 let ai = ((I[0] * 100) / ah)
238238 let aj = ((I[1] * 100) / ah)
239239 let ak = ((I[2] * 100) / ah)
240240 let al = ((I[4] * 100) / ah)
241241 let R = if (if ((K > ai))
242242 then (ai > J)
243243 else false)
244244 then [0, 3]
245245 else [3]
246246 let S = if (if ((K > aj))
247247 then (aj > J)
248248 else false)
249249 then 1 :: R
250250 else R
251251 let T = if (if ((K > ak))
252252 then (ak > J)
253253 else false)
254254 then 2 :: S
255255 else S
256256 if (if ((K > al))
257257 then (al > J)
258258 else false)
259259 then 4 :: T
260260 else T
261261 }
262262 }
263263 if ((size(ag) >= 3))
264264 then ag
265265 else {
266266 let am = I[4]
267267 if ((0 >= am))
268268 then [4]
269269 else {
270270 let an = ((I[0] * 100) / am)
271271 let ao = ((I[1] * 100) / am)
272272 let ap = ((I[2] * 100) / am)
273273 let aq = ((I[3] * 100) / am)
274274 let R = if (if ((K > an))
275275 then (an > J)
276276 else false)
277277 then [0, 4]
278278 else [4]
279279 let S = if (if ((K > ao))
280280 then (ao > J)
281281 else false)
282282 then 1 :: R
283283 else R
284284 let T = if (if ((K > ap))
285285 then (ap > J)
286286 else false)
287287 then 2 :: S
288288 else S
289289 if (if ((K > aq))
290290 then (aq > J)
291291 else false)
292292 then 3 :: T
293293 else T
294294 }
295295 }
296296 }
297297
298298
299299 func ar (c,l) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(l)) + "_") + toString(c)))
300300
301301
302302 @Callable(as)
303303 func callEmergencyShutdown (at) = {
304304 let au = "3Mwho43kPZa9w1y91NJsAoYxgQpsg3JjGby"
305305 let av = toString(as.caller)
306306 if ((au != av))
307307 then throw("caller must be one an emergency oracle")
308308 else WriteSet([DataEntry("is_blocked", true), DataEntry("is_blocked_caller", av), DataEntry("is_blocked_reason", at)])
309309 }
310310
311311
312312
313313 @Callable(as)
314-func finalizeCurrentPrice (aw,ax,ay,az,aA,aB,aC,aD,aE,aF) = if (u)
314+func finalizeCurrentPrice (aw,ax,ay,az,aA) = if (u)
315315 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
316316 else if (({
317317 let f = getInteger(this, ("price_" + toString(height)))
318318 if ($isInstanceOf(f, "Int"))
319319 then {
320320 let g = f
321321 g
322322 }
323323 else 0
324324 } != 0))
325325 then throw("wait next block")
326326 else if ((x[(height % 5)] != toBase58String(as.callerPublicKey)))
327327 then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + x[(height % 5)]))
328328 else {
329- let I = [if (sigVerify(ar(aw, height), ax, fromBase58String(x[0])))
329+ let I = [if ((aw > 0))
330330 then aw
331- else 0, if (sigVerify(ar(ay, height), az, fromBase58String(x[1])))
331+ else 0, if ((ax > 0))
332+ then ax
333+ else 0, if ((ay > 0))
332334 then ay
333- else 0, if (sigVerify(ar(aA, height), aB, fromBase58String(x[2])))
335+ else 0, if ((az > 0))
336+ then az
337+ else 0, if ((aA > 0))
334338 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
339339 else 0]
340- let aG = H(I)
341- let aH = size(aG)
342- if ((3 > aH))
340+ let aB = H(I)
341+ let aC = size(aB)
342+ if ((3 > aC))
343343 then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + "
344344 ") + x[0]) + "=") + toString(I[0])) + "
345345 ") + x[1]) + "=") + toString(I[1])) + "
346346 ") + x[2]) + "=") + toString(I[2])) + "
347347 ") + x[3]) + "=") + toString(I[3])) + "
348348 ") + x[4]) + "=") + toString(I[4])))
349349 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))
350+ let aD = ((I[aB[0]] + I[aB[1]]) + I[aB[2]])
351+ let aE = if ((aC >= 4))
352+ then (aD + I[aB[3]])
353+ else aD
354+ let aF = if ((aC >= 5))
355+ then (aE + I[aB[4]])
356+ else aE
357+ if ((aC >= 6))
358358 then throw("Invalid pricesInRange creation")
359359 else {
360- let aL = (aK / aH)
361- if (if ((aL >= (c + ((c * v) / 100))))
360+ let aG = (aF / aC)
361+ if (if ((aG >= (c + ((c * v) / 100))))
362362 then true
363- else ((c - ((c * v) / 100)) >= aL))
364- then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aL)])
363+ else ((c - ((c * v) / 100)) >= aG))
364+ then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aG)])
365365 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))
366+ let aH = (t + 1)
367+ 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))
368368 then ((G * 100) / F)
369369 else 0)])
370370 }
371371 }
372372 }
373373 }
374374
375375

github/deemru/w8io/169f3d6 
54.88 ms