tx · GhxM5bqNkiUffHBX63xbHQXXAQFCQpovePhYsSusiS24 3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj: -0.01400000 Waves 2019.09.28 00:12 [695364] smart account 3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj > SELF 0.00000000 Waves
{ "type": 13, "id": "GhxM5bqNkiUffHBX63xbHQXXAQFCQpovePhYsSusiS24", "fee": 1400000, "feeAssetId": null, "timestamp": 1569618829265, "version": 1, "sender": "3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj", "senderPublicKey": "7YuxEiQSearE3DvFS84DXzV5gad9qxsq4bTy633SAYBj", "proofs": [ "477sdXhmug9L6Nei2vQSUx6ejox3zEGD1E9idoXL1Q3uhfeijMd8kNhFxterwMhZRzHQ5FPsBLAwbjvKtgsta5tK" ], "script": "base64:AAIDAAAAAAAAAAAAAABhAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcAAAAAD0xJU1RTUExJVFNZTUJPTAIAAAABXwAAAAAOTElTVERBVEFTWU1CT0wCAAAAASsAAAAAB1dBVkVMRVQAAAAAA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kABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAACm9yZGVyT3duZXIJAQAAABVjb252ZXJ0Qm9uZFRvTmV1dHJpbm8AAAABBQAAAA5uZXdGaWxsZWRUb3RhbAUAAAAPbmV1dHJpbm9Bc3NldElkBQAAAANuaWwAAAAAO1fVaA==", "chainId": 84, "height": 695364, "spentComplexity": 0 } View: original | compacted Prev: EvEr8vfer8vsQBt7b8dFCXnBA5cd7X9H9Gsg7A92f645 Next: 2UDw7KpHif9q93RB2CAmmJdT4Qpig1YwPsAeEPU5fayx Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (b) = { | |
16 | 16 | let c = getString(this, b) | |
17 | 17 | if ($isInstanceOf(c, "String")) | |
18 | 18 | then { | |
19 | 19 | let d = c | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | else "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func f (b) = { | |
27 | 27 | let c = getBoolean(this, b) | |
28 | 28 | if ($isInstanceOf(c, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let d = c | |
31 | 31 | d | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let g = "_" | |
38 | 38 | ||
39 | 39 | let h = "+" | |
40 | 40 | ||
41 | 41 | let i = 100000000 | |
42 | 42 | ||
43 | 43 | let j = "canceled" | |
44 | 44 | ||
45 | 45 | let k = "new" | |
46 | 46 | ||
47 | 47 | let l = "filled" | |
48 | 48 | ||
49 | 49 | let m = "neutrino_asset_id" | |
50 | 50 | ||
51 | 51 | let n = "bond_asset_id" | |
52 | 52 | ||
53 | 53 | let o = "auction_contract" | |
54 | 54 | ||
55 | 55 | let p = "balance_lock_interval" | |
56 | 56 | ||
57 | 57 | let q = "vote_interval" | |
58 | 58 | ||
59 | 59 | let r = "min_swap_amount" | |
60 | 60 | ||
61 | 61 | let s = "price_offset" | |
62 | 62 | ||
63 | 63 | let t = "providing_interval" | |
64 | 64 | ||
65 | 65 | let u = "price" | |
66 | 66 | ||
67 | 67 | let v = "neutrino_" | |
68 | 68 | ||
69 | 69 | let w = "waves_" | |
70 | 70 | ||
71 | 71 | let x = "balance_block_" | |
72 | 72 | ||
73 | 73 | let y = "orderbook" | |
74 | 74 | ||
75 | 75 | let z = "order_total_" | |
76 | 76 | ||
77 | 77 | let A = "order_owner_" | |
78 | 78 | ||
79 | 79 | let B = "order_height_" | |
80 | 80 | ||
81 | 81 | let C = "order_filled_total_" | |
82 | 82 | ||
83 | 83 | let D = "order_status_" | |
84 | 84 | ||
85 | 85 | let E = "is_blocked" | |
86 | 86 | ||
87 | 87 | let F = "black_swarm_price" | |
88 | 88 | ||
89 | 89 | let G = "admin_vote_" | |
90 | 90 | ||
91 | 91 | let H = "admin_vote_price_" | |
92 | 92 | ||
93 | 93 | let I = "vote_expire_block" | |
94 | 94 | ||
95 | 95 | let J = "admin_" | |
96 | 96 | ||
97 | 97 | let K = "is_pending_price" | |
98 | 98 | ||
99 | 99 | let L = "oracle_" | |
100 | 100 | ||
101 | 101 | let M = "oracle_is_provide_" | |
102 | 102 | ||
103 | 103 | let N = "oracle_price_provide_" | |
104 | 104 | ||
105 | 105 | let O = "providing_expire_block" | |
106 | 106 | ||
107 | 107 | func P (Q) = (J + toString(Q)) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func R (S) = (G + S) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func T (S) = (H + S) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func U (Q) = (L + toString(Q)) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func V (S) = (M + S) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func W (S) = (N + S) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func X (S) = (v + S) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func Y (S) = (w + S) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func Z (S) = (x + S) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func aa (ab) = ((F + "_") + toString(ab)) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func ac (ab) = ((u + "_") + toString(ab)) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func ad (ae) = (z + ae) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func af (ae) = (A + ae) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ag (ae) = (B + ae) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ah (ae) = (D + ae) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func ai (ae) = (C + ae) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | let aj = a(u) | |
156 | 156 | ||
157 | 157 | func ak (al) = ((al * 100) / aj) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func am (al) = ((al * aj) / 100) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func an (al) = (al / i) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ao (al) = (al * i) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func ap (al) = an(am(al)) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | let aq = a(t) | |
173 | 173 | ||
174 | 174 | let ar = a(O) | |
175 | 175 | ||
176 | 176 | let as = f(K) | |
177 | 177 | ||
178 | 178 | let at = a(s) | |
179 | 179 | ||
180 | 180 | let au = a(q) | |
181 | 181 | ||
182 | 182 | let av = a(I) | |
183 | 183 | ||
184 | 184 | let aw = a(p) | |
185 | 185 | ||
186 | 186 | let ax = f(E) | |
187 | 187 | ||
188 | 188 | let ay = a(r) | |
189 | 189 | ||
190 | 190 | let az = fromBase58String(e(m)) | |
191 | 191 | ||
192 | 192 | let aA = e(o) | |
193 | 193 | ||
194 | 194 | let aB = wavesBalance(this) | |
195 | 195 | ||
196 | 196 | let aC = e(y) | |
197 | 197 | ||
198 | 198 | let aD = fromBase58String(e(n)) | |
199 | 199 | ||
200 | 200 | let aE = { | |
201 | 201 | let aF = extract(assetInfo(aD)) | |
202 | 202 | (aF.quantity - assetBalance(this, aD)) | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | let aG = { | |
206 | 206 | let aF = extract(assetInfo(az)) | |
207 | 207 | (aF.quantity - assetBalance(this, az)) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | let aH = (am(aB) - aG) | |
211 | 211 | ||
212 | 212 | let aI = e(U(0)) | |
213 | 213 | ||
214 | 214 | let aJ = e(U(1)) | |
215 | 215 | ||
216 | 216 | let aK = e(U(2)) | |
217 | 217 | ||
218 | 218 | let aL = e(P(0)) | |
219 | 219 | ||
220 | 220 | let aM = e(P(1)) | |
221 | 221 | ||
222 | 222 | let aN = e(P(2)) | |
223 | 223 | ||
224 | 224 | func aO (S) = if (f(R(S))) | |
225 | 225 | then 1 | |
226 | 226 | else 0 | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func aP (S) = a(T(S)) | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | func aQ (S) = f(V(S)) | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | func aR (S) = if (aQ(S)) | |
236 | 236 | then 1 | |
237 | 237 | else 0 | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func aS (S) = a(W(S)) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func aT (S) = a(Y(S)) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func aU (S) = a(X(S)) | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | func aV (S) = a(Z(S)) | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func aW (aX) = a(ad(aX)) | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func aY (aX) = e(af(aX)) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func aZ (aX) = a(ai(aX)) | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func ba (aX) = (aX + g) | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func bb (ae) = (aC + ba(ae)) | |
265 | 265 | ||
266 | 266 | ||
267 | 267 | func bc (ae) = { | |
268 | 268 | let bd = split(aC, ba(ae)) | |
269 | 269 | (bd[0] + bd[1]) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | @Callable(be) | |
274 | 274 | func setCurrentPrice (bf) = { | |
275 | 275 | let bg = toString(be.caller) | |
276 | 276 | let bh = (((aR(aI) + aR(aJ)) + aR(aK)) + 1) | |
277 | 277 | if (ax) | |
278 | 278 | then throw("contract is blocked") | |
279 | 279 | else if (if (if ((bg != aI)) | |
280 | 280 | then (bg != aJ) | |
281 | 281 | else false) | |
282 | 282 | then (bg != aK) | |
283 | 283 | else false) | |
284 | 284 | then throw("permission denied") | |
285 | 285 | else if (if ((ar >= height)) | |
286 | 286 | then aQ(bg) | |
287 | 287 | else false) | |
288 | 288 | then throw("price is already provided") | |
289 | 289 | else if (if ((height > ar)) | |
290 | 290 | then as | |
291 | 291 | else false) | |
292 | 292 | then throw("use finilizeCurrentPrice") | |
293 | 293 | else WriteSet([DataEntry(W(bg), bf), DataEntry(O, if ((height > ar)) | |
294 | 294 | then (height + aq) | |
295 | 295 | else ar), DataEntry(V(aI), if ((height > ar)) | |
296 | 296 | then false | |
297 | 297 | else aQ(aI)), DataEntry(V(aJ), if ((height > ar)) | |
298 | 298 | then false | |
299 | 299 | else aQ(aJ)), DataEntry(V(aK), if ((height > ar)) | |
300 | 300 | then false | |
301 | 301 | else aQ(aK)), DataEntry(V(bg), true), DataEntry(K, if (if ((ar >= height)) | |
302 | 302 | then (bh >= 2) | |
303 | 303 | else false) | |
304 | 304 | then true | |
305 | 305 | else as)]) | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(be) | |
311 | 311 | func finilizeCurrentPrice () = { | |
312 | 312 | let bg = toString(be.caller) | |
313 | 313 | let bh = ((aR(aI) + aR(aJ)) + aR(aK)) | |
314 | 314 | let bf = ((((aS(aI) * aR(aI)) + (aS(aJ) * aR(aJ))) + (aS(aK) * aR(aK))) / bh) | |
315 | 315 | if (ax) | |
316 | 316 | then throw("contract is blocked") | |
317 | 317 | else if (if (if ((bg != aI)) | |
318 | 318 | then (bg != aJ) | |
319 | 319 | else false) | |
320 | 320 | then (bg != aK) | |
321 | 321 | else false) | |
322 | 322 | then throw("permission denied") | |
323 | 323 | else if (if (!(as)) | |
324 | 324 | then true | |
325 | 325 | else (ar >= height)) | |
326 | 326 | then throw("wait for the end of the price providing") | |
327 | 327 | else if ((2 > bh)) | |
328 | 328 | then throw("2/3 oracles need to set a price") | |
329 | 329 | else if (if ((bf >= (aj + ((aj * at) / 100)))) | |
330 | 330 | then true | |
331 | 331 | else ((aj - ((aj * at) / 100)) >= bf)) | |
332 | 332 | then WriteSet([DataEntry(E, true), DataEntry(aa(height), bf)]) | |
333 | 333 | else WriteSet([DataEntry(u, bf), DataEntry(ac(height), bf), DataEntry(K, false)]) | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | ||
338 | 338 | @Callable(be) | |
339 | 339 | func adminUnlock (bf) = { | |
340 | 340 | let bg = toString(be.caller) | |
341 | 341 | let bi = if ((bg != aL)) | |
342 | 342 | then aO(aL) | |
343 | 343 | else 0 | |
344 | 344 | let bj = if ((bg != aM)) | |
345 | 345 | then aO(aM) | |
346 | 346 | else 0 | |
347 | 347 | let bk = if ((bg != aN)) | |
348 | 348 | then aO(aN) | |
349 | 349 | else 0 | |
350 | 350 | let bl = if (((aP(aL) * bi) == bf)) | |
351 | 351 | then 1 | |
352 | 352 | else 0 | |
353 | 353 | let bm = if (((aP(aM) * bj) == bf)) | |
354 | 354 | then 1 | |
355 | 355 | else 0 | |
356 | 356 | let bn = if (((aP(aN) * bk) == bf)) | |
357 | 357 | then 1 | |
358 | 358 | else 0 | |
359 | 359 | if (!(ax)) | |
360 | 360 | then throw("Contract is not blocked") | |
361 | 361 | else if (if (((((bl + bm) + bn) + 1) >= 2)) | |
362 | 362 | then (av >= height) | |
363 | 363 | else false) | |
364 | 364 | then WriteSet([DataEntry(E, false), DataEntry(u, bf), DataEntry(ac(height), bf), DataEntry(R(aL), false), DataEntry(R(aM), false), DataEntry(R(aN), false), DataEntry(I, 0), DataEntry(O, 0), DataEntry(K, false)]) | |
365 | 365 | else WriteSet([DataEntry(T(bg), bf), DataEntry(I, if ((height > av)) | |
366 | 366 | then (height + au) | |
367 | 367 | else av), DataEntry(R(aL), if ((height > av)) | |
368 | 368 | then false | |
369 | 369 | else (bi == 1)), DataEntry(R(aM), if ((height > av)) | |
370 | 370 | then false | |
371 | 371 | else (bj == 1)), DataEntry(R(aN), if ((height > av)) | |
372 | 372 | then false | |
373 | 373 | else (bk == 1)), DataEntry(R(bg), true)]) | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | ||
378 | 378 | @Callable(be) | |
379 | 379 | func adminLock () = { | |
380 | 380 | let bg = toString(be.caller) | |
381 | 381 | let bi = if ((bg != aL)) | |
382 | 382 | then aO(aL) | |
383 | 383 | else 1 | |
384 | 384 | let bj = if ((bg != aM)) | |
385 | 385 | then aO(aM) | |
386 | 386 | else 1 | |
387 | 387 | let bk = if ((bg != aN)) | |
388 | 388 | then aO(aN) | |
389 | 389 | else 1 | |
390 | 390 | if (ax) | |
391 | 391 | then throw("Contract is blocked") | |
392 | 392 | else if ((((bi + bj) + bk) >= 2)) | |
393 | 393 | then WriteSet([DataEntry(E, true), DataEntry(R(aL), false), DataEntry(R(aM), false), DataEntry(R(aN), false), DataEntry(I, 0)]) | |
394 | 394 | else WriteSet([DataEntry(I, if ((height > av)) | |
395 | 395 | then (height + au) | |
396 | 396 | else av), DataEntry(R(aL), if ((height > av)) | |
397 | 397 | then false | |
398 | 398 | else (bi == 1)), DataEntry(R(aM), if ((height > av)) | |
399 | 399 | then false | |
400 | 400 | else (bj == 1)), DataEntry(R(aN), if ((height > av)) | |
401 | 401 | then false | |
402 | 402 | else (bk == 1))]) | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | ||
407 | 407 | @Callable(be) | |
408 | 408 | func swapWavesToNeutrino () = { | |
409 | 409 | let bo = extract(be.payment) | |
410 | 410 | if ((ay > bo.amount)) | |
411 | 411 | then throw("amount less min") | |
412 | 412 | else if (isDefined(bo.assetId)) | |
413 | 413 | then throw("can use waves only") | |
414 | 414 | else if (ax) | |
415 | 415 | then throw("contract is blocked") | |
416 | 416 | else { | |
417 | 417 | let bg = toBase58String(be.caller.bytes) | |
418 | 418 | let al = am(bo.amount) | |
419 | 419 | WriteSet([DataEntry(X(bg), (aU(bg) + al)), DataEntry(Z(bg), (height + aw))]) | |
420 | 420 | } | |
421 | 421 | } | |
422 | 422 | ||
423 | 423 | ||
424 | 424 | ||
425 | 425 | @Callable(be) | |
426 | 426 | func swapNeutrinoToWaves () = { | |
427 | 427 | let bo = extract(be.payment) | |
428 | 428 | if ((ay > bo.amount)) | |
429 | 429 | then throw("amount less min") | |
430 | 430 | else if (ax) | |
431 | 431 | then throw("contract is blocked") | |
432 | 432 | else if ((bo.assetId != az)) | |
433 | 433 | then throw("can use neutrino only") | |
434 | 434 | else { | |
435 | 435 | let bg = toBase58String(be.caller.bytes) | |
436 | 436 | let al = ak(bo.amount) | |
437 | 437 | WriteSet([DataEntry(Y(bg), (aT(bg) + al)), DataEntry(Z(bg), (height + aw))]) | |
438 | 438 | } | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | ||
443 | 443 | @Callable(be) | |
444 | 444 | func withdraw (bg) = if ((aV(bg) > height)) | |
445 | 445 | then throw("wait a couple of blocks for withdraw") | |
446 | 446 | else ScriptResult(WriteSet([DataEntry(Y(bg), 0), DataEntry(X(bg), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(bg), aU(bg), az), ScriptTransfer(addressFromStringValue(bg), aT(bg), unit)])) | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | ||
450 | 450 | @Callable(be) | |
451 | 451 | func generateBond () = { | |
452 | 452 | let bp = (aG - am(aB)) | |
453 | 453 | let bq = assetBalance(addressFromStringValue(aA), aD) | |
454 | 454 | let al = (an(bp) - bq) | |
455 | 455 | if (ax) | |
456 | 456 | then throw("contract is blocked") | |
457 | 457 | else if ((al > 0)) | |
458 | 458 | then TransferSet([ScriptTransfer(addressFromStringValue(aA), al, aD)]) | |
459 | 459 | else throw("bond were generated or do not need it") | |
460 | 460 | } | |
461 | 461 | ||
462 | 462 | ||
463 | 463 | ||
464 | 464 | @Callable(be) | |
465 | 465 | func setOrder () = { | |
466 | 466 | let bo = extract(be.payment) | |
467 | 467 | let br = toBase58String(keccak256(((toBytes(bo.amount) + be.caller.bytes) + toBytes(height)))) | |
468 | 468 | if ((bo.assetId != aD)) | |
469 | 469 | then throw("can use bond only") | |
470 | 470 | else if ((aY(br) != "")) | |
471 | 471 | then throw("order exists") | |
472 | 472 | else WriteSet([DataEntry(y, bb(br)), DataEntry(ad(br), bo.amount), DataEntry(af(br), toString(be.caller)), DataEntry(ag(br), height), DataEntry(ah(br), k)]) | |
473 | 473 | } | |
474 | 474 | ||
475 | 475 | ||
476 | 476 | ||
477 | 477 | @Callable(be) | |
478 | 478 | func cancelOrder (ae) = { | |
479 | 479 | let S = aY(ae) | |
480 | 480 | let al = (aW(ae) - aZ(ae)) | |
481 | 481 | if ((S != toString(be.caller))) | |
482 | 482 | then throw("permission denied") | |
483 | 483 | else ScriptResult(WriteSet([DataEntry(y, bc(ae)), DataEntry(ah(ae), j)]), TransferSet([ScriptTransfer(be.caller, al, aD)])) | |
484 | 484 | } | |
485 | 485 | ||
486 | 486 | ||
487 | 487 | ||
488 | 488 | @Callable(be) | |
489 | 489 | func executeOrder () = { | |
490 | 490 | let ae = split(aC, g)[0] | |
491 | 491 | let bs = aW(ae) | |
492 | 492 | let bt = aY(ae) | |
493 | 493 | let bu = aZ(ae) | |
494 | 494 | if (ax) | |
495 | 495 | then throw("contract is blocked") | |
496 | 496 | else if ((0 >= aH)) | |
497 | 497 | then throw("surplus is less than zero") | |
498 | 498 | else { | |
499 | 499 | let al = (bs - bu) | |
500 | 500 | let bv = an(aH) | |
501 | 501 | let bw = if ((bv >= al)) | |
502 | 502 | then l | |
503 | 503 | else k | |
504 | 504 | let bx = if ((bv >= al)) | |
505 | 505 | then bs | |
506 | 506 | else bv | |
507 | 507 | ScriptResult(WriteSet([DataEntry(y, bc(ae)), DataEntry(ai(ae), (bu + bx)), DataEntry(ah(ae), bw)]), TransferSet([ScriptTransfer(addressFromStringValue(bt), ao(bx), az)])) | |
508 | 508 | } | |
509 | 509 | } | |
510 | 510 | ||
511 | 511 |
github/deemru/w8io/026f985 51.12 ms ◑