tx · HEsR72CviSvcYguNyHC5pmEQm43Np25oq7uAAKrLhSFF 3Mwk2jkuxWiUuKABJned21T3JNdGP9VJu73: -0.01000000 Waves 2022.03.02 13:31 [1946236] smart account 3Mwk2jkuxWiUuKABJned21T3JNdGP9VJu73 > SELF 0.00000000 Waves
{ "type": 13, "id": "HEsR72CviSvcYguNyHC5pmEQm43Np25oq7uAAKrLhSFF", "fee": 1000000, "feeAssetId": null, "timestamp": 1646217184595, "version": 1, "sender": "3Mwk2jkuxWiUuKABJned21T3JNdGP9VJu73", "senderPublicKey": "BMpjZk3ABPf31GwNW1aeHs8WBH2gKZJd5U1Qh4DVYLNx", "proofs": [ "2io9yKXdWnU9v4qWPxyHGuEuPSKKH7faN752BLqApw1rttnXSXu43DuLkTkzNBkfbSC4zoE5PhLzwKxgoMz24UGf" ], "script": "base64:AAIEAAAAAAAAABUIAhIDCgEIEgwKCgECAQIBAgECAQIAAAAUAQAAABZjb252ZXJ0V2F2ZXNUb05ldXRyaW5vAAAAAgAAAAZhbW91bnQAAAAFcHJpY2UJAABrAAAAAwkAAGsAAAADBQAAAAZhbW91bnQFAAAABXByaWNlAAAAAAAAD0JAAAAAAAAAD0JAAAAAAAAF9eEAAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAAB2FkZHJlc3MFAAAAA2tleQAAAAAAAAAAAAEAAAAYZ2V0U3RyaW5nQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkCAAAAAAEAAAAWY29udmVydEpzb25BcnJheVRvTGlzdAAAAAEAAAAJanNvbkFycmF5CQAEtQAAAAIFAAAACWpzb25BcnJheQIAAAABLAAAAA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AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAANfM327", "chainId": 84, "height": 1946236, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b,c) = fraction(fraction(b, c, 1000000), 1000000, 100000000) | |
5 | + | ||
6 | + | ||
7 | + | func d (e,f) = valueOrElse(getInteger(addressFromStringValue(e), f), 0) | |
8 | + | ||
9 | + | ||
10 | + | func g (e,f) = valueOrElse(getString(e, f), "") | |
11 | + | ||
12 | + | ||
13 | + | func h (i) = split(i, ",") | |
14 | + | ||
15 | + | ||
16 | + | let c = valueOrElse(getInteger(this, "price"), 0) | |
17 | + | ||
18 | + | let j = valueOrElse(getInteger(this, "price_index"), 0) | |
19 | + | ||
20 | + | let k = valueOrElse(getBoolean(this, "is_blocked"), false) | |
21 | + | ||
22 | + | let l = 25 | |
23 | + | ||
24 | + | let m = valueOrElse(getString(this, "oracles"), "") | |
25 | + | ||
26 | + | let n = h(m) | |
27 | + | ||
28 | + | let o = Address(base58'3MqL3hQMRXBNPhp8MNFfzxiXm4bp45zEixU') | |
29 | + | ||
30 | + | let p = Address(base58'3MxKWfbh4a5ore8gcV2RAXZVyRbQL7T2Hch') | |
31 | + | ||
32 | + | let q = base58'5j9WJD1zS5JfUyXPStUuxnVWotrdRzgMg9a21HH7jEdL' | |
33 | + | ||
34 | + | let r = valueOrElse(getInteger(o, "balance_lock_neutrino"), 0) | |
35 | + | ||
36 | + | let s = valueOrElse(getInteger(o, "balance_lock_waves"), 0) | |
37 | + | ||
38 | + | let t = (wavesBalance(o).regular - s) | |
39 | + | ||
40 | + | let u = (((r + value(assetInfo(q)).quantity) - assetBalance(o, q)) - assetBalance(p, q)) | |
41 | + | ||
42 | + | let v = (u - a(t, c)) | |
43 | + | ||
44 | + | func w (x) = { | |
45 | + | let y = 90 | |
46 | + | let z = 110 | |
47 | + | let A = x[0] | |
48 | + | let B = if ((0 >= x[0])) | |
49 | + | then [0] | |
50 | + | else { | |
51 | + | let C = ((x[1] * 100) / A) | |
52 | + | let D = ((x[2] * 100) / A) | |
53 | + | let E = ((x[3] * 100) / A) | |
54 | + | let F = ((x[4] * 100) / A) | |
55 | + | let G = if (if ((z > C)) | |
56 | + | then (C > y) | |
57 | + | else false) | |
58 | + | then [1, 0] | |
59 | + | else [0] | |
60 | + | let H = if (if ((z > D)) | |
61 | + | then (D > y) | |
62 | + | else false) | |
63 | + | then 2 :: G | |
64 | + | else G | |
65 | + | let I = if (if ((z > E)) | |
66 | + | then (E > y) | |
67 | + | else false) | |
68 | + | then 3 :: H | |
69 | + | else H | |
70 | + | if (if ((z > F)) | |
71 | + | then (F > y) | |
72 | + | else false) | |
73 | + | then 4 :: I | |
74 | + | else I | |
75 | + | } | |
76 | + | let J = if ((size(B) >= 3)) | |
77 | + | then B | |
78 | + | else { | |
79 | + | let K = x[1] | |
80 | + | if ((0 >= K)) | |
81 | + | then [1] | |
82 | + | else { | |
83 | + | let L = ((x[0] * 100) / K) | |
84 | + | let M = ((x[2] * 100) / K) | |
85 | + | let N = ((x[3] * 100) / K) | |
86 | + | let O = ((x[4] * 100) / K) | |
87 | + | let G = if (if ((z > L)) | |
88 | + | then (L > y) | |
89 | + | else false) | |
90 | + | then [0, 1] | |
91 | + | else [1] | |
92 | + | let H = if (if ((z > M)) | |
93 | + | then (M > y) | |
94 | + | else false) | |
95 | + | then 2 :: G | |
96 | + | else G | |
97 | + | let I = if (if ((z > N)) | |
98 | + | then (N > y) | |
99 | + | else false) | |
100 | + | then 3 :: H | |
101 | + | else H | |
102 | + | if (if ((z > O)) | |
103 | + | then (O > y) | |
104 | + | else false) | |
105 | + | then 4 :: I | |
106 | + | else I | |
107 | + | } | |
108 | + | } | |
109 | + | let P = if ((size(J) >= 3)) | |
110 | + | then J | |
111 | + | else { | |
112 | + | let Q = x[2] | |
113 | + | if ((0 >= Q)) | |
114 | + | then [2] | |
115 | + | else { | |
116 | + | let R = ((x[0] * 100) / Q) | |
117 | + | let S = ((x[1] * 100) / Q) | |
118 | + | let T = ((x[3] * 100) / Q) | |
119 | + | let U = ((x[4] * 100) / Q) | |
120 | + | let G = if (if ((z > R)) | |
121 | + | then (R > y) | |
122 | + | else false) | |
123 | + | then [0, 2] | |
124 | + | else [2] | |
125 | + | let H = if (if ((z > S)) | |
126 | + | then (S > y) | |
127 | + | else false) | |
128 | + | then 1 :: G | |
129 | + | else G | |
130 | + | let I = if (if ((z > T)) | |
131 | + | then (T > y) | |
132 | + | else false) | |
133 | + | then 3 :: H | |
134 | + | else H | |
135 | + | if (if ((z > U)) | |
136 | + | then (U > y) | |
137 | + | else false) | |
138 | + | then 4 :: I | |
139 | + | else I | |
140 | + | } | |
141 | + | } | |
142 | + | let V = if ((size(P) >= 3)) | |
143 | + | then P | |
144 | + | else { | |
145 | + | let W = x[3] | |
146 | + | if ((0 >= W)) | |
147 | + | then [3] | |
148 | + | else { | |
149 | + | let X = ((x[0] * 100) / W) | |
150 | + | let Y = ((x[1] * 100) / W) | |
151 | + | let Z = ((x[2] * 100) / W) | |
152 | + | let aa = ((x[4] * 100) / W) | |
153 | + | let G = if (if ((z > X)) | |
154 | + | then (X > y) | |
155 | + | else false) | |
156 | + | then [0, 3] | |
157 | + | else [3] | |
158 | + | let H = if (if ((z > Y)) | |
159 | + | then (Y > y) | |
160 | + | else false) | |
161 | + | then 1 :: G | |
162 | + | else G | |
163 | + | let I = if (if ((z > Z)) | |
164 | + | then (Z > y) | |
165 | + | else false) | |
166 | + | then 2 :: H | |
167 | + | else H | |
168 | + | if (if ((z > aa)) | |
169 | + | then (aa > y) | |
170 | + | else false) | |
171 | + | then 4 :: I | |
172 | + | else I | |
173 | + | } | |
174 | + | } | |
175 | + | if ((size(V) >= 3)) | |
176 | + | then V | |
177 | + | else { | |
178 | + | let ab = x[4] | |
179 | + | if ((0 >= ab)) | |
180 | + | then [4] | |
181 | + | else { | |
182 | + | let ac = ((x[0] * 100) / ab) | |
183 | + | let ad = ((x[1] * 100) / ab) | |
184 | + | let ae = ((x[2] * 100) / ab) | |
185 | + | let af = ((x[3] * 100) / ab) | |
186 | + | let G = if (if ((z > ac)) | |
187 | + | then (ac > y) | |
188 | + | else false) | |
189 | + | then [0, 4] | |
190 | + | else [4] | |
191 | + | let H = if (if ((z > ad)) | |
192 | + | then (ad > y) | |
193 | + | else false) | |
194 | + | then 1 :: G | |
195 | + | else G | |
196 | + | let I = if (if ((z > ae)) | |
197 | + | then (ae > y) | |
198 | + | else false) | |
199 | + | then 2 :: H | |
200 | + | else H | |
201 | + | if (if ((z > af)) | |
202 | + | then (af > y) | |
203 | + | else false) | |
204 | + | then 3 :: I | |
205 | + | else I | |
206 | + | } | |
207 | + | } | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | func ag (c) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(c))) | |
212 | + | ||
213 | + | ||
214 | + | @Callable(ah) | |
215 | + | func callEmergencyShutdown (ai) = { | |
216 | + | let aj = "3N85QbLLPjbmrwhxUm7PQrXTTa5dr54hUuV" | |
217 | + | let ak = toString(ah.caller) | |
218 | + | if ((aj != ak)) | |
219 | + | then throw("caller must be one an emergency oracle") | |
220 | + | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", ak), StringEntry("is_blocked_reason", ai)] | |
221 | + | } | |
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | @Callable(ah) | |
226 | + | func finalizeCurrentPrice (al,am,an,ao,ap,aq,ar,as,at,au) = if (k) | |
227 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
228 | + | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
229 | + | then throw("wait next block") | |
230 | + | else if ((n[(height % 5)] != toBase58String(ah.callerPublicKey))) | |
231 | + | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + n[(height % 5)])) | |
232 | + | else { | |
233 | + | let x = [if (sigVerify_8Kb(ag(al), am, fromBase58String(n[0]))) | |
234 | + | then al | |
235 | + | else 0, if (sigVerify_8Kb(ag(an), ao, fromBase58String(n[1]))) | |
236 | + | then an | |
237 | + | else 0, if (sigVerify_8Kb(ag(ap), aq, fromBase58String(n[2]))) | |
238 | + | then ap | |
239 | + | else 0, if (sigVerify_8Kb(ag(ar), as, fromBase58String(n[3]))) | |
240 | + | then ar | |
241 | + | else 0, if (sigVerify_8Kb(ag(at), au, fromBase58String(n[4]))) | |
242 | + | then at | |
243 | + | else 0] | |
244 | + | let av = if ((x[0] == 0)) | |
245 | + | then 1 | |
246 | + | else (0 + (if ((x[1] == 0)) | |
247 | + | then 1 | |
248 | + | else (0 + (if ((x[2] == 0)) | |
249 | + | then 1 | |
250 | + | else (0 + (if ((x[3] == 0)) | |
251 | + | then 1 | |
252 | + | else (0 + (if ((x[4] == 0)) | |
253 | + | then 1 | |
254 | + | else 0)))))))) | |
255 | + | if ((av >= 3)) | |
256 | + | then throw("3 prices or more are equals to 0") | |
257 | + | else { | |
258 | + | let aw = w(x) | |
259 | + | let ax = size(aw) | |
260 | + | if ((3 > ax)) | |
261 | + | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
262 | + | ") + n[0]) + "=") + toString(x[0])) + " | |
263 | + | ") + n[1]) + "=") + toString(x[1])) + " | |
264 | + | ") + n[2]) + "=") + toString(x[2])) + " | |
265 | + | ") + n[3]) + "=") + toString(x[3])) + " | |
266 | + | ") + n[4]) + "=") + toString(x[4]))) | |
267 | + | else { | |
268 | + | let ay = ((x[aw[0]] + x[aw[1]]) + x[aw[2]]) | |
269 | + | let az = if ((ax >= 4)) | |
270 | + | then (ay + x[aw[3]]) | |
271 | + | else ay | |
272 | + | let aA = if ((ax >= 5)) | |
273 | + | then (az + x[aw[4]]) | |
274 | + | else az | |
275 | + | if ((ax >= 6)) | |
276 | + | then throw("Invalid pricesInRange creation") | |
277 | + | else { | |
278 | + | let aB = (aA / ax) | |
279 | + | if (if ((aB >= (c + ((c * l) / 100)))) | |
280 | + | then true | |
281 | + | else ((c - ((c * l) / 100)) >= aB)) | |
282 | + | then { | |
283 | + | let ai = "automatic emergency shutdown because of large price variability" | |
284 | + | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", ai), IntegerEntry((("black_swarm_price" + "_") + toString(height)), aB)] | |
285 | + | } | |
286 | + | else { | |
287 | + | let aC = (j + 1) | |
288 | + | [IntegerEntry("price", aB), IntegerEntry(("price_" + toString(height)), aB), IntegerEntry("price_index", aC), IntegerEntry(("price_index_" + toString(aC)), height), IntegerEntry(("deficit_" + toString(height)), v), IntegerEntry(("neutrinoSupply_" + toString(height)), u), IntegerEntry(("deficit_percent_" + toString(height)), if ((u != 0)) | |
289 | + | then ((v * 100) / u) | |
290 | + | else 0)] | |
291 | + | } | |
292 | + | } | |
293 | + | } | |
294 | + | } | |
295 | + | } | |
296 | + | ||
297 | + | ||
298 | + | @Verifier(aD) | |
299 | + | func aE () = { | |
300 | + | let aF = ["9MP9jBpNCpXXadVxpQUMS6jF4t9YJEut2Tm4pthGog6c", "BZpYcdVKT3hRTzAsAUYUTjeUCsBvRVaV6PZSmoYQTS6H", "5FxLdUsJGgTkHZWYAPrGaxiiEY5S78njcwW2PDZbSqpG", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
301 | + | let aG = ((((if (sigVerify(aD.bodyBytes, aD.proofs[0], fromBase58String(aF[0]))) | |
302 | + | then 1 | |
303 | + | else 0) + (if (sigVerify(aD.bodyBytes, aD.proofs[1], fromBase58String(aF[1]))) | |
304 | + | then 1 | |
305 | + | else 0)) + (if (sigVerify(aD.bodyBytes, aD.proofs[2], fromBase58String(aF[2]))) | |
306 | + | then 1 | |
307 | + | else 0)) + (if (sigVerify(aD.bodyBytes, aD.proofs[3], fromBase58String(aF[3]))) | |
308 | + | then 2 | |
309 | + | else 0)) | |
310 | + | (aG >= 3) | |
311 | + | } | |
312 | + |
github/deemru/w8io/169f3d6 33.56 ms ◑