tx · J89hJBRUFTkgdm6Ftvy1cBjJq2DD3qr7dqhVq88EjbWG 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.01600000 Waves 2023.08.31 15:33 [2734863] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "J89hJBRUFTkgdm6Ftvy1cBjJq2DD3qr7dqhVq88EjbWG", "fee": 1600000, "feeAssetId": null, "timestamp": 1693485263178, "version": 2, "chainId": 84, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "3iDRbqgAUbvvsj6v9tSg1mxLP2YGn6BKBBi1ar7Qug5nU9SPBT1PHF2ZD1Vw3DJdw7ZrsLLP6BEbwxKcxZifcjUH", "2DEf6PCYu4fPZdqFkqt5ejGgH7FFpfiKLUnjvq3fmTScRjxFetHjkYWYxXbVZvVpcBcsu4edAsdCNJd5wk99eHN", "4Byq4q7SBSKQ79aACxhUHuqjdnYTdSreHeL9nbG1Mn7PYzR2sKhEafr8TvsuEAwCohTEhGfGoqe5C1RMEd9vrkgq" ], "script": "base64:BgIuCAISEAoOCAgICAgICAgICAgICAgSAwoBCBIMCgoBAgECAQIBAgECEgUKAwEBCCsAA1NFUAICX18AGUlkeENvbnRyb2xDZmdOZXV0cmlub0RhcHAAAQAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAIAFElkeENvbnRyb2xDZmdScGREYXBwAAMAFUlkeENvbnRyb2xDZmdNYXRoRGFwcAAEABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAUAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAGAB1JZHhDb250cm9sQ2ZnTm9kZVJlZ2lzdHJ5RGFwcAAHABxJZHhDb250cm9sQ2ZnTnNidFN0YWtpbmdEYXBwAAgAGUlkeENvbnRyb2xDZ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CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEJANkEAQkAkQMCBRBwdWJLZXlBZG1pbnNMaXN0AAEAAQAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgkA2QQBCQCRAwIFEHB1YktleUFkbWluc0xpc3QAAgABAAADCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwADCQDZBAEJAJEDAgUQcHViS2V5QWRtaW5zTGlzdAADAAIAAAkAZwIFBWNvdW50AANgWkjy", "height": 2734863, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ajCXgRPfUP8AouVnQTqBrji87Qdfzn2UXDV6q2ozskD Next: 6R61zSjuQy4cG1PtnxAtvcGxNQ8V2sFvqqhNK1DegBdN Diff:
Old | New | Differences | |
---|---|---|---|
278 | 278 | ||
279 | 279 | @Callable(ba) | |
280 | 280 | func callEmergencyShutdown (bb) = { | |
281 | - | let bc = " | |
281 | + | let bc = "3MrRCbZhD9cPBT1efEkzAfaeaU26Ukvf9mh" | |
282 | 282 | let bd = toString(ba.caller) | |
283 | 283 | if (if ((bc != bd)) | |
284 | 284 | then (toString(D) != bd) | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | - | @Verifier(by) | |
370 | - | func bz () = { | |
371 | - | let bA = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
372 | - | let bB = split(valueOrElse(getString(W, "%s__multisig"), bA), a) | |
373 | - | let bC = ((((if (sigVerify(by.bodyBytes, by.proofs[0], fromBase58String(bB[0]))) | |
369 | + | ||
370 | + | @Callable(ba) | |
371 | + | func validatePrice (by,bz,aT) = $Tuple2(nil, true) | |
372 | + | ||
373 | + | ||
374 | + | @Verifier(bA) | |
375 | + | func bB () = { | |
376 | + | let bC = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
377 | + | let bD = split(valueOrElse(getString(W, "%s__multisig"), bC), a) | |
378 | + | let bE = ((((if (sigVerify(bA.bodyBytes, bA.proofs[0], fromBase58String(bD[0]))) | |
374 | 379 | then 1 | |
375 | - | else 0) + (if (sigVerify( | |
380 | + | else 0) + (if (sigVerify(bA.bodyBytes, bA.proofs[1], fromBase58String(bD[1]))) | |
376 | 381 | then 1 | |
377 | - | else 0)) + (if (sigVerify( | |
382 | + | else 0)) + (if (sigVerify(bA.bodyBytes, bA.proofs[2], fromBase58String(bD[2]))) | |
378 | 383 | then 1 | |
379 | - | else 0)) + (if (sigVerify( | |
384 | + | else 0)) + (if (sigVerify(bA.bodyBytes, bA.proofs[3], fromBase58String(bD[3]))) | |
380 | 385 | then 2 | |
381 | 386 | else 0)) | |
382 | - | ( | |
387 | + | (bE >= 3) | |
383 | 388 | } | |
384 | 389 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1 | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = 3 | |
11 | 11 | ||
12 | 12 | let e = 4 | |
13 | 13 | ||
14 | 14 | let f = 5 | |
15 | 15 | ||
16 | 16 | let g = 6 | |
17 | 17 | ||
18 | 18 | let h = 7 | |
19 | 19 | ||
20 | 20 | let i = 8 | |
21 | 21 | ||
22 | 22 | let j = 9 | |
23 | 23 | ||
24 | 24 | let k = 10 | |
25 | 25 | ||
26 | 26 | let l = 11 | |
27 | 27 | ||
28 | 28 | let m = 12 | |
29 | 29 | ||
30 | 30 | let n = 13 | |
31 | 31 | ||
32 | 32 | let o = 14 | |
33 | 33 | ||
34 | 34 | func p () = "%s__controlConfig" | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", r, s, t, u, v, w, x, y, z, A, B, C, D, E], a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func F (G,H) = fraction(fraction(G, H, 1000000), 1000000, 100000000) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func I (J,K) = valueOrElse(getInteger(addressFromStringValue(J), K), 0) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func L (J,K) = valueOrElse(getString(J, K), "") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func M (N) = split(N, ",") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | let H = valueOrElse(getInteger(this, "price"), 0) | |
53 | 53 | ||
54 | 54 | let O = valueOrElse(getInteger(this, "price_index"), 0) | |
55 | 55 | ||
56 | 56 | let P = valueOrElse(getBoolean(this, "is_blocked"), false) | |
57 | 57 | ||
58 | 58 | let Q = 1000 | |
59 | 59 | ||
60 | 60 | let R = valueOrElse(getString(this, "oracles"), "") | |
61 | 61 | ||
62 | 62 | let S = M(R) | |
63 | 63 | ||
64 | 64 | let T = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
65 | 65 | ||
66 | 66 | let U = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
67 | 67 | ||
68 | 68 | let V = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
69 | 69 | ||
70 | 70 | let W = this | |
71 | 71 | ||
72 | 72 | func X (J,K) = valueOrErrorMessage(getString(J, K), makeString(["mandatory ", toString(J), ".", K, " is not defined"], "")) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func Y (Z,aa) = valueOrErrorMessage(addressFromString(Z[aa]), ("Control cfg doesn't contain address at index " + toString(aa))) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | let Z = split_4C(X(this, p()), a) | |
79 | 79 | ||
80 | 80 | let D = Y(Z, n) | |
81 | 81 | ||
82 | 82 | let ab = valueOrElse(getInteger(T, "balance_lock_neutrino"), 0) | |
83 | 83 | ||
84 | 84 | let ac = valueOrElse(getInteger(T, "balance_lock_waves"), 0) | |
85 | 85 | ||
86 | 86 | let ad = (wavesBalance(T).regular - ac) | |
87 | 87 | ||
88 | 88 | let ae = (((ab + value(assetInfo(V)).quantity) - assetBalance(T, V)) - assetBalance(U, V)) | |
89 | 89 | ||
90 | 90 | let af = (ae - F(ad, H)) | |
91 | 91 | ||
92 | 92 | func ag (ah) = { | |
93 | 93 | let ai = 90 | |
94 | 94 | let aj = 110 | |
95 | 95 | let ak = ah[0] | |
96 | 96 | let al = if ((0 >= ah[0])) | |
97 | 97 | then [0] | |
98 | 98 | else { | |
99 | 99 | let am = ((ah[1] * 100) / ak) | |
100 | 100 | let an = ((ah[2] * 100) / ak) | |
101 | 101 | let ao = ((ah[3] * 100) / ak) | |
102 | 102 | let ap = ((ah[4] * 100) / ak) | |
103 | 103 | let aq = if (if ((aj > am)) | |
104 | 104 | then (am > ai) | |
105 | 105 | else false) | |
106 | 106 | then [1, 0] | |
107 | 107 | else [0] | |
108 | 108 | let ar = if (if ((aj > an)) | |
109 | 109 | then (an > ai) | |
110 | 110 | else false) | |
111 | 111 | then 2 :: aq | |
112 | 112 | else aq | |
113 | 113 | let as = if (if ((aj > ao)) | |
114 | 114 | then (ao > ai) | |
115 | 115 | else false) | |
116 | 116 | then 3 :: ar | |
117 | 117 | else ar | |
118 | 118 | if (if ((aj > ap)) | |
119 | 119 | then (ap > ai) | |
120 | 120 | else false) | |
121 | 121 | then 4 :: as | |
122 | 122 | else as | |
123 | 123 | } | |
124 | 124 | let at = if ((size(al) >= 3)) | |
125 | 125 | then al | |
126 | 126 | else { | |
127 | 127 | let au = ah[1] | |
128 | 128 | if ((0 >= au)) | |
129 | 129 | then [1] | |
130 | 130 | else { | |
131 | 131 | let av = ((ah[0] * 100) / au) | |
132 | 132 | let aw = ((ah[2] * 100) / au) | |
133 | 133 | let ax = ((ah[3] * 100) / au) | |
134 | 134 | let ay = ((ah[4] * 100) / au) | |
135 | 135 | let aq = if (if ((aj > av)) | |
136 | 136 | then (av > ai) | |
137 | 137 | else false) | |
138 | 138 | then [0, 1] | |
139 | 139 | else [1] | |
140 | 140 | let ar = if (if ((aj > aw)) | |
141 | 141 | then (aw > ai) | |
142 | 142 | else false) | |
143 | 143 | then 2 :: aq | |
144 | 144 | else aq | |
145 | 145 | let as = if (if ((aj > ax)) | |
146 | 146 | then (ax > ai) | |
147 | 147 | else false) | |
148 | 148 | then 3 :: ar | |
149 | 149 | else ar | |
150 | 150 | if (if ((aj > ay)) | |
151 | 151 | then (ay > ai) | |
152 | 152 | else false) | |
153 | 153 | then 4 :: as | |
154 | 154 | else as | |
155 | 155 | } | |
156 | 156 | } | |
157 | 157 | let az = if ((size(at) >= 3)) | |
158 | 158 | then at | |
159 | 159 | else { | |
160 | 160 | let aA = ah[2] | |
161 | 161 | if ((0 >= aA)) | |
162 | 162 | then [2] | |
163 | 163 | else { | |
164 | 164 | let aB = ((ah[0] * 100) / aA) | |
165 | 165 | let aC = ((ah[1] * 100) / aA) | |
166 | 166 | let aD = ((ah[3] * 100) / aA) | |
167 | 167 | let aE = ((ah[4] * 100) / aA) | |
168 | 168 | let aq = if (if ((aj > aB)) | |
169 | 169 | then (aB > ai) | |
170 | 170 | else false) | |
171 | 171 | then [0, 2] | |
172 | 172 | else [2] | |
173 | 173 | let ar = if (if ((aj > aC)) | |
174 | 174 | then (aC > ai) | |
175 | 175 | else false) | |
176 | 176 | then 1 :: aq | |
177 | 177 | else aq | |
178 | 178 | let as = if (if ((aj > aD)) | |
179 | 179 | then (aD > ai) | |
180 | 180 | else false) | |
181 | 181 | then 3 :: ar | |
182 | 182 | else ar | |
183 | 183 | if (if ((aj > aE)) | |
184 | 184 | then (aE > ai) | |
185 | 185 | else false) | |
186 | 186 | then 4 :: as | |
187 | 187 | else as | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | let aF = if ((size(az) >= 3)) | |
191 | 191 | then az | |
192 | 192 | else { | |
193 | 193 | let aG = ah[3] | |
194 | 194 | if ((0 >= aG)) | |
195 | 195 | then [3] | |
196 | 196 | else { | |
197 | 197 | let aH = ((ah[0] * 100) / aG) | |
198 | 198 | let aI = ((ah[1] * 100) / aG) | |
199 | 199 | let aJ = ((ah[2] * 100) / aG) | |
200 | 200 | let aK = ((ah[4] * 100) / aG) | |
201 | 201 | let aq = if (if ((aj > aH)) | |
202 | 202 | then (aH > ai) | |
203 | 203 | else false) | |
204 | 204 | then [0, 3] | |
205 | 205 | else [3] | |
206 | 206 | let ar = if (if ((aj > aI)) | |
207 | 207 | then (aI > ai) | |
208 | 208 | else false) | |
209 | 209 | then 1 :: aq | |
210 | 210 | else aq | |
211 | 211 | let as = if (if ((aj > aJ)) | |
212 | 212 | then (aJ > ai) | |
213 | 213 | else false) | |
214 | 214 | then 2 :: ar | |
215 | 215 | else ar | |
216 | 216 | if (if ((aj > aK)) | |
217 | 217 | then (aK > ai) | |
218 | 218 | else false) | |
219 | 219 | then 4 :: as | |
220 | 220 | else as | |
221 | 221 | } | |
222 | 222 | } | |
223 | 223 | if ((size(aF) >= 3)) | |
224 | 224 | then aF | |
225 | 225 | else { | |
226 | 226 | let aL = ah[4] | |
227 | 227 | if ((0 >= aL)) | |
228 | 228 | then [4] | |
229 | 229 | else { | |
230 | 230 | let aM = ((ah[0] * 100) / aL) | |
231 | 231 | let aN = ((ah[1] * 100) / aL) | |
232 | 232 | let aO = ((ah[2] * 100) / aL) | |
233 | 233 | let aP = ((ah[3] * 100) / aL) | |
234 | 234 | let aq = if (if ((aj > aM)) | |
235 | 235 | then (aM > ai) | |
236 | 236 | else false) | |
237 | 237 | then [0, 4] | |
238 | 238 | else [4] | |
239 | 239 | let ar = if (if ((aj > aN)) | |
240 | 240 | then (aN > ai) | |
241 | 241 | else false) | |
242 | 242 | then 1 :: aq | |
243 | 243 | else aq | |
244 | 244 | let as = if (if ((aj > aO)) | |
245 | 245 | then (aO > ai) | |
246 | 246 | else false) | |
247 | 247 | then 2 :: ar | |
248 | 248 | else ar | |
249 | 249 | if (if ((aj > aP)) | |
250 | 250 | then (aP > ai) | |
251 | 251 | else false) | |
252 | 252 | then 3 :: as | |
253 | 253 | else as | |
254 | 254 | } | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func aQ (H) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(H))) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func aR (aS,aT,aU) = { | |
263 | 263 | let aV = toString(height) | |
264 | 264 | let aW = toString(aU) | |
265 | 265 | let aX = makeString(["%s%s%s__common__priceByAsset", aT], a) | |
266 | 266 | let aY = makeString(["%s%s%s%d__common__priceByHeight", aT, aV], a) | |
267 | 267 | let aZ = makeString(["%s%s%s%d__common__priceByIndex", aT, aW], a) | |
268 | 268 | [IntegerEntry(aX, aS), IntegerEntry(aZ, aS), IntegerEntry(aY, aS)] | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | @Callable(ba) | |
273 | 273 | func constructorV1 (r,s,t,u,v,w,x,y,z,A,B,C,D,E) = if ((ba.caller != this)) | |
274 | 274 | then throw("permissions denied") | |
275 | 275 | else [StringEntry(p(), q(r, s, t, u, v, w, x, y, z, A, B, C, D, E))] | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(ba) | |
280 | 280 | func callEmergencyShutdown (bb) = { | |
281 | - | let bc = " | |
281 | + | let bc = "3MrRCbZhD9cPBT1efEkzAfaeaU26Ukvf9mh" | |
282 | 282 | let bd = toString(ba.caller) | |
283 | 283 | if (if ((bc != bd)) | |
284 | 284 | then (toString(D) != bd) | |
285 | 285 | else false) | |
286 | 286 | then throw("caller must be one an emergency oracle or Governance contract") | |
287 | 287 | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", bd), StringEntry("is_blocked_reason", bb)] | |
288 | 288 | } | |
289 | 289 | ||
290 | 290 | ||
291 | 291 | ||
292 | 292 | @Callable(ba) | |
293 | 293 | func finalizeCurrentPrice (be,bf,bg,bh,bi,bj,bk,bl,bm,bn) = if (P) | |
294 | 294 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
295 | 295 | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
296 | 296 | then throw("wait next block") | |
297 | 297 | else if ((S[(height % 5)] != toBase58String(ba.callerPublicKey))) | |
298 | 298 | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + S[(height % 5)])) | |
299 | 299 | else { | |
300 | 300 | let ah = [if (sigVerify_8Kb(aQ(be), bf, fromBase58String(S[0]))) | |
301 | 301 | then be | |
302 | 302 | else 0, if (sigVerify_8Kb(aQ(bg), bh, fromBase58String(S[1]))) | |
303 | 303 | then bg | |
304 | 304 | else 0, if (sigVerify_8Kb(aQ(bi), bj, fromBase58String(S[2]))) | |
305 | 305 | then bi | |
306 | 306 | else 0, if (sigVerify_8Kb(aQ(bk), bl, fromBase58String(S[3]))) | |
307 | 307 | then bk | |
308 | 308 | else 0, if (sigVerify_8Kb(aQ(bm), bn, fromBase58String(S[4]))) | |
309 | 309 | then bm | |
310 | 310 | else 0] | |
311 | 311 | let bo = if ((ah[0] == 0)) | |
312 | 312 | then 1 | |
313 | 313 | else (0 + (if ((ah[1] == 0)) | |
314 | 314 | then 1 | |
315 | 315 | else (0 + (if ((ah[2] == 0)) | |
316 | 316 | then 1 | |
317 | 317 | else (0 + (if ((ah[3] == 0)) | |
318 | 318 | then 1 | |
319 | 319 | else (0 + (if ((ah[4] == 0)) | |
320 | 320 | then 1 | |
321 | 321 | else 0)))))))) | |
322 | 322 | if ((bo >= 3)) | |
323 | 323 | then throw("3 prices or more are equals to 0") | |
324 | 324 | else { | |
325 | 325 | let bp = ag(ah) | |
326 | 326 | let bq = size(bp) | |
327 | 327 | if ((3 > bq)) | |
328 | 328 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
329 | 329 | ") + S[0]) + "=") + toString(ah[0])) + " | |
330 | 330 | ") + S[1]) + "=") + toString(ah[1])) + " | |
331 | 331 | ") + S[2]) + "=") + toString(ah[2])) + " | |
332 | 332 | ") + S[3]) + "=") + toString(ah[3])) + " | |
333 | 333 | ") + S[4]) + "=") + toString(ah[4]))) | |
334 | 334 | else { | |
335 | 335 | let br = ((ah[bp[0]] + ah[bp[1]]) + ah[bp[2]]) | |
336 | 336 | let bs = if ((bq >= 4)) | |
337 | 337 | then (br + ah[bp[3]]) | |
338 | 338 | else br | |
339 | 339 | let bt = if ((bq >= 5)) | |
340 | 340 | then (bs + ah[bp[4]]) | |
341 | 341 | else bs | |
342 | 342 | if ((bq >= 6)) | |
343 | 343 | then throw("Invalid pricesInRange creation") | |
344 | 344 | else { | |
345 | 345 | let aS = (bt / bq) | |
346 | 346 | let bu = valueOrElse(getInteger("wx_stub_price"), 81109) | |
347 | 347 | let bv = "EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc" | |
348 | 348 | let bw = valueOrElse(getInteger("vires_stub_price"), 1330432) | |
349 | 349 | let bx = "9RE43pPoy64Hy9BmC9xM9DG1hKqnAMAqNRnbAniqZ1Pf" | |
350 | 350 | if (if ((aS >= (H + ((H * Q) / 100)))) | |
351 | 351 | then true | |
352 | 352 | else ((H - ((H * Q) / 100)) >= aS)) | |
353 | 353 | then { | |
354 | 354 | let bb = "automatic emergency shutdown because of large price variability" | |
355 | 355 | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", bb), IntegerEntry((("black_swarm_price" + "_") + toString(height)), aS)] | |
356 | 356 | } | |
357 | 357 | else { | |
358 | 358 | let aU = (O + 1) | |
359 | 359 | ((([IntegerEntry("price", aS), IntegerEntry(("price_" + toString(height)), aS), IntegerEntry(("price_index_" + toString(aU)), height), IntegerEntry("price_index", aU), IntegerEntry(("indexByHeight_" + toString(height)), aU), IntegerEntry(("priceByIndex_" + toString(aU)), aS), IntegerEntry(("deficit_" + toString(height)), af), IntegerEntry(("neutrinoSupply_" + toString(height)), ae), IntegerEntry(("deficit_percent_" + toString(height)), if ((ae != 0)) | |
360 | 360 | then ((af * 100) / ae) | |
361 | 361 | else 0)] ++ aR(aS, "WAVES", aU)) ++ aR(bu, bv, aU)) ++ aR(bw, bx, aU)) | |
362 | 362 | } | |
363 | 363 | } | |
364 | 364 | } | |
365 | 365 | } | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | - | @Verifier(by) | |
370 | - | func bz () = { | |
371 | - | let bA = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
372 | - | let bB = split(valueOrElse(getString(W, "%s__multisig"), bA), a) | |
373 | - | let bC = ((((if (sigVerify(by.bodyBytes, by.proofs[0], fromBase58String(bB[0]))) | |
369 | + | ||
370 | + | @Callable(ba) | |
371 | + | func validatePrice (by,bz,aT) = $Tuple2(nil, true) | |
372 | + | ||
373 | + | ||
374 | + | @Verifier(bA) | |
375 | + | func bB () = { | |
376 | + | let bC = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], a) | |
377 | + | let bD = split(valueOrElse(getString(W, "%s__multisig"), bC), a) | |
378 | + | let bE = ((((if (sigVerify(bA.bodyBytes, bA.proofs[0], fromBase58String(bD[0]))) | |
374 | 379 | then 1 | |
375 | - | else 0) + (if (sigVerify( | |
380 | + | else 0) + (if (sigVerify(bA.bodyBytes, bA.proofs[1], fromBase58String(bD[1]))) | |
376 | 381 | then 1 | |
377 | - | else 0)) + (if (sigVerify( | |
382 | + | else 0)) + (if (sigVerify(bA.bodyBytes, bA.proofs[2], fromBase58String(bD[2]))) | |
378 | 383 | then 1 | |
379 | - | else 0)) + (if (sigVerify( | |
384 | + | else 0)) + (if (sigVerify(bA.bodyBytes, bA.proofs[3], fromBase58String(bD[3]))) | |
380 | 385 | then 2 | |
381 | 386 | else 0)) | |
382 | - | ( | |
387 | + | (bE >= 3) | |
383 | 388 | } | |
384 | 389 |
github/deemru/w8io/026f985 45.38 ms ◑