tx · 9egcjoXDD4uZkdpaw4mitA3ey9fJzTw7Cg7FiFvjTSZB 3NAud2dbHnNJfRgqHXF69NsrRv3fekUn5bm: -0.04300000 Waves 2024.04.17 09:39 [3066422] smart account 3NAud2dbHnNJfRgqHXF69NsrRv3fekUn5bm > SELF 0.00000000 Waves
{ "type": 13, "id": "9egcjoXDD4uZkdpaw4mitA3ey9fJzTw7Cg7FiFvjTSZB", "fee": 4300000, "feeAssetId": null, "timestamp": 1713335833544, "version": 2, "chainId": 84, "sender": "3NAud2dbHnNJfRgqHXF69NsrRv3fekUn5bm", "senderPublicKey": "CsCqxE5Uy8cjruN5hq8ALsrkq2o89yNbfFVDaV1nb9Rc", "proofs": [ "5yUQaqBZsfL2oDFxh3mjCc5G3A5q6W2Kx3N3iPoKYJ8HfRbNGFeQfAvTYukEzf6ZBE91sQDfHj9XtHzaBGAEQtcf" ], "script": "base64:BgLjOAgCEgASBQoDAQQBEgcKBQEEAQgBEgQKAgEEEgMKAQESBAoCAQQSBAoCCAESBAoCCAESBAoCCAESBQoDAQgBEgASBAoCAQESAwoBARIFCgMBAQESBAoCCAgSABIAEgMKAQgSBQoDAQEBEgQKAgEBEgQKAggBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgASAwoBARIDCgEBEgQKAggBIgpsUGRlY2ltYWxzIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiILd2F2ZXNTdHJpbmciA1NFUCIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNz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cwAABQJpb6uQlhc=", "height": 3066422, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8RER9mbP48QyyqRoVUp2m2ydBwSprqvaTwoDMrsLTqzx Next: 7FZ3FBgqVmZ8LqTqKbTA8graigR6vvpNd23STEG8ysXF Diff:
Old | New | Differences | |
---|---|---|---|
235 | 235 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
236 | 236 | } | |
237 | 237 | ||
238 | - | func bi () = | |
238 | + | func bi (aX) = makeString(["%s%s", "whitelisted", toString(aX)], j) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bj () = | |
241 | + | func bj (aX) = valueOrElse(getBoolean(bd, bi(aX)), false) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bk () = { | |
245 | - | let bl = aW(this, ae()) | |
246 | - | let bm = aW(this, af()) | |
247 | - | let az = aZ(bd, aA(bm)) | |
248 | - | let ay = aZ(bd, aA(bl)) | |
244 | + | func bk () = valueOrElse(getBoolean(bd, aC()), false) | |
245 | + | ||
246 | + | ||
247 | + | func bl () = fromBase58String(aW(bd, au())) | |
248 | + | ||
249 | + | ||
250 | + | func bm () = { | |
251 | + | let bn = aW(this, ae()) | |
252 | + | let bo = aW(this, af()) | |
253 | + | let az = aZ(bd, aA(bo)) | |
254 | + | let ay = aZ(bd, aA(bn)) | |
249 | 255 | split(aW(bd, ax(toString(ay), toString(az))), j) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
259 | + | func bp (bq) = if ((bq == i)) | |
254 | 260 | then unit | |
255 | - | else fromBase58String( | |
261 | + | else fromBase58String(bq) | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func br (bq) = if ((bq == unit)) | |
259 | 265 | then i | |
260 | - | else toBase58String(value( | |
266 | + | else toBase58String(value(bq)) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bs (bt) = $Tuple7(addressFromStringValue(bt[o]), parseIntValue(bt[p]), fromBase58String(bt[q]), bp(bt[r]), bp(bt[s]), parseIntValue(bt[t]), parseIntValue(bt[u])) | |
264 | 270 | ||
265 | 271 | ||
266 | - | let | |
272 | + | let bu = bs(bm()) | |
267 | 273 | ||
268 | - | let | |
274 | + | let bv = bu | |
269 | 275 | ||
270 | - | let | |
276 | + | let bw = bv._1 | |
271 | 277 | ||
272 | - | let | |
278 | + | let bx = bv._2 | |
273 | 279 | ||
274 | - | let | |
280 | + | let by = bv._3 | |
275 | 281 | ||
276 | - | let | |
282 | + | let bz = bv._4 | |
277 | 283 | ||
278 | - | let | |
284 | + | let bA = bv._5 | |
279 | 285 | ||
280 | - | let | |
286 | + | let bB = bv._6 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bC = bv._7 | |
283 | 289 | ||
284 | - | func | |
290 | + | func bD () = split(aW(bd, at()), j) | |
285 | 291 | ||
286 | 292 | ||
287 | - | let | |
293 | + | let bE = valueOrErrorMessage(addressFromString(bD()[B]), "incorrect staking address") | |
288 | 294 | ||
289 | - | let | |
295 | + | let bF = valueOrErrorMessage(addressFromString(bD()[C]), "incorrect staking address") | |
290 | 296 | ||
291 | - | func | |
297 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ)], j) | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bR (bS,bT,bU,bK,bN,bO) = makeString(["%d%d%d%d%d%d", toString(bS), toString(bT), toString(bU), toString(bK), toString(bN), toString(bO)], j) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
298 | - | let | |
303 | + | func bV (ap) = { | |
304 | + | let bW = if ((ap == "WAVES")) | |
299 | 305 | then wavesBalance(this).available | |
300 | 306 | else assetBalance(this, fromBase58String(ap)) | |
301 | - | let | |
302 | - | max([0, | |
307 | + | let bX = ((bW + ar(ap)) - as(ap)) | |
308 | + | max([0, bX]) | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bY (bZ,ca) = fraction(bZ, d, ca) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func cb (bZ,ca,L) = fraction(bZ, d, ca, L) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
313 | - | let | |
314 | - | if (( | |
318 | + | func cc (cd) = { | |
319 | + | let ce = invoke(cd, "getRate", nil, nil) | |
320 | + | if ((ce == ce)) | |
315 | 321 | then { | |
316 | - | let aQ = | |
322 | + | let aQ = ce | |
317 | 323 | if ($isInstanceOf(aQ, "Int")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | | |
325 | + | let cf = aQ | |
326 | + | cf | |
321 | 327 | } | |
322 | 328 | else ba("proxy.getRate() unexpected value") | |
323 | 329 | } | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | if (( | |
334 | + | func cg (ap,ch,ci,cd) = { | |
335 | + | let cj = ar(ap) | |
336 | + | if ((cj == cj)) | |
331 | 337 | then { | |
332 | - | let | |
333 | - | if (( | |
338 | + | let ck = as(ci) | |
339 | + | if ((ck == ck)) | |
334 | 340 | then { | |
335 | - | let | |
336 | - | if (( | |
341 | + | let cl = bp(ap) | |
342 | + | if ((ch > 0)) | |
337 | 343 | then { | |
338 | - | let | |
339 | - | if (( | |
344 | + | let cm = invoke(cd, "deposit", nil, [AttachedPayment(cl, ch)]) | |
345 | + | if ((cm == cm)) | |
340 | 346 | then { | |
341 | - | let aQ = | |
347 | + | let aQ = cm | |
342 | 348 | if ($isInstanceOf(aQ, "Int")) | |
343 | 349 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | [IntegerEntry(ao(ap), | |
350 | + | let cn = aQ | |
351 | + | let co = (cj + ch) | |
352 | + | let cp = (ck + cn) | |
353 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp)] | |
348 | 354 | } | |
349 | 355 | else nil | |
350 | 356 | } | |
358 | 364 | } | |
359 | 365 | ||
360 | 366 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
367 | + | func cq (ap,ch,ci,cd,cr,cs) = { | |
368 | + | let cj = ar(ap) | |
369 | + | if ((cj == cj)) | |
364 | 370 | then { | |
365 | - | let | |
366 | - | if (( | |
371 | + | let ck = as(ci) | |
372 | + | if ((ck == ck)) | |
367 | 373 | then { | |
368 | - | let | |
369 | - | if (( | |
374 | + | let ct = cc(cd) | |
375 | + | if ((ct == ct)) | |
370 | 376 | then { | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
377 | + | let cu = fraction(cr, cj, ck) | |
378 | + | let cv = bp(ci) | |
379 | + | let cw = fraction(cr, ch, cu) | |
380 | + | let cx = fraction(cr, ch, ct) | |
381 | + | let cy = max([0, (cw - cx)]) | |
382 | + | if ((cx > 0)) | |
377 | 383 | then { | |
378 | - | let | |
379 | - | if (( | |
384 | + | let cz = invoke(cd, "withdraw", nil, [AttachedPayment(cv, cx)]) | |
385 | + | if ((cz == cz)) | |
380 | 386 | then { | |
381 | - | let aQ = | |
387 | + | let aQ = cz | |
382 | 388 | if ($isInstanceOf(aQ, "Int")) | |
383 | 389 | then { | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | [IntegerEntry(ao(ap), | |
390 | + | let cA = aQ | |
391 | + | let co = (cj - cA) | |
392 | + | let cp = ((ck - cx) - cy) | |
393 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp), ScriptTransfer(cs, cy, bp(ci))] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | 396 | } | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
409 | + | func cB (ap) = { | |
404 | 410 | let aQ = invoke(bd, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
405 | 411 | if ($isInstanceOf(aQ, "(Boolean, Int, Int, String, String, Int, String)")) | |
406 | 412 | then { | |
411 | 417 | } | |
412 | 418 | ||
413 | 419 | ||
414 | - | func | |
415 | - | let | |
416 | - | if (( | |
420 | + | func cC (cD,ap,ci,cE,cd,cr,cs) = { | |
421 | + | let ck = as(ci) | |
422 | + | if ((ck == ck)) | |
417 | 423 | then { | |
418 | - | let ci = as(cg) | |
419 | - | if ((ci == ci)) | |
424 | + | let cj = if ((ck != 0)) | |
425 | + | then ar(ap) | |
426 | + | else 0 | |
427 | + | if ((cj == cj)) | |
420 | 428 | then { | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (( | |
429 | + | let cF = max([0, (bV(ap) - cE)]) | |
430 | + | let cG = fraction(cD, cF, 100) | |
431 | + | let cH = (cj - cG) | |
432 | + | if ((cH == 0)) | |
425 | 433 | then nil | |
426 | - | else if ((0 > | |
434 | + | else if ((0 > cH)) | |
427 | 435 | then { | |
428 | - | let | |
429 | - | | |
436 | + | let cI = -(cH) | |
437 | + | cg(ap, cI, ci, cd) | |
430 | 438 | } | |
431 | 439 | else { | |
432 | - | let | |
433 | - | | |
440 | + | let cJ = cH | |
441 | + | cq(ap, cJ, ci, cd, cr, cs) | |
434 | 442 | } | |
435 | 443 | } | |
436 | 444 | else throw("Strict value is not equal to itself.") | |
439 | 447 | } | |
440 | 448 | ||
441 | 449 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | if ( | |
452 | - | then | |
450 | + | func cK (ap) = { | |
451 | + | let cL = cB(ap) | |
452 | + | let cM = cL._1 | |
453 | + | let cN = cL._2 | |
454 | + | let cE = cL._3 | |
455 | + | let cO = cL._4 | |
456 | + | let cP = cL._5 | |
457 | + | let cr = cL._6 | |
458 | + | let cQ = cL._7 | |
459 | + | if (cM) | |
460 | + | then cC(cN, ap, cP, cE, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
453 | 461 | else nil | |
454 | 462 | } | |
455 | 463 | ||
456 | 464 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if ( | |
465 | + | func cR (ap,cS) = { | |
466 | + | let cT = cB(ap) | |
467 | + | let cM = cT._1 | |
468 | + | let cN = cT._2 | |
469 | + | let cE = cT._3 | |
470 | + | let cO = cT._4 | |
471 | + | let cP = cT._5 | |
472 | + | let cr = cT._6 | |
473 | + | let cQ = cT._7 | |
474 | + | if (cM) | |
467 | 475 | then { | |
468 | - | let | |
469 | - | if (( | |
476 | + | let ck = as(cP) | |
477 | + | if ((ck == ck)) | |
470 | 478 | then { | |
471 | - | let cm = fraction(cL, cS, 100) | |
472 | - | if ((cm == cm)) | |
479 | + | let cj = if ((ck != 0)) | |
480 | + | then ar(ap) | |
481 | + | else 0 | |
482 | + | if ((cj == cj)) | |
473 | 483 | then { | |
474 | - | let cT = (ar(ap) - cm) | |
475 | - | if ((cT == cT)) | |
476 | - | then if ((0 > cT)) | |
477 | - | then ce(ap, -(cT), cN, addressFromStringValue(cM)) | |
478 | - | else co(ap, cT, cN, addressFromStringValue(cM), cp, addressFromStringValue(cO)) | |
484 | + | let cU = max([0, ((bV(ap) - cS) - cE)]) | |
485 | + | if ((cU == cU)) | |
486 | + | then { | |
487 | + | let co = fraction(cN, cU, 100) | |
488 | + | if ((co == co)) | |
489 | + | then { | |
490 | + | let cV = (cj - co) | |
491 | + | if ((cV == cV)) | |
492 | + | then if ((cV == 0)) | |
493 | + | then nil | |
494 | + | else if ((0 > cV)) | |
495 | + | then cg(ap, -(cV), cP, addressFromStringValue(cO)) | |
496 | + | else cq(ap, cV, cP, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
497 | + | else throw("Strict value is not equal to itself.") | |
498 | + | } | |
499 | + | else throw("Strict value is not equal to itself.") | |
500 | + | } | |
479 | 501 | else throw("Strict value is not equal to itself.") | |
480 | 502 | } | |
481 | 503 | else throw("Strict value is not equal to itself.") | |
486 | 508 | } | |
487 | 509 | ||
488 | 510 | ||
489 | - | func | |
490 | - | let | |
491 | - | let | |
492 | - | ( | |
511 | + | func cW (cX,cY) = { | |
512 | + | let cZ = cR(aW(this, ae()), cX) | |
513 | + | let da = cR(aW(this, af()), cY) | |
514 | + | (cZ ++ da) | |
493 | 515 | } | |
494 | 516 | ||
495 | 517 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | | |
518 | + | func db (dc,dd,de,df) = { | |
519 | + | let dg = D(de, dc) | |
520 | + | let dh = D(df, dd) | |
521 | + | bY(dh, dg) | |
500 | 522 | } | |
501 | 523 | ||
502 | 524 | ||
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | [ | |
525 | + | func di (de,df,dj) = { | |
526 | + | let dk = bm() | |
527 | + | let dl = parseIntValue(dk[t]) | |
528 | + | let dm = parseIntValue(dk[u]) | |
529 | + | let dn = db(dl, dm, de, df) | |
530 | + | let ca = D(de, dl) | |
531 | + | let bZ = D(df, dm) | |
532 | + | let do = D(dj, b) | |
533 | + | let dp = bY(ca, do) | |
534 | + | let dq = bY(bZ, do) | |
535 | + | [dn, dp, dq] | |
514 | 536 | } | |
515 | 537 | ||
516 | 538 | ||
517 | - | func | |
518 | - | let | |
519 | - | [H( | |
539 | + | func dr (de,df,dj) = { | |
540 | + | let ds = di(de, df, dj) | |
541 | + | [H(ds[0], b), H(ds[1], b), H(ds[2], b)] | |
520 | 542 | } | |
521 | 543 | ||
522 | 544 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | if (( | |
545 | + | func dt (du,dv,dw,ab) = { | |
546 | + | let dk = bm() | |
547 | + | let dx = dk[q] | |
548 | + | let dy = dk[r] | |
549 | + | let dz = dk[s] | |
550 | + | let dc = parseIntValue(dk[t]) | |
551 | + | let dd = parseIntValue(dk[u]) | |
552 | + | let dA = dk[p] | |
553 | + | let dB = valueOrErrorMessage(assetInfo(fromBase58String(dx)), (("Asset " + dx) + " doesn't exist")).quantity | |
554 | + | if ((dx != dv)) | |
533 | 555 | then throw("Invalid asset passed.") | |
534 | 556 | else { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
557 | + | let dC = bV(dy) | |
558 | + | let dD = D(dC, dc) | |
559 | + | let dE = bV(dz) | |
560 | + | let dF = D(dE, dd) | |
561 | + | let dG = bY(dF, dD) | |
562 | + | let dH = H(dG, b) | |
563 | + | let dI = D(dw, b) | |
564 | + | let dJ = D(dB, b) | |
565 | + | let dK = fraction(dD, dI, dJ) | |
566 | + | let dL = fraction(dF, dI, dJ) | |
567 | + | let dM = K(dK, dc, FLOOR) | |
568 | + | let dN = K(dL, dd, FLOOR) | |
569 | + | let dO = if ((du == "")) | |
548 | 570 | then nil | |
549 | - | else [ScriptTransfer(ab, | |
571 | + | else [ScriptTransfer(ab, dM, if ((dy == "WAVES")) | |
550 | 572 | then unit | |
551 | - | else fromBase58String( | |
573 | + | else fromBase58String(dy)), ScriptTransfer(ab, dN, if ((dz == "WAVES")) | |
552 | 574 | then unit | |
553 | - | else fromBase58String( | |
554 | - | $Tuple10( | |
575 | + | else fromBase58String(dz)), StringEntry(ad(toString(ab), du), bR(dM, dN, dw, dH, height, lastBlock.timestamp)), IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH)] | |
576 | + | $Tuple10(dM, dN, dy, dz, dC, dE, dB, dG, dA, dO) | |
555 | 577 | } | |
556 | 578 | } | |
557 | 579 | ||
558 | 580 | ||
559 | - | func | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if (if (( | |
581 | + | func dP (du,dQ,dR,dS,dT,dU,ab,dV,dW) = { | |
582 | + | let dk = bm() | |
583 | + | let dx = fromBase58String(dk[q]) | |
584 | + | let dX = dk[r] | |
585 | + | let dY = dk[s] | |
586 | + | let dZ = dk[v] | |
587 | + | let ea = dk[w] | |
588 | + | let dl = parseIntValue(dk[t]) | |
589 | + | let dm = parseIntValue(dk[u]) | |
590 | + | let dA = dk[p] | |
591 | + | let dB = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
592 | + | let eb = toBase58String(valueOrElse(dS, fromBase58String("WAVES"))) | |
593 | + | let ec = toBase58String(valueOrElse(dU, fromBase58String("WAVES"))) | |
594 | + | if (if ((dX != eb)) | |
573 | 595 | then true | |
574 | - | else ( | |
596 | + | else (dY != ec)) | |
575 | 597 | then throw("Invalid amt or price asset passed.") | |
576 | 598 | else { | |
577 | - | let | |
578 | - | then | |
579 | - | else ( | |
580 | - | let | |
581 | - | then | |
582 | - | else ( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
599 | + | let dC = if (dV) | |
600 | + | then bV(dX) | |
601 | + | else (bV(dX) - dR) | |
602 | + | let dE = if (dV) | |
603 | + | then bV(dY) | |
604 | + | else (bV(dY) - dT) | |
605 | + | let ed = D(dR, dl) | |
606 | + | let ee = D(dT, dm) | |
607 | + | let ef = bY(ee, ed) | |
608 | + | let dD = D(dC, dl) | |
609 | + | let dF = D(dE, dm) | |
610 | + | let eg = if ((dB == 0)) | |
589 | 611 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | $Tuple5(H( | |
612 | + | let dG = e | |
613 | + | let eh = e | |
614 | + | let do = pow((ed * ee), 0, toBigInt(5), 1, 0, DOWN) | |
615 | + | $Tuple5(H(do, b), H(ed, dl), H(ee, dm), bY((dF + ee), (dD + ed)), eh) | |
594 | 616 | } | |
595 | 617 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | if (if (( | |
600 | - | then ( | |
618 | + | let dG = bY(dF, dD) | |
619 | + | let eh = fraction(R((dG - ef)), d, dG) | |
620 | + | let ei = D(dQ, b) | |
621 | + | if (if ((dG != e)) | |
622 | + | then (eh > ei) | |
601 | 623 | else false) | |
602 | - | then throw(((("Price slippage " + toString( | |
624 | + | then throw(((("Price slippage " + toString(eh)) + " exceeded the passed limit of ") + toString(ei))) | |
603 | 625 | else { | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | then $Tuple2( | |
609 | - | else $Tuple2( | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple5(K( | |
626 | + | let dJ = D(dB, b) | |
627 | + | let ej = fraction(ed, cb(dF, dD, CEILING), d, CEILING) | |
628 | + | let ek = fraction(ee, d, cb(dF, dD, FLOOR), CEILING) | |
629 | + | let el = if ((ej > ee)) | |
630 | + | then $Tuple2(ek, ee) | |
631 | + | else $Tuple2(ed, ej) | |
632 | + | let em = el._1 | |
633 | + | let en = el._2 | |
634 | + | let do = fraction(dJ, en, dF, FLOOR) | |
635 | + | $Tuple5(K(do, b, FLOOR), K(em, dl, CEILING), K(en, dm, CEILING), dG, eh) | |
614 | 636 | } | |
615 | 637 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if ((0 >= | |
638 | + | let eo = eg._1 | |
639 | + | let ep = eg._2 | |
640 | + | let eq = eg._3 | |
641 | + | let dH = H(eg._4, b) | |
642 | + | let er = H(eg._5, b) | |
643 | + | if ((0 >= eo)) | |
622 | 644 | then throw("Invalid calculations. LP calculated is less than zero.") | |
623 | 645 | else { | |
624 | - | let | |
646 | + | let es = if (!(dW)) | |
625 | 647 | then 0 | |
626 | - | else | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple13( | |
648 | + | else eo | |
649 | + | let et = (dR - ep) | |
650 | + | let eu = (dT - eq) | |
651 | + | let ev = [IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH), StringEntry(aa(ab, du), bG(ep, eq, es, dH, dQ, er, height, lastBlock.timestamp, et, eu))] | |
652 | + | $Tuple13(eo, es, dH, dC, dE, dB, dx, dA, ev, et, eu, dS, dU) | |
631 | 653 | } | |
632 | 654 | } | |
633 | 655 | } | |
634 | 656 | ||
635 | 657 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | if (( | |
658 | + | func ew (ex,ey,dB) = { | |
659 | + | let ez = G(ex, toBigInt(bB)) | |
660 | + | let eA = G(ey, toBigInt(bC)) | |
661 | + | let eB = fraction(pow((ez * eA), 0, toBigInt(5), 1, 18, DOWN), g, dB) | |
662 | + | if ((dB == f)) | |
641 | 663 | then f | |
642 | - | else | |
664 | + | else eB | |
643 | 665 | } | |
644 | 666 | ||
645 | 667 | ||
646 | - | func | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | | |
668 | + | func eC (eD,eE,eF) = { | |
669 | + | let eG = (toBigInt(bV(br(bz))) - eD) | |
670 | + | let eH = (toBigInt(bV(br(bA))) - eE) | |
671 | + | let eI = (toBigInt(value(assetInfo(by)).quantity) - eF) | |
672 | + | let eJ = ew(eG, eH, eI) | |
673 | + | eJ | |
652 | 674 | } | |
653 | 675 | ||
654 | 676 | ||
655 | - | func | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | $Tuple2( | |
677 | + | func eK (eL,eM,eF) = { | |
678 | + | let eG = (bV(br(bz)) + eL) | |
679 | + | let eH = (bV(br(bA)) + eM) | |
680 | + | let eI = (value(assetInfo(by)).quantity + eF) | |
681 | + | let eB = ew(toBigInt(eG), toBigInt(eH), toBigInt(eI)) | |
682 | + | let eN = [IntegerEntry(ak, height), StringEntry(aj, toString(eB))] | |
683 | + | $Tuple2(eN, eB) | |
662 | 684 | } | |
663 | 685 | ||
664 | 686 | ||
665 | - | func | |
687 | + | func eO () = valueOrElse(getBoolean(bd, aH(toString(this))), false) | |
666 | 688 | ||
667 | 689 | ||
668 | - | func | |
690 | + | func eP (eQ,eB) = if ((eB >= eQ)) | |
669 | 691 | then true | |
670 | - | else ba(makeString(["updated KLp lower than current KLp", toString( | |
692 | + | else ba(makeString(["updated KLp lower than current KLp", toString(eQ), toString(eB)], " ")) | |
671 | 693 | ||
672 | 694 | ||
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | then $Tuple2( | |
680 | - | else $Tuple2(-( | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (if ( | |
695 | + | func eR (eS) = { | |
696 | + | let eG = bV(br(bz)) | |
697 | + | let eH = bV(br(bA)) | |
698 | + | let eT = eS.amount | |
699 | + | let eU = fraction(eS.amount, eS.price, b, FLOOR) | |
700 | + | let eV = if ((eS.orderType == Buy)) | |
701 | + | then $Tuple2(eT, -(eU)) | |
702 | + | else $Tuple2(-(eT), eU) | |
703 | + | let eL = eV._1 | |
704 | + | let eM = eV._2 | |
705 | + | if (if (if (bk()) | |
684 | 706 | then true | |
685 | - | else ( | |
707 | + | else (bx == m)) | |
686 | 708 | then true | |
687 | - | else ( | |
709 | + | else (bx == n)) | |
688 | 710 | then throw("Exchange operations disabled") | |
689 | - | else if (if (( | |
711 | + | else if (if ((eS.assetPair.amountAsset != bz)) | |
690 | 712 | then true | |
691 | - | else ( | |
713 | + | else (eS.assetPair.priceAsset != bA)) | |
692 | 714 | then throw("Wrong order assets.") | |
693 | 715 | else { | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | $Tuple2( | |
716 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
717 | + | let eX = eK(eL, eM, 0) | |
718 | + | let eY = eX._1 | |
719 | + | let eZ = eX._2 | |
720 | + | let fa = (eZ >= eW) | |
721 | + | let fb = makeString(["kLp=", toString(eW), " kLpNew=", toString(eZ), " amountAssetBalance=", toString(eG), " priceAssetBalance=", toString(eH), " amountAssetBalanceDelta=", toString(eL), " priceAssetBalanceDelta=", toString(eM), " height=", toString(height)], "") | |
722 | + | $Tuple2(fa, fb) | |
701 | 723 | } | |
702 | 724 | } | |
703 | 725 | ||
704 | 726 | ||
705 | - | func | |
727 | + | func fc (fd) = if ((size(fd.payments) != 1)) | |
706 | 728 | then throw("exactly 1 payment is expected") | |
707 | 729 | else { | |
708 | - | let fc = value(fb.payments[0]) | |
709 | - | let dt = value(fc.assetId) | |
710 | - | let fd = fc.amount | |
711 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dt), fd, fb.caller) | |
712 | - | let dK = ee._1 | |
713 | - | let dL = ee._2 | |
714 | - | let dy = parseIntValue(ee._9) | |
715 | - | let dM = ee._10 | |
716 | - | if (if (bi()) | |
717 | - | then true | |
718 | - | else (dy == n)) | |
719 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
720 | - | else $Tuple5(dK, dL, fd, dt, dM) | |
730 | + | let fe = value(fd.payments[0]) | |
731 | + | let dv = value(fe.assetId) | |
732 | + | let ff = fe.amount | |
733 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dv), ff, fd.caller) | |
734 | + | let dM = eg._1 | |
735 | + | let dN = eg._2 | |
736 | + | let dO = eg._10 | |
737 | + | let fg = if (!(bj(fd.caller))) | |
738 | + | then if (bk()) | |
739 | + | then true | |
740 | + | else (bx == n) | |
741 | + | else false | |
742 | + | if (fg) | |
743 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bx))) | |
744 | + | else $Tuple5(dM, dN, ff, dv, dO) | |
721 | 745 | } | |
722 | 746 | ||
723 | 747 | ||
724 | - | func | |
748 | + | func fh (fd,dQ,dW) = if ((size(fd.payments) != 2)) | |
725 | 749 | then throw("exactly 2 payments are expected") | |
726 | 750 | else { | |
727 | - | let ff = value(fb.payments[0]) | |
728 | - | let fg = value(fb.payments[1]) | |
729 | - | let fh = dN(toBase58String(fb.transactionId), dO, ff.amount, ff.assetId, fg.amount, fg.assetId, toString(fb.caller), false, dU) | |
730 | - | let dy = parseIntValue(fh._8) | |
731 | - | if (if (if (bi()) | |
732 | - | then true | |
733 | - | else (dy == l)) | |
734 | - | then true | |
735 | - | else (dy == n)) | |
736 | - | then throw(("Put operation is blocked by admin. Status = " + toString(dy))) | |
737 | - | else fh | |
751 | + | let fi = value(fd.payments[0]) | |
752 | + | let fj = value(fd.payments[1]) | |
753 | + | let fk = dP(toBase58String(fd.transactionId), dQ, fi.amount, fi.assetId, fj.amount, fj.assetId, toString(fd.caller), false, dW) | |
754 | + | let fl = if (!(bj(fd.caller))) | |
755 | + | then if (if (bk()) | |
756 | + | then true | |
757 | + | else (bx == l)) | |
758 | + | then true | |
759 | + | else (bx == n) | |
760 | + | else false | |
761 | + | if (fl) | |
762 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bx))) | |
763 | + | else fk | |
738 | 764 | } | |
739 | 765 | ||
740 | 766 | ||
741 | - | func | |
742 | - | let | |
743 | - | if (( | |
767 | + | func fm (ch) = { | |
768 | + | let fn = invoke(bd, "emit", [ch], nil) | |
769 | + | if ((fn == fn)) | |
744 | 770 | then { | |
745 | - | let | |
746 | - | let aQ = | |
771 | + | let fo = { | |
772 | + | let aQ = fn | |
747 | 773 | if ($isInstanceOf(aQ, "Address")) | |
748 | 774 | then { | |
749 | - | let | |
750 | - | invoke( | |
775 | + | let fp = aQ | |
776 | + | invoke(fp, "emit", [ch], nil) | |
751 | 777 | } | |
752 | 778 | else unit | |
753 | 779 | } | |
754 | - | if (( | |
755 | - | then | |
780 | + | if ((fo == fo)) | |
781 | + | then ch | |
756 | 782 | else throw("Strict value is not equal to itself.") | |
757 | 783 | } | |
758 | 784 | else throw("Strict value is not equal to itself.") | |
759 | 785 | } | |
760 | 786 | ||
761 | 787 | ||
762 | - | func | |
763 | - | let | |
788 | + | func fq (ch,ai) = { | |
789 | + | let fr = if ((ai == 0)) | |
764 | 790 | then 0 | |
765 | - | else fraction( | |
766 | - | $Tuple2(( | |
791 | + | else fraction(ch, ai, b) | |
792 | + | $Tuple2((ch - fr), fr) | |
767 | 793 | } | |
768 | 794 | ||
769 | 795 | ||
770 | - | func | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
796 | + | func fs (ft,fu,ab,ac) = { | |
797 | + | let fv = (ac == unit) | |
798 | + | let fw = bV(br(bz)) | |
799 | + | let fx = bV(br(bA)) | |
800 | + | let fy = if ((fu == bz)) | |
775 | 801 | then true | |
776 | - | else if (( | |
802 | + | else if ((fu == bA)) | |
777 | 803 | then false | |
778 | 804 | else ba("invalid asset") | |
779 | - | let | |
780 | - | then $Tuple2( | |
781 | - | else if ( | |
782 | - | then $Tuple2(( | |
783 | - | else $Tuple2( | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | then $Tuple2( | |
788 | - | else $Tuple2(0, | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then | |
802 | - | else | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
805 | + | let fz = if (fv) | |
806 | + | then $Tuple2(fw, fx) | |
807 | + | else if (fy) | |
808 | + | then $Tuple2((fw - ft), fx) | |
809 | + | else $Tuple2(fw, (fx - ft)) | |
810 | + | let fA = fz._1 | |
811 | + | let fB = fz._2 | |
812 | + | let fC = if (fy) | |
813 | + | then $Tuple2(ft, 0) | |
814 | + | else $Tuple2(0, ft) | |
815 | + | let fD = fC._1 | |
816 | + | let fE = fC._2 | |
817 | + | let eT = fq(fD, bf)._1 | |
818 | + | let eU = fq(fE, bf)._1 | |
819 | + | let fF = fq(ft, bf) | |
820 | + | let fG = fF._1 | |
821 | + | let fr = fF._2 | |
822 | + | let fH = (fA + eT) | |
823 | + | let fI = (fB + eU) | |
824 | + | let fJ = bY(D(fI, bC), D(fH, bB)) | |
825 | + | let fK = H(fJ, b) | |
826 | + | let fL = if (fy) | |
827 | + | then fA | |
828 | + | else fB | |
829 | + | let fM = toBigInt(fL) | |
830 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
831 | + | let fO = if ((fN > f)) | |
806 | 832 | then true | |
807 | 833 | else ba("initial deposit requires all coins") | |
808 | - | if (( | |
834 | + | if ((fO == fO)) | |
809 | 835 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
836 | + | let fP = toBigInt(fG) | |
837 | + | let fQ = max([0, toInt(((fN * (sqrtBigInt((d + ((fP * d) / fM)), 18, 18, DOWN) - d)) / d))]) | |
838 | + | let ev = if (fv) | |
813 | 839 | then nil | |
814 | - | else [IntegerEntry(W(), | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | then $Tuple2( | |
820 | - | else $Tuple2( | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | fraction(( | |
840 | + | else [IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bG(fD, fE, fQ, fK, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
841 | + | let fR = bY(D(fB, bC), D(fA, bB)) | |
842 | + | let fS = H(fR, b) | |
843 | + | let fT = { | |
844 | + | let fU = if (fy) | |
845 | + | then $Tuple2(fD, fA) | |
846 | + | else $Tuple2(fE, fB) | |
847 | + | let ch = fU._1 | |
848 | + | let fV = fU._2 | |
849 | + | let fW = toInt(fraction(fN, toBigInt((ch / 2)), toBigInt(fV))) | |
850 | + | fraction((fQ - fW), b, fW) | |
825 | 851 | } | |
826 | - | $Tuple5( | |
852 | + | $Tuple5(fQ, ev, fr, fT, fy) | |
827 | 853 | } | |
828 | 854 | else throw("Strict value is not equal to itself.") | |
829 | 855 | } | |
830 | 856 | ||
831 | 857 | ||
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
858 | + | func fX (fY,fG,fu,ab,ac) = { | |
859 | + | let fv = (ac == unit) | |
860 | + | let dk = bm() | |
861 | + | let dl = parseIntValue(dk[t]) | |
862 | + | let dm = parseIntValue(dk[u]) | |
863 | + | let fZ = [if ((fu == by)) | |
838 | 864 | then true | |
839 | 865 | else ba("invalid lp asset")] | |
840 | - | if (( | |
866 | + | if ((fZ == fZ)) | |
841 | 867 | then { | |
842 | - | let | |
868 | + | let ga = if ((fY == bz)) | |
843 | 869 | then true | |
844 | - | else if (( | |
870 | + | else if ((fY == bA)) | |
845 | 871 | then false | |
846 | 872 | else ba("invalid asset") | |
847 | - | let | |
848 | - | then toBigInt( | |
849 | - | else toBigInt( | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then | |
857 | - | else | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | then $Tuple4( | |
867 | - | else $Tuple4(0, | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
873 | + | let gb = if (ga) | |
874 | + | then toBigInt(bV(br(bz))) | |
875 | + | else toBigInt(bV(br(bA))) | |
876 | + | let gc = if (ga) | |
877 | + | then dl | |
878 | + | else dm | |
879 | + | let gd = bV(br(bz)) | |
880 | + | let ge = bV(br(bA)) | |
881 | + | let gf = if (ga) | |
882 | + | then gd | |
883 | + | else ge | |
884 | + | let gg = toBigInt(gf) | |
885 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
886 | + | let gh = toBigInt(fG) | |
887 | + | let gi = max([0, toInt(((gb * (d - pow((d - ((gh * d) / fN)), 18, h, 0, 18, DOWN))) / d))]) | |
888 | + | let gj = fq(gi, bh) | |
889 | + | let gk = gj._1 | |
890 | + | let fr = gj._2 | |
891 | + | let gl = if (ga) | |
892 | + | then $Tuple4(gk, 0, (gd - gi), ge) | |
893 | + | else $Tuple4(0, gk, gd, (ge - gi)) | |
894 | + | let gm = gl._1 | |
895 | + | let gn = gl._2 | |
896 | + | let go = gl._3 | |
897 | + | let gp = gl._4 | |
898 | + | let fJ = bY(D(gp, bC), D(go, bB)) | |
899 | + | let fK = H(fJ, b) | |
900 | + | let ev = if (fv) | |
875 | 901 | then nil | |
876 | - | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | fraction(( | |
902 | + | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bR(gm, gn, fG, fK, height, lastBlock.timestamp)), IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK)] | |
903 | + | let fR = bY(D(ge, bC), D(gd, bB)) | |
904 | + | let fS = H(fR, b) | |
905 | + | let fT = { | |
906 | + | let gq = (toInt(fraction(gb, gh, fN)) * 2) | |
907 | + | fraction((gk - gq), b, gq) | |
882 | 908 | } | |
883 | - | $Tuple5( | |
909 | + | $Tuple5(gk, ev, fr, fT, ga) | |
884 | 910 | } | |
885 | 911 | else throw("Strict value is not equal to itself.") | |
886 | 912 | } | |
887 | 913 | ||
888 | 914 | ||
889 | - | func | |
890 | - | let | |
891 | - | let aQ = getString( | |
915 | + | func gr () = { | |
916 | + | let gs = aS() | |
917 | + | let aQ = getString(gs, U()) | |
892 | 918 | if ($isInstanceOf(aQ, "String")) | |
893 | 919 | then { | |
894 | 920 | let aV = aQ | |
900 | 926 | } | |
901 | 927 | ||
902 | 928 | ||
903 | - | func | |
904 | - | let aQ = | |
929 | + | func gt (fd) = { | |
930 | + | let aQ = gr() | |
905 | 931 | if ($isInstanceOf(aQ, "ByteVector")) | |
906 | 932 | then { | |
907 | - | let | |
908 | - | ( | |
933 | + | let gu = aQ | |
934 | + | (fd.callerPublicKey == gu) | |
909 | 935 | } | |
910 | 936 | else if ($isInstanceOf(aQ, "Unit")) | |
911 | - | then ( | |
937 | + | then (fd.caller == this) | |
912 | 938 | else throw("Match error") | |
913 | 939 | } | |
914 | 940 | ||
915 | 941 | ||
916 | - | func | |
917 | - | let | |
918 | - | let aQ = | |
942 | + | func gv (fd) = { | |
943 | + | let gw = throw("Permission denied") | |
944 | + | let aQ = gr() | |
919 | 945 | if ($isInstanceOf(aQ, "ByteVector")) | |
920 | 946 | then { | |
921 | - | let | |
922 | - | if (( | |
947 | + | let gu = aQ | |
948 | + | if ((fd.callerPublicKey == gu)) | |
923 | 949 | then true | |
924 | - | else | |
950 | + | else gw | |
925 | 951 | } | |
926 | 952 | else if ($isInstanceOf(aQ, "Unit")) | |
927 | - | then if (( | |
953 | + | then if ((fd.caller == this)) | |
928 | 954 | then true | |
929 | - | else | |
955 | + | else gw | |
930 | 956 | else throw("Match error") | |
931 | 957 | } | |
932 | 958 | ||
933 | 959 | ||
934 | - | @Callable( | |
935 | - | func rebalance () = ( | |
960 | + | @Callable(fd) | |
961 | + | func rebalance () = (cK(aW(this, ae())) ++ cK(aW(this, af()))) | |
936 | 962 | ||
937 | 963 | ||
938 | 964 | ||
939 | - | @Callable( | |
940 | - | func calculateAmountOutForSwapREADONLY ( | |
941 | - | let | |
965 | + | @Callable(fd) | |
966 | + | func calculateAmountOutForSwapREADONLY (gx,gy,gz) = { | |
967 | + | let gA = if ((gy == false)) | |
942 | 968 | then { | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2( | |
969 | + | let gB = aW(this, af()) | |
970 | + | let gC = aW(this, ae()) | |
971 | + | $Tuple2(gB, gC) | |
946 | 972 | } | |
947 | 973 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | $Tuple2( | |
974 | + | let gB = aW(this, ae()) | |
975 | + | let gC = aW(this, af()) | |
976 | + | $Tuple2(gB, gC) | |
951 | 977 | } | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
978 | + | let gB = gA._1 | |
979 | + | let gC = gA._2 | |
980 | + | let gD = bV(gC) | |
981 | + | let gE = bV(gB) | |
982 | + | let gF = fraction(gE, gx, (gD + gx)) | |
983 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
984 | + | let gH = (((toBigInt(bV(gC)) + toBigInt(gx)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
985 | + | let gI = if ((gH >= gG)) | |
960 | 986 | then true | |
961 | 987 | else throw("new K is fewer error") | |
962 | - | if (( | |
963 | - | then $Tuple2(nil, | |
988 | + | if ((gI == gI)) | |
989 | + | then $Tuple2(nil, gF) | |
964 | 990 | else throw("Strict value is not equal to itself.") | |
965 | 991 | } | |
966 | 992 | ||
967 | 993 | ||
968 | 994 | ||
969 | - | @Callable( | |
970 | - | func calculateAmountOutForSwapAndSendTokens ( | |
971 | - | let | |
995 | + | @Callable(fd) | |
996 | + | func calculateAmountOutForSwapAndSendTokens (gx,gy,gJ,gK,gz) = { | |
997 | + | let gL = { | |
972 | 998 | let bg = invoke(bd, "getSwapContractREADONLY", nil, nil) | |
973 | 999 | if ($isInstanceOf(bg, "String")) | |
974 | 1000 | then bg | |
975 | 1001 | else throw(($getType(bg) + " couldn't be cast to String")) | |
976 | 1002 | } | |
977 | - | let fV = [if ((value(fb.payments[0]).amount >= gt)) | |
1003 | + | let gM = { | |
1004 | + | let bg = invoke(bd, "isPoolSwapDisabledREADONLY", [toString(this)], nil) | |
1005 | + | if ($isInstanceOf(bg, "Boolean")) | |
1006 | + | then bg | |
1007 | + | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1008 | + | } | |
1009 | + | let gN = if (!(bj(fd.caller))) | |
1010 | + | then if (if (bk()) | |
1011 | + | then true | |
1012 | + | else (bx == n)) | |
1013 | + | then true | |
1014 | + | else gM | |
1015 | + | else false | |
1016 | + | let fZ = [if (if (!(gN)) | |
978 | 1017 | then true | |
979 | - | else ba("Wrong amount"), if ((fb.caller == addressFromStringValue(gH))) | |
1018 | + | else gt(fd)) | |
1019 | + | then true | |
1020 | + | else ba("swap operation is blocked by admin"), if ((value(fd.payments[0]).amount >= gx)) | |
1021 | + | then true | |
1022 | + | else ba("Wrong amount"), if ((fd.caller == addressFromStringValue(gL))) | |
980 | 1023 | then true | |
981 | 1024 | else ba("Permission denied")] | |
982 | - | if (( | |
1025 | + | if ((fZ == fZ)) | |
983 | 1026 | then { | |
984 | - | let | |
985 | - | let | |
986 | - | let | |
1027 | + | let fe = value(fd.payments[0]) | |
1028 | + | let gC = br(fe.assetId) | |
1029 | + | let gB = if ((gy == false)) | |
987 | 1030 | then aW(this, af()) | |
988 | 1031 | else aW(this, ae()) | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
993 | - | let | |
994 | - | let | |
1032 | + | let gD = ((bV(gC) - value(fd.payments[0]).amount) - gz) | |
1033 | + | let gE = bV(gB) | |
1034 | + | let gF = fraction(gE, gx, (gD + gx)) | |
1035 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
1036 | + | let gH = ((toBigInt(bV(gC)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
1037 | + | let gI = if ((gH >= gG)) | |
995 | 1038 | then true | |
996 | 1039 | else throw("new K is fewer error") | |
997 | - | if (( | |
1040 | + | if ((gI == gI)) | |
998 | 1041 | then { | |
999 | - | let | |
1042 | + | let gO = if ((gF >= gJ)) | |
1000 | 1043 | then true | |
1001 | 1044 | else throw("Exchange result is fewer coins than expected") | |
1002 | - | if (( | |
1045 | + | if ((gO == gO)) | |
1003 | 1046 | then { | |
1004 | - | let gJ = cI(gy) | |
1005 | - | if ((gJ == gJ)) | |
1047 | + | let eL = if (gy) | |
1048 | + | then -(gF) | |
1049 | + | else gz | |
1050 | + | let eM = if (gy) | |
1051 | + | then gz | |
1052 | + | else -(gF) | |
1053 | + | let gP = eK(eL, eM, 0)._1 | |
1054 | + | if ((gP == gP)) | |
1006 | 1055 | then { | |
1007 | - | let gK = cP(gx, gB) | |
1008 | - | if ((gK == gK)) | |
1009 | - | then $Tuple2(((gK ++ gJ) ++ [ScriptTransfer(addressFromStringValue(gG), gB, bn(gx))]), gB) | |
1056 | + | let gQ = cK(gC) | |
1057 | + | if ((gQ == gQ)) | |
1058 | + | then { | |
1059 | + | let gR = cR(gB, gF) | |
1060 | + | if ((gR == gR)) | |
1061 | + | then $Tuple2(((gR ++ gQ) ++ [ScriptTransfer(addressFromStringValue(gK), gF, bp(gB))]), gF) | |
1062 | + | else throw("Strict value is not equal to itself.") | |
1063 | + | } | |
1010 | 1064 | else throw("Strict value is not equal to itself.") | |
1011 | 1065 | } | |
1012 | 1066 | else throw("Strict value is not equal to itself.") | |
1020 | 1074 | ||
1021 | 1075 | ||
1022 | 1076 | ||
1023 | - | @Callable( | |
1024 | - | func put ( | |
1077 | + | @Callable(fd) | |
1078 | + | func put (dQ,gS) = if ((0 > dQ)) | |
1025 | 1079 | then throw("Invalid slippageTolerance passed") | |
1026 | 1080 | else { | |
1027 | - | let | |
1028 | - | let | |
1029 | - | let | |
1030 | - | let | |
1031 | - | let | |
1032 | - | let | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | let | |
1037 | - | let | |
1038 | - | if (( | |
1081 | + | let fk = fh(fd, dQ, true) | |
1082 | + | let es = fk._2 | |
1083 | + | let dx = fk._7 | |
1084 | + | let dO = fk._9 | |
1085 | + | let et = fk._10 | |
1086 | + | let eu = fk._11 | |
1087 | + | let gT = fk._12 | |
1088 | + | let gU = fk._13 | |
1089 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1090 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1091 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1092 | + | if ((eJ == eJ)) | |
1039 | 1093 | then { | |
1040 | - | let | |
1041 | - | if (( | |
1094 | + | let fn = invoke(bd, "emit", [es], nil) | |
1095 | + | if ((fn == fn)) | |
1042 | 1096 | then { | |
1043 | - | let | |
1044 | - | let aQ = | |
1097 | + | let fo = { | |
1098 | + | let aQ = fn | |
1045 | 1099 | if ($isInstanceOf(aQ, "Address")) | |
1046 | 1100 | then { | |
1047 | - | let | |
1048 | - | invoke( | |
1101 | + | let fp = aQ | |
1102 | + | invoke(fp, "emit", [es], nil) | |
1049 | 1103 | } | |
1050 | 1104 | else unit | |
1051 | 1105 | } | |
1052 | - | if (( | |
1106 | + | if ((fo == fo)) | |
1053 | 1107 | then { | |
1054 | - | let | |
1055 | - | then invoke( | |
1108 | + | let gV = if ((et > 0)) | |
1109 | + | then invoke(bF, "put", nil, [AttachedPayment(gT, et)]) | |
1056 | 1110 | else nil | |
1057 | - | if (( | |
1111 | + | if ((gV == gV)) | |
1058 | 1112 | then { | |
1059 | - | let | |
1060 | - | then invoke( | |
1113 | + | let gW = if ((eu > 0)) | |
1114 | + | then invoke(bF, "put", nil, [AttachedPayment(gU, eu)]) | |
1061 | 1115 | else nil | |
1062 | - | if (( | |
1116 | + | if ((gW == gW)) | |
1063 | 1117 | then { | |
1064 | - | let | |
1118 | + | let gX = if (gS) | |
1065 | 1119 | then { | |
1066 | - | let | |
1067 | - | if (( | |
1120 | + | let gY = invoke(bE, "stake", nil, [AttachedPayment(dx, es)]) | |
1121 | + | if ((gY == gY)) | |
1068 | 1122 | then nil | |
1069 | 1123 | else throw("Strict value is not equal to itself.") | |
1070 | 1124 | } | |
1071 | - | else [ScriptTransfer( | |
1072 | - | let | |
1073 | - | if (( | |
1125 | + | else [ScriptTransfer(fd.caller, es, dx)] | |
1126 | + | let gZ = eK(0, 0, 0) | |
1127 | + | if ((gZ == gZ)) | |
1074 | 1128 | then { | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | if (( | |
1129 | + | let eB = gZ._2 | |
1130 | + | let gP = gZ._1 | |
1131 | + | let ha = eP(eJ, eB) | |
1132 | + | if ((ha == ha)) | |
1079 | 1133 | then { | |
1080 | - | let | |
1081 | - | if (( | |
1082 | - | then (( | |
1134 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1135 | + | if ((hb == hb)) | |
1136 | + | then ((dO ++ gX) ++ gP) | |
1083 | 1137 | else throw("Strict value is not equal to itself.") | |
1084 | 1138 | } | |
1085 | 1139 | else throw("Strict value is not equal to itself.") | |
1099 | 1153 | ||
1100 | 1154 | ||
1101 | 1155 | ||
1102 | - | @Callable( | |
1103 | - | func putForFree ( | |
1156 | + | @Callable(fd) | |
1157 | + | func putForFree (hc) = if ((0 > hc)) | |
1104 | 1158 | then throw("Invalid value passed") | |
1105 | 1159 | else { | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1160 | + | let fk = fh(fd, hc, false) | |
1161 | + | let dO = fk._9 | |
1162 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1163 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1164 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1165 | + | if ((eJ == eJ)) | |
1112 | 1166 | then { | |
1113 | - | let | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let | |
1117 | - | if (( | |
1118 | - | then ( | |
1167 | + | let hd = eK(0, 0, 0) | |
1168 | + | let gP = hd._1 | |
1169 | + | let eB = hd._2 | |
1170 | + | let ha = eP(eJ, eB) | |
1171 | + | if ((ha == ha)) | |
1172 | + | then (dO ++ gP) | |
1119 | 1173 | else throw("Strict value is not equal to itself.") | |
1120 | 1174 | } | |
1121 | 1175 | else throw("Strict value is not equal to itself.") | |
1123 | 1177 | ||
1124 | 1178 | ||
1125 | 1179 | ||
1126 | - | @Callable( | |
1127 | - | func putOneTkn ( | |
1128 | - | let | |
1180 | + | @Callable(fd) | |
1181 | + | func putOneTkn (he,hf) = { | |
1182 | + | let hg = { | |
1129 | 1183 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1130 | 1184 | if ($isInstanceOf(bg, "Boolean")) | |
1131 | 1185 | then bg | |
1132 | 1186 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1133 | 1187 | } | |
1134 | - | let hb = if (if (if (bi()) | |
1188 | + | let fl = if (!(bj(fd.caller))) | |
1189 | + | then if (if (if (bk()) | |
1190 | + | then true | |
1191 | + | else (bx == l)) | |
1192 | + | then true | |
1193 | + | else (bx == n)) | |
1194 | + | then true | |
1195 | + | else hg | |
1196 | + | else false | |
1197 | + | let fZ = [if (if (!(fl)) | |
1135 | 1198 | then true | |
1136 | - | else ( | |
1199 | + | else gt(fd)) | |
1137 | 1200 | then true | |
1138 | - | else (bv == n)) | |
1139 | - | then true | |
1140 | - | else ha | |
1141 | - | let fV = [if (if (!(hb)) | |
1142 | - | then true | |
1143 | - | else gp(fb)) | |
1144 | - | then true | |
1145 | - | else ba("put operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1201 | + | else ba("put operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1146 | 1202 | then true | |
1147 | 1203 | else ba("exactly 1 payment are expected")] | |
1148 | - | if (( | |
1204 | + | if ((fZ == fZ)) | |
1149 | 1205 | then { | |
1150 | - | let | |
1151 | - | let | |
1152 | - | let | |
1153 | - | let | |
1154 | - | then | |
1155 | - | else if (( | |
1156 | - | then | |
1206 | + | let hh = fd.payments[0] | |
1207 | + | let fu = hh.assetId | |
1208 | + | let ft = hh.amount | |
1209 | + | let eJ = if ((fu == bz)) | |
1210 | + | then eC(toBigInt(ft), toBigInt(0), toBigInt(0)) | |
1211 | + | else if ((fu == bA)) | |
1212 | + | then eC(toBigInt(0), toBigInt(ft), toBigInt(0)) | |
1157 | 1213 | else ba("payment asset is not supported") | |
1158 | - | if (( | |
1214 | + | if ((eJ == eJ)) | |
1159 | 1215 | then { | |
1160 | - | let ab = | |
1161 | - | let ac = | |
1162 | - | let | |
1163 | - | if (( | |
1216 | + | let ab = fd.caller | |
1217 | + | let ac = fd.transactionId | |
1218 | + | let hi = fs(ft, fu, ab, ac) | |
1219 | + | if ((hi == hi)) | |
1164 | 1220 | then { | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | then ( | |
1221 | + | let fy = hi._5 | |
1222 | + | let hj = hi._4 | |
1223 | + | let fr = hi._3 | |
1224 | + | let ev = hi._2 | |
1225 | + | let hk = hi._1 | |
1226 | + | let hl = if (if ((he > 0)) | |
1227 | + | then (he > hk) | |
1172 | 1228 | else false) | |
1173 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1174 | - | else | |
1175 | - | let | |
1176 | - | if (( | |
1229 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1230 | + | else hk | |
1231 | + | let fn = fm(hl) | |
1232 | + | if ((fn == fn)) | |
1177 | 1233 | then { | |
1178 | - | let | |
1234 | + | let gX = if (hf) | |
1179 | 1235 | then { | |
1180 | - | let | |
1181 | - | if (( | |
1236 | + | let hm = invoke(bE, "stake", nil, [AttachedPayment(by, hl)]) | |
1237 | + | if ((hm == hm)) | |
1182 | 1238 | then nil | |
1183 | 1239 | else throw("Strict value is not equal to itself.") | |
1184 | 1240 | } | |
1185 | - | else [ScriptTransfer( | |
1186 | - | let | |
1187 | - | then [ScriptTransfer(be, | |
1241 | + | else [ScriptTransfer(fd.caller, hl, by)] | |
1242 | + | let hn = if ((fr > 0)) | |
1243 | + | then [ScriptTransfer(be, fr, fu)] | |
1188 | 1244 | else nil | |
1189 | - | let | |
1245 | + | let ho = if ((this == be)) | |
1190 | 1246 | then $Tuple2(0, 0) | |
1191 | - | else if ( | |
1192 | - | then $Tuple2(-( | |
1193 | - | else $Tuple2(0, -( | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | if (( | |
1247 | + | else if (fy) | |
1248 | + | then $Tuple2(-(fr), 0) | |
1249 | + | else $Tuple2(0, -(fr)) | |
1250 | + | let eL = ho._1 | |
1251 | + | let eM = ho._2 | |
1252 | + | let hp = eK(eL, eM, 0) | |
1253 | + | let gP = hp._1 | |
1254 | + | let eB = hp._2 | |
1255 | + | let eW = value(getString(aj)) | |
1256 | + | let ha = eP(eJ, eB) | |
1257 | + | if ((ha == ha)) | |
1202 | 1258 | then { | |
1203 | - | let | |
1204 | - | if (( | |
1205 | - | then $Tuple2(((( | |
1259 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1260 | + | if ((hb == hb)) | |
1261 | + | then $Tuple2((((ev ++ gX) ++ hn) ++ gP), hl) | |
1206 | 1262 | else throw("Strict value is not equal to itself.") | |
1207 | 1263 | } | |
1208 | 1264 | else throw("Strict value is not equal to itself.") | |
1218 | 1274 | ||
1219 | 1275 | ||
1220 | 1276 | ||
1221 | - | @Callable( | |
1222 | - | func putOneTknREADONLY ( | |
1223 | - | let | |
1224 | - | let | |
1225 | - | let | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | $Tuple2(nil, $Tuple3( | |
1277 | + | @Callable(fd) | |
1278 | + | func putOneTknREADONLY (fu,ft) = { | |
1279 | + | let hq = fs(ft, bp(fu), unit, unit) | |
1280 | + | let hk = hq._1 | |
1281 | + | let ev = hq._2 | |
1282 | + | let fr = hq._3 | |
1283 | + | let hj = hq._4 | |
1284 | + | let fy = hq._5 | |
1285 | + | $Tuple2(nil, $Tuple3(hk, fr, hj)) | |
1230 | 1286 | } | |
1231 | 1287 | ||
1232 | 1288 | ||
1233 | 1289 | ||
1234 | - | @Callable( | |
1235 | - | func getOneTkn ( | |
1236 | - | let | |
1290 | + | @Callable(fd) | |
1291 | + | func getOneTkn (hr,he) = { | |
1292 | + | let hg = { | |
1237 | 1293 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1238 | 1294 | if ($isInstanceOf(bg, "Boolean")) | |
1239 | 1295 | then bg | |
1240 | 1296 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1241 | 1297 | } | |
1242 | - | let hn = if (if (bi()) | |
1298 | + | let fg = if (!(bj(fd.caller))) | |
1299 | + | then if (if (bk()) | |
1300 | + | then true | |
1301 | + | else (bx == n)) | |
1302 | + | then true | |
1303 | + | else hg | |
1304 | + | else false | |
1305 | + | let fZ = [if (if (!(fg)) | |
1243 | 1306 | then true | |
1244 | - | else ( | |
1307 | + | else gt(fd)) | |
1245 | 1308 | then true | |
1246 | - | else ha | |
1247 | - | let fV = [if (if (!(hn)) | |
1248 | - | then true | |
1249 | - | else gp(fb)) | |
1250 | - | then true | |
1251 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1309 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1252 | 1310 | then true | |
1253 | 1311 | else ba("exactly 1 payment are expected")] | |
1254 | - | if (( | |
1312 | + | if ((fZ == fZ)) | |
1255 | 1313 | then { | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | if (( | |
1314 | + | let fY = bp(hr) | |
1315 | + | let hh = fd.payments[0] | |
1316 | + | let fu = hh.assetId | |
1317 | + | let fG = hh.amount | |
1318 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1319 | + | if ((eJ == eJ)) | |
1262 | 1320 | then { | |
1263 | - | let ab = | |
1264 | - | let ac = | |
1265 | - | let | |
1266 | - | if (( | |
1321 | + | let ab = fd.caller | |
1322 | + | let ac = fd.transactionId | |
1323 | + | let hs = fX(fY, fG, fu, ab, ac) | |
1324 | + | if ((hs == hs)) | |
1267 | 1325 | then { | |
1268 | - | let | |
1269 | - | let | |
1270 | - | let | |
1271 | - | let | |
1272 | - | let | |
1273 | - | let | |
1274 | - | then ( | |
1326 | + | let ga = hs._5 | |
1327 | + | let hj = hs._4 | |
1328 | + | let fr = hs._3 | |
1329 | + | let ev = hs._2 | |
1330 | + | let ht = hs._1 | |
1331 | + | let ch = if (if ((he > 0)) | |
1332 | + | then (he > ht) | |
1275 | 1333 | else false) | |
1276 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1277 | - | else | |
1278 | - | let | |
1279 | - | if (( | |
1334 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1335 | + | else ht | |
1336 | + | let hu = invoke(bd, "burn", [fG], [AttachedPayment(fu, fG)]) | |
1337 | + | if ((hu == hu)) | |
1280 | 1338 | then { | |
1281 | - | let | |
1282 | - | let | |
1283 | - | let | |
1284 | - | then [ScriptTransfer(be, | |
1339 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1340 | + | let hv = [ScriptTransfer(ab, ch, fY)] | |
1341 | + | let hn = if ((fr > 0)) | |
1342 | + | then [ScriptTransfer(be, fr, fY)] | |
1285 | 1343 | else nil | |
1286 | - | let | |
1287 | - | let | |
1344 | + | let hw = { | |
1345 | + | let hx = if ((this == be)) | |
1288 | 1346 | then 0 | |
1289 | - | else | |
1290 | - | if ( | |
1291 | - | then $Tuple2(-(( | |
1292 | - | else $Tuple2(0, -(( | |
1347 | + | else fr | |
1348 | + | if (ga) | |
1349 | + | then $Tuple2(-((ch + hx)), 0) | |
1350 | + | else $Tuple2(0, -((ch + hx))) | |
1293 | 1351 | } | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | let | |
1300 | - | if (( | |
1301 | - | then $Tuple2((((( | |
1352 | + | let eL = hw._1 | |
1353 | + | let eM = hw._2 | |
1354 | + | let hy = eK(eL, eM, 0) | |
1355 | + | let gP = hy._1 | |
1356 | + | let eB = hy._2 | |
1357 | + | let ha = eP(eJ, eB) | |
1358 | + | if ((ha == ha)) | |
1359 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1302 | 1360 | else throw("Strict value is not equal to itself.") | |
1303 | 1361 | } | |
1304 | 1362 | else throw("Strict value is not equal to itself.") | |
1312 | 1370 | ||
1313 | 1371 | ||
1314 | 1372 | ||
1315 | - | @Callable( | |
1316 | - | func getOneTknREADONLY ( | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | $Tuple2(nil, $Tuple3( | |
1373 | + | @Callable(fd) | |
1374 | + | func getOneTknREADONLY (fY,fG) = { | |
1375 | + | let hz = fX(bp(fY), fG, by, unit, unit) | |
1376 | + | let ht = hz._1 | |
1377 | + | let ev = hz._2 | |
1378 | + | let fr = hz._3 | |
1379 | + | let hj = hz._4 | |
1380 | + | let ga = hz._5 | |
1381 | + | $Tuple2(nil, $Tuple3(ht, fr, hj)) | |
1324 | 1382 | } | |
1325 | 1383 | ||
1326 | 1384 | ||
1327 | 1385 | ||
1328 | - | @Callable( | |
1329 | - | func unstakeAndGetOneTkn ( | |
1330 | - | let | |
1386 | + | @Callable(fd) | |
1387 | + | func unstakeAndGetOneTkn (hA,hr,he) = { | |
1388 | + | let hg = { | |
1331 | 1389 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1332 | 1390 | if ($isInstanceOf(bg, "Boolean")) | |
1333 | 1391 | then bg | |
1334 | 1392 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1335 | 1393 | } | |
1336 | - | let hn = if (if (bi()) | |
1394 | + | let fg = if (!(bj(fd.caller))) | |
1395 | + | then if (if (bk()) | |
1396 | + | then true | |
1397 | + | else (bx == n)) | |
1398 | + | then true | |
1399 | + | else hg | |
1400 | + | else false | |
1401 | + | let fZ = [if (if (!(fg)) | |
1337 | 1402 | then true | |
1338 | - | else ( | |
1403 | + | else gt(fd)) | |
1339 | 1404 | then true | |
1340 | - | else ha | |
1341 | - | let fV = [if (if (!(hn)) | |
1342 | - | then true | |
1343 | - | else gp(fb)) | |
1344 | - | then true | |
1345 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1405 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1346 | 1406 | then true | |
1347 | 1407 | else ba("no payments are expected")] | |
1348 | - | if (( | |
1408 | + | if ((fZ == fZ)) | |
1349 | 1409 | then { | |
1350 | - | let | |
1351 | - | let ab = | |
1352 | - | let ac = | |
1353 | - | let | |
1354 | - | if (( | |
1410 | + | let fY = bp(hr) | |
1411 | + | let ab = fd.caller | |
1412 | + | let ac = fd.transactionId | |
1413 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1414 | + | if ((eJ == eJ)) | |
1355 | 1415 | then { | |
1356 | - | let | |
1357 | - | if (( | |
1416 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1417 | + | if ((hB == hB)) | |
1358 | 1418 | then { | |
1359 | - | let | |
1360 | - | if (( | |
1419 | + | let hC = fX(fY, hA, by, ab, ac) | |
1420 | + | if ((hC == hC)) | |
1361 | 1421 | then { | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | then ( | |
1422 | + | let ga = hC._5 | |
1423 | + | let hj = hC._4 | |
1424 | + | let fr = hC._3 | |
1425 | + | let ev = hC._2 | |
1426 | + | let ht = hC._1 | |
1427 | + | let ch = if (if ((he > 0)) | |
1428 | + | then (he > ht) | |
1369 | 1429 | else false) | |
1370 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1371 | - | else | |
1372 | - | let | |
1373 | - | if (( | |
1430 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1431 | + | else ht | |
1432 | + | let hu = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1433 | + | if ((hu == hu)) | |
1374 | 1434 | then { | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | then [ScriptTransfer(be, | |
1435 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1436 | + | let hv = [ScriptTransfer(fd.caller, ch, fY)] | |
1437 | + | let hn = if ((fr > 0)) | |
1438 | + | then [ScriptTransfer(be, fr, fY)] | |
1379 | 1439 | else nil | |
1380 | - | let | |
1381 | - | let | |
1440 | + | let hD = { | |
1441 | + | let hx = if ((this == be)) | |
1382 | 1442 | then 0 | |
1383 | - | else | |
1384 | - | if ( | |
1385 | - | then $Tuple2(-(( | |
1386 | - | else $Tuple2(0, -(( | |
1443 | + | else fr | |
1444 | + | if (ga) | |
1445 | + | then $Tuple2(-((ch + hx)), 0) | |
1446 | + | else $Tuple2(0, -((ch + hx))) | |
1387 | 1447 | } | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | if (( | |
1395 | - | then $Tuple2((((( | |
1448 | + | let eL = hD._1 | |
1449 | + | let eM = hD._2 | |
1450 | + | let hE = eK(eL, eM, 0) | |
1451 | + | let gP = hE._1 | |
1452 | + | let eB = hE._2 | |
1453 | + | let ha = eP(eJ, eB) | |
1454 | + | if ((ha == ha)) | |
1455 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1396 | 1456 | else throw("Strict value is not equal to itself.") | |
1397 | 1457 | } | |
1398 | 1458 | else throw("Strict value is not equal to itself.") | |
1408 | 1468 | ||
1409 | 1469 | ||
1410 | 1470 | ||
1411 | - | @Callable( | |
1471 | + | @Callable(fd) | |
1412 | 1472 | func get () = { | |
1413 | - | let | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | let | |
1421 | - | if (( | |
1473 | + | let eg = fc(fd) | |
1474 | + | let dM = eg._1 | |
1475 | + | let dN = eg._2 | |
1476 | + | let ff = eg._3 | |
1477 | + | let dv = eg._4 | |
1478 | + | let dO = eg._5 | |
1479 | + | let gR = cW(dM, dN) | |
1480 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1481 | + | if ((eJ == eJ)) | |
1422 | 1482 | then { | |
1423 | - | let | |
1424 | - | if (( | |
1483 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1484 | + | if ((hF == hF)) | |
1425 | 1485 | then { | |
1426 | - | let | |
1427 | - | let | |
1428 | - | let | |
1429 | - | let | |
1430 | - | if (( | |
1431 | - | then (( | |
1486 | + | let hG = eK(-(dM), -(dN), 0) | |
1487 | + | let gP = hG._1 | |
1488 | + | let eB = hG._2 | |
1489 | + | let ha = eP(eJ, eB) | |
1490 | + | if ((ha == ha)) | |
1491 | + | then ((gR ++ dO) ++ gP) | |
1432 | 1492 | else throw("Strict value is not equal to itself.") | |
1433 | 1493 | } | |
1434 | 1494 | else throw("Strict value is not equal to itself.") | |
1438 | 1498 | ||
1439 | 1499 | ||
1440 | 1500 | ||
1441 | - | @Callable( | |
1442 | - | func getNoLess ( | |
1443 | - | let | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | let | |
1448 | - | let | |
1449 | - | if (( | |
1450 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1451 | - | else if (( | |
1452 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1501 | + | @Callable(fd) | |
1502 | + | func getNoLess (hH,hI) = { | |
1503 | + | let eg = fc(fd) | |
1504 | + | let dM = eg._1 | |
1505 | + | let dN = eg._2 | |
1506 | + | let ff = eg._3 | |
1507 | + | let dv = eg._4 | |
1508 | + | let dO = eg._5 | |
1509 | + | if ((hH > dM)) | |
1510 | + | then throw(((("noLessThenAmtAsset failed: " + toString(dM)) + " < ") + toString(hH))) | |
1511 | + | else if ((hI > dN)) | |
1512 | + | then throw(((("noLessThenPriceAsset failed: " + toString(dN)) + " < ") + toString(hI))) | |
1453 | 1513 | else { | |
1454 | - | let | |
1455 | - | let | |
1456 | - | if (( | |
1514 | + | let gR = cW(dM, dN) | |
1515 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1516 | + | if ((eJ == eJ)) | |
1457 | 1517 | then { | |
1458 | - | let | |
1459 | - | if (( | |
1518 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1519 | + | if ((hF == hF)) | |
1460 | 1520 | then { | |
1461 | - | let | |
1462 | - | let | |
1463 | - | let | |
1464 | - | let | |
1465 | - | if (( | |
1466 | - | then (( | |
1521 | + | let hJ = eK(-(dM), -(dN), 0) | |
1522 | + | let gP = hJ._1 | |
1523 | + | let eB = hJ._2 | |
1524 | + | let ha = eP(eJ, eB) | |
1525 | + | if ((ha == ha)) | |
1526 | + | then ((gR ++ dO) ++ gP) | |
1467 | 1527 | else throw("Strict value is not equal to itself.") | |
1468 | 1528 | } | |
1469 | 1529 | else throw("Strict value is not equal to itself.") | |
1474 | 1534 | ||
1475 | 1535 | ||
1476 | 1536 | ||
1477 | - | @Callable( | |
1478 | - | func unstakeAndGet ( | |
1479 | - | let | |
1537 | + | @Callable(fd) | |
1538 | + | func unstakeAndGet (ch) = { | |
1539 | + | let hK = if ((size(fd.payments) != 0)) | |
1480 | 1540 | then throw("No payments are expected") | |
1481 | 1541 | else true | |
1482 | - | if (( | |
1542 | + | if ((hK == hK)) | |
1483 | 1543 | then { | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | if (( | |
1544 | + | let dk = bm() | |
1545 | + | let dx = fromBase58String(dk[q]) | |
1546 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1547 | + | if ((eJ == eJ)) | |
1488 | 1548 | then { | |
1489 | - | let | |
1490 | - | if (( | |
1549 | + | let hB = invoke(bE, "unstake", [toBase58String(dx), ch], nil) | |
1550 | + | if ((hB == hB)) | |
1491 | 1551 | then { | |
1492 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dv), cf, fb.caller) | |
1493 | - | let dK = ee._1 | |
1494 | - | let dL = ee._2 | |
1495 | - | let dy = parseIntValue(ee._9) | |
1496 | - | let dM = ee._10 | |
1497 | - | let gK = cU(dK, dL) | |
1498 | - | let hH = if (if (bi()) | |
1499 | - | then true | |
1500 | - | else (dy == n)) | |
1501 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
1552 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dx), ch, fd.caller) | |
1553 | + | let dM = eg._1 | |
1554 | + | let dN = eg._2 | |
1555 | + | let dA = parseIntValue(eg._9) | |
1556 | + | let dO = eg._10 | |
1557 | + | let gR = cW(dM, dN) | |
1558 | + | let fg = if (!(bj(fd.caller))) | |
1559 | + | then if (bk()) | |
1560 | + | then true | |
1561 | + | else (bx == n) | |
1562 | + | else false | |
1563 | + | let hL = if (fg) | |
1564 | + | then throw(("Get operation is blocked by admin. Status = " + toString(dA))) | |
1502 | 1565 | else true | |
1503 | - | if (( | |
1566 | + | if ((hL == hL)) | |
1504 | 1567 | then { | |
1505 | - | let | |
1506 | - | if (( | |
1568 | + | let hF = invoke(bd, "burn", [ch], [AttachedPayment(dx, ch)]) | |
1569 | + | if ((hF == hF)) | |
1507 | 1570 | then { | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | if (( | |
1513 | - | then (( | |
1571 | + | let hM = eK(-(dM), -(dN), 0) | |
1572 | + | let gP = hM._1 | |
1573 | + | let eB = hM._2 | |
1574 | + | let ha = eP(eJ, eB) | |
1575 | + | if ((ha == ha)) | |
1576 | + | then ((gR ++ dO) ++ gP) | |
1514 | 1577 | else throw("Strict value is not equal to itself.") | |
1515 | 1578 | } | |
1516 | 1579 | else throw("Strict value is not equal to itself.") | |
1526 | 1589 | ||
1527 | 1590 | ||
1528 | 1591 | ||
1529 | - | @Callable(fb) | |
1530 | - | func unstakeAndGetNoLess (hw,hJ,hE) = { | |
1531 | - | let hn = if (bi()) | |
1592 | + | @Callable(fd) | |
1593 | + | func unstakeAndGetNoLess (hA,hN,hI) = { | |
1594 | + | let fg = if (!(bj(fd.caller))) | |
1595 | + | then if (bk()) | |
1596 | + | then true | |
1597 | + | else (bx == n) | |
1598 | + | else false | |
1599 | + | let fZ = [if (!(fg)) | |
1532 | 1600 | then true | |
1533 | - | else (bv == n) | |
1534 | - | let fV = [if (!(hn)) | |
1535 | - | then true | |
1536 | - | else throw("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1601 | + | else throw("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1537 | 1602 | then true | |
1538 | 1603 | else throw("no payments are expected")] | |
1539 | - | if (( | |
1604 | + | if ((fZ == fZ)) | |
1540 | 1605 | then { | |
1541 | - | let | |
1542 | - | if (( | |
1606 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1607 | + | if ((eJ == eJ)) | |
1543 | 1608 | then { | |
1544 | - | let | |
1545 | - | if (( | |
1609 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1610 | + | if ((hB == hB)) | |
1546 | 1611 | then { | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | let | |
1612 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(by), hA, fd.caller) | |
1613 | + | let dM = eg._1 | |
1614 | + | let dN = eg._2 | |
1615 | + | let dO = eg._10 | |
1616 | + | let gR = cW(dM, dN) | |
1617 | + | let hO = [if ((dM >= hN)) | |
1553 | 1618 | then true | |
1554 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1619 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hN)], "")), if ((dN >= hI)) | |
1555 | 1620 | then true | |
1556 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1557 | - | if (( | |
1621 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hI)], ""))] | |
1622 | + | if ((hO == hO)) | |
1558 | 1623 | then { | |
1559 | - | let | |
1560 | - | if (( | |
1624 | + | let hF = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1625 | + | if ((hF == hF)) | |
1561 | 1626 | then { | |
1562 | - | let | |
1563 | - | let | |
1564 | - | let | |
1565 | - | let | |
1566 | - | if (( | |
1567 | - | then (( | |
1627 | + | let hP = eK(-(dM), -(dN), 0) | |
1628 | + | let gP = hP._1 | |
1629 | + | let eB = hP._2 | |
1630 | + | let ha = eP(eJ, eB) | |
1631 | + | if ((ha == ha)) | |
1632 | + | then ((gR ++ dO) ++ gP) | |
1568 | 1633 | else throw("Strict value is not equal to itself.") | |
1569 | 1634 | } | |
1570 | 1635 | else throw("Strict value is not equal to itself.") | |
1580 | 1645 | ||
1581 | 1646 | ||
1582 | 1647 | ||
1583 | - | @Callable( | |
1584 | - | func activate ( | |
1648 | + | @Callable(fd) | |
1649 | + | func activate (hQ,hR) = if ((toString(fd.caller) != toString(bd))) | |
1585 | 1650 | then throw("permissions denied") | |
1586 | - | else $Tuple2([StringEntry(ae(), | |
1651 | + | else $Tuple2([StringEntry(ae(), hQ), StringEntry(af(), hR)], "success") | |
1587 | 1652 | ||
1588 | 1653 | ||
1589 | 1654 | ||
1590 | - | @Callable( | |
1655 | + | @Callable(fd) | |
1591 | 1656 | func refreshKLp () = { | |
1592 | - | let | |
1593 | - | let | |
1657 | + | let hS = valueOrElse(getInteger(ak), 0) | |
1658 | + | let hT = if (((height - hS) >= an)) | |
1594 | 1659 | then unit | |
1595 | 1660 | else ba(makeString([toString(an), " blocks have not passed since the previous call"], "")) | |
1596 | - | if (( | |
1661 | + | if ((hT == hT)) | |
1597 | 1662 | then { | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1603 | - | then | |
1663 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
1664 | + | let hU = eK(0, 0, 0) | |
1665 | + | let hV = hU._1 | |
1666 | + | let eB = hU._2 | |
1667 | + | let eN = if ((eW != eB)) | |
1668 | + | then hV | |
1604 | 1669 | else ba("nothing to refresh") | |
1605 | - | $Tuple2( | |
1670 | + | $Tuple2(eN, toString(eB)) | |
1606 | 1671 | } | |
1607 | 1672 | else throw("Strict value is not equal to itself.") | |
1608 | 1673 | } | |
1609 | 1674 | ||
1610 | 1675 | ||
1611 | 1676 | ||
1612 | - | @Callable( | |
1613 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1677 | + | @Callable(fd) | |
1678 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bm()) | |
1614 | 1679 | ||
1615 | 1680 | ||
1616 | 1681 | ||
1617 | - | @Callable( | |
1618 | - | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, | |
1682 | + | @Callable(fd) | |
1683 | + | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, bV(ap)) | |
1619 | 1684 | ||
1620 | 1685 | ||
1621 | 1686 | ||
1622 | - | @Callable( | |
1623 | - | func calcPricesWrapperREADONLY ( | |
1624 | - | let | |
1625 | - | $Tuple2(nil, [toString( | |
1687 | + | @Callable(fd) | |
1688 | + | func calcPricesWrapperREADONLY (de,df,dj) = { | |
1689 | + | let ds = di(de, df, dj) | |
1690 | + | $Tuple2(nil, [toString(ds[0]), toString(ds[1]), toString(ds[2])]) | |
1626 | 1691 | } | |
1627 | 1692 | ||
1628 | 1693 | ||
1629 | 1694 | ||
1630 | - | @Callable( | |
1695 | + | @Callable(fd) | |
1631 | 1696 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1632 | 1697 | ||
1633 | 1698 | ||
1634 | 1699 | ||
1635 | - | @Callable( | |
1700 | + | @Callable(fd) | |
1636 | 1701 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1637 | 1702 | ||
1638 | 1703 | ||
1639 | 1704 | ||
1640 | - | @Callable( | |
1641 | - | func calcPriceBigIntWrapperREADONLY ( | |
1705 | + | @Callable(fd) | |
1706 | + | func calcPriceBigIntWrapperREADONLY (bZ,ca) = $Tuple2(nil, toString(bY(parseBigIntValue(bZ), parseBigIntValue(ca)))) | |
1642 | 1707 | ||
1643 | 1708 | ||
1644 | 1709 | ||
1645 | - | @Callable( | |
1646 | - | func estimatePutOperationWrapperREADONLY ( | |
1710 | + | @Callable(fd) | |
1711 | + | func estimatePutOperationWrapperREADONLY (du,dQ,dR,dS,dT,dU,ab,dV,dW) = $Tuple2(nil, dP(du, dQ, dR, dS, dT, dU, ab, dV, dW)) | |
1647 | 1712 | ||
1648 | 1713 | ||
1649 | 1714 | ||
1650 | - | @Callable( | |
1651 | - | func estimateGetOperationWrapperREADONLY ( | |
1652 | - | let | |
1653 | - | $Tuple2(nil, $Tuple10( | |
1715 | + | @Callable(fd) | |
1716 | + | func estimateGetOperationWrapperREADONLY (du,dv,dw,ab) = { | |
1717 | + | let eg = dt(du, dv, dw, addressFromStringValue(ab)) | |
1718 | + | $Tuple2(nil, $Tuple10(eg._1, eg._2, eg._3, eg._4, eg._5, eg._6, eg._7, toString(eg._8), eg._9, eg._10)) | |
1654 | 1719 | } | |
1655 | 1720 | ||
1656 | 1721 | ||
1657 | 1722 | ||
1658 | - | @Callable( | |
1723 | + | @Callable(fd) | |
1659 | 1724 | func statsREADONLY () = { | |
1660 | - | let | |
1661 | - | let | |
1662 | - | let | |
1663 | - | let | |
1664 | - | let | |
1665 | - | let | |
1666 | - | let | |
1667 | - | let | |
1668 | - | let | |
1669 | - | let | |
1670 | - | let | |
1671 | - | let | |
1725 | + | let dk = bm() | |
1726 | + | let dx = fromBase58String(dk[q]) | |
1727 | + | let hW = dk[r] | |
1728 | + | let hX = dk[s] | |
1729 | + | let dZ = dk[v] | |
1730 | + | let ea = dk[w] | |
1731 | + | let dl = parseIntValue(dk[t]) | |
1732 | + | let dm = parseIntValue(dk[u]) | |
1733 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1734 | + | let hZ = bV(hW) | |
1735 | + | let ia = bV(hX) | |
1736 | + | let ib = if ((hY == 0)) | |
1672 | 1737 | then [e, e, e] | |
1673 | - | else | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1738 | + | else di(hZ, ia, hY) | |
1739 | + | let dH = 0 | |
1740 | + | let ic = H(ib[1], b) | |
1741 | + | let id = H(ib[2], b) | |
1742 | + | let ie = value(getInteger(bd, aD(toString(this)))) | |
1743 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(hZ), toString(ia), toString(hY), toString(dH), toString(ic), toString(id), toString(ie)], j)) | |
1679 | 1744 | } | |
1680 | 1745 | ||
1681 | 1746 | ||
1682 | 1747 | ||
1683 | - | @Callable( | |
1684 | - | func evaluatePutByAmountAssetREADONLY ( | |
1685 | - | let | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | let | |
1694 | - | let | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1698 | - | let | |
1699 | - | let | |
1748 | + | @Callable(fd) | |
1749 | + | func evaluatePutByAmountAssetREADONLY (dR) = { | |
1750 | + | let dk = bm() | |
1751 | + | let dx = fromBase58String(dk[q]) | |
1752 | + | let dX = dk[r] | |
1753 | + | let dy = fromBase58String(dX) | |
1754 | + | let dY = dk[s] | |
1755 | + | let dz = fromBase58String(dY) | |
1756 | + | let dl = parseIntValue(dk[t]) | |
1757 | + | let dm = parseIntValue(dk[u]) | |
1758 | + | let dA = dk[p] | |
1759 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1760 | + | let hZ = bV(dX) | |
1761 | + | let ia = bV(dY) | |
1762 | + | let dg = D(hZ, dl) | |
1763 | + | let dh = D(ia, dm) | |
1764 | + | let dG = if ((hY == 0)) | |
1700 | 1765 | then e | |
1701 | - | else | |
1702 | - | let | |
1703 | - | let | |
1704 | - | let | |
1705 | - | let | |
1706 | - | let | |
1707 | - | let | |
1708 | - | let | |
1709 | - | let | |
1710 | - | let | |
1711 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1766 | + | else bY(dh, dg) | |
1767 | + | let ed = D(dR, dl) | |
1768 | + | let ee = fraction(ed, dG, d) | |
1769 | + | let dT = H(ee, dm) | |
1770 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1771 | + | let eo = fk._1 | |
1772 | + | let if = fk._3 | |
1773 | + | let dC = fk._4 | |
1774 | + | let dE = fk._5 | |
1775 | + | let dB = fk._6 | |
1776 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1712 | 1777 | } | |
1713 | 1778 | ||
1714 | 1779 | ||
1715 | 1780 | ||
1716 | - | @Callable( | |
1717 | - | func evaluatePutByPriceAssetREADONLY ( | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | let | |
1725 | - | let | |
1726 | - | let | |
1727 | - | let | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1781 | + | @Callable(fd) | |
1782 | + | func evaluatePutByPriceAssetREADONLY (dT) = { | |
1783 | + | let dk = bm() | |
1784 | + | let dx = fromBase58String(dk[q]) | |
1785 | + | let dX = dk[r] | |
1786 | + | let dy = fromBase58String(dX) | |
1787 | + | let dY = dk[s] | |
1788 | + | let dz = fromBase58String(dY) | |
1789 | + | let dl = parseIntValue(dk[t]) | |
1790 | + | let dm = parseIntValue(dk[u]) | |
1791 | + | let dA = dk[p] | |
1792 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1793 | + | let ig = bV(dX) | |
1794 | + | let ih = bV(dY) | |
1795 | + | let ii = D(ig, dl) | |
1796 | + | let ij = D(ih, dm) | |
1797 | + | let dG = if ((hY == 0)) | |
1733 | 1798 | then e | |
1734 | - | else | |
1735 | - | let | |
1736 | - | let | |
1737 | - | let | |
1738 | - | let | |
1739 | - | let | |
1740 | - | let | |
1741 | - | let | |
1742 | - | let | |
1743 | - | let | |
1744 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1799 | + | else bY(ij, ii) | |
1800 | + | let ee = D(dT, dm) | |
1801 | + | let ed = fraction(ee, d, dG) | |
1802 | + | let dR = H(ed, dl) | |
1803 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1804 | + | let eo = fk._1 | |
1805 | + | let if = fk._3 | |
1806 | + | let dC = fk._4 | |
1807 | + | let dE = fk._5 | |
1808 | + | let dB = fk._6 | |
1809 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1745 | 1810 | } | |
1746 | 1811 | ||
1747 | 1812 | ||
1748 | 1813 | ||
1749 | - | @Callable( | |
1750 | - | func evaluateGetREADONLY ( | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1754 | - | let | |
1755 | - | let | |
1756 | - | let | |
1757 | - | let | |
1758 | - | let | |
1759 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1814 | + | @Callable(fd) | |
1815 | + | func evaluateGetREADONLY (ik,il) = { | |
1816 | + | let eg = dt("", ik, il, this) | |
1817 | + | let dM = eg._1 | |
1818 | + | let dN = eg._2 | |
1819 | + | let dC = eg._5 | |
1820 | + | let dE = eg._6 | |
1821 | + | let dB = eg._7 | |
1822 | + | let dH = eg._8 | |
1823 | + | let dA = parseIntValue(eg._9) | |
1824 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dC), toString(dE), toString(dB), toString(dH), toString(dA)], j)) | |
1760 | 1825 | } | |
1761 | 1826 | ||
1762 | 1827 | ||
1763 | - | @Verifier( | |
1764 | - | func | |
1765 | - | let | |
1766 | - | let aQ = | |
1828 | + | @Verifier(im) | |
1829 | + | func in () = { | |
1830 | + | let io = { | |
1831 | + | let aQ = gr() | |
1767 | 1832 | if ($isInstanceOf(aQ, "ByteVector")) | |
1768 | 1833 | then { | |
1769 | - | let | |
1770 | - | | |
1834 | + | let gu = aQ | |
1835 | + | gu | |
1771 | 1836 | } | |
1772 | 1837 | else if ($isInstanceOf(aQ, "Unit")) | |
1773 | - | then | |
1838 | + | then im.senderPublicKey | |
1774 | 1839 | else throw("Match error") | |
1775 | 1840 | } | |
1776 | - | let aQ = | |
1841 | + | let aQ = im | |
1777 | 1842 | if ($isInstanceOf(aQ, "Order")) | |
1778 | 1843 | then { | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1844 | + | let eS = aQ | |
1845 | + | let ip = bl() | |
1846 | + | let iq = if (eO()) | |
1782 | 1847 | then $Tuple2(true, "") | |
1783 | - | else | |
1784 | - | let aK = | |
1785 | - | let aL = | |
1786 | - | let aM = sigVerify( | |
1787 | - | let aN = sigVerify( | |
1848 | + | else eR(eS) | |
1849 | + | let aK = iq._1 | |
1850 | + | let aL = iq._2 | |
1851 | + | let aM = sigVerify(eS.bodyBytes, eS.proofs[0], eS.senderPublicKey) | |
1852 | + | let aN = sigVerify(eS.bodyBytes, eS.proofs[1], ip) | |
1788 | 1853 | if (if (if (aK) | |
1789 | 1854 | then aM | |
1790 | 1855 | else false) | |
1796 | 1861 | else if ($isInstanceOf(aQ, "SetScriptTransaction")) | |
1797 | 1862 | then { | |
1798 | 1863 | let aV = aQ | |
1799 | - | if (sigVerify( | |
1864 | + | if (sigVerify(im.bodyBytes, im.proofs[0], io)) | |
1800 | 1865 | then true | |
1801 | 1866 | else { | |
1802 | - | let | |
1803 | - | let | |
1804 | - | let | |
1805 | - | if (( | |
1806 | - | then ( | |
1867 | + | let ir = blake2b256(value(aV.script)) | |
1868 | + | let is = fromBase64String(value(getString(bd, aF()))) | |
1869 | + | let it = scriptHash(this) | |
1870 | + | if ((is == ir)) | |
1871 | + | then (it != ir) | |
1807 | 1872 | else false | |
1808 | 1873 | } | |
1809 | 1874 | } | |
1810 | - | else sigVerify( | |
1875 | + | else sigVerify(im.bodyBytes, im.proofs[0], io) | |
1811 | 1876 | } | |
1812 | 1877 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (E,F) = fraction(E, d, F) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H (I,J) = toInt(fraction(I, toBigInt(J), d)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func K (I,J,L) = toInt(fraction(I, toBigInt(J), d, L)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func M (N,O,P) = fraction(N, O, P) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func Q (I) = if ((0 > I)) | |
78 | 78 | then -(I) | |
79 | 79 | else I | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func R (I) = if ((e > I)) | |
83 | 83 | then -(I) | |
84 | 84 | else I | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func S () = "%s__swapContract" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func T () = "%s__factoryContract" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func U () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func V () = "%s__managerVaultAddress" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func W () = "%s%s__price__last" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func X (Y,Z) = makeString(["%s%s%d%d__price__history", toString(Y), toString(Z)], j) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func aa (ab,ac) = ((("%s%s%s__P__" + ab) + "__") + ac) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad (ab,ac) = ((("%s%s%s__G__" + ab) + "__") + ac) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ae () = "%s__amountAsset" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s__priceAsset" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | let ag = "%s__fee" | |
118 | 118 | ||
119 | 119 | let ah = fraction(10, b, 10000) | |
120 | 120 | ||
121 | 121 | let ai = valueOrElse(getInteger(this, ag), ah) | |
122 | 122 | ||
123 | 123 | let aj = makeString(["%s", "kLp"], j) | |
124 | 124 | ||
125 | 125 | let ak = makeString(["%s", "kLpRefreshedHeight"], j) | |
126 | 126 | ||
127 | 127 | let al = makeString(["%s", "refreshKLpDelay"], j) | |
128 | 128 | ||
129 | 129 | let am = 30 | |
130 | 130 | ||
131 | 131 | let an = valueOrElse(getInteger(this, al), am) | |
132 | 132 | ||
133 | 133 | func ao (ap) = makeString(["%s%s", "stakedBalance", ap], j) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aq (ap) = makeString(["%s%s", "shareAssetBalance", ap], j) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ar (ap) = valueOrElse(getInteger(this, ao(ap)), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func as (ap) = valueOrElse(getInteger(this, aq(ap)), 0) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func at () = "%s__factoryConfig" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func au () = "%s%s__matcher__publicKey" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func av (aw) = (("%s%s%s__" + aw) + "__mappings__poolContract2LpAsset") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ax (ay,az) = (((("%d%d%s__" + ay) + "__") + az) + "__config") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aA (aB) = ("%s%s%s__mappings__baseAsset2internalId__" + aB) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aC () = "%s__shutdown" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aD (aE) = ("%s%s__poolWeight__" + aE) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aF () = "%s__allowedLpScriptHash" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let aG = "%s__feeCollectorAddress" | |
170 | 170 | ||
171 | 171 | func aH (aI) = ("%s%s__skipOrderValidation__" + aI) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aJ (aK,aL,aM,aN) = throw((((((((("order validation failed: orderValid=" + toString(aK)) + " (") + aL) + ")") + " senderValid=") + toString(aM)) + " matcherValid=") + toString(aN))) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aO (aP) = { | |
178 | 178 | let aQ = addressFromString(aP) | |
179 | 179 | if ($isInstanceOf(aQ, "Address")) | |
180 | 180 | then { | |
181 | 181 | let aR = aQ | |
182 | 182 | aR | |
183 | 183 | } | |
184 | 184 | else this | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aS () = { | |
189 | 189 | let aT = { | |
190 | 190 | let aQ = getString(T()) | |
191 | 191 | if ($isInstanceOf(aQ, "String")) | |
192 | 192 | then { | |
193 | 193 | let aU = aQ | |
194 | 194 | aO(aU) | |
195 | 195 | } | |
196 | 196 | else this | |
197 | 197 | } | |
198 | 198 | let aQ = getString(aT, V()) | |
199 | 199 | if ($isInstanceOf(aQ, "String")) | |
200 | 200 | then { | |
201 | 201 | let aV = aQ | |
202 | 202 | aO(aV) | |
203 | 203 | } | |
204 | 204 | else this | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aW (aX,aY) = valueOrErrorMessage(getString(aX, aY), makeString(["mandatory ", toString(aX), ".", aY, " is not defined"], "")) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aZ (aX,aY) = valueOrErrorMessage(getInteger(aX, aY), makeString(["mandatory ", toString(aX), ".", aY, " is not defined"], "")) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func ba (bb) = throw(makeString(["lp.ride:", bb], " ")) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func bc (bb) = makeString(["lp.ride:", bb], " ") | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | let bd = addressFromStringValue(aW(this, T())) | |
221 | 221 | ||
222 | 222 | let be = addressFromStringValue(aW(bd, aG)) | |
223 | 223 | ||
224 | 224 | let bf = { | |
225 | 225 | let bg = invoke(bd, "getInFeeREADONLY", [toString(this)], nil) | |
226 | 226 | if ($isInstanceOf(bg, "Int")) | |
227 | 227 | then bg | |
228 | 228 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | let bh = { | |
232 | 232 | let bg = invoke(bd, "getOutFeeREADONLY", [toString(this)], nil) | |
233 | 233 | if ($isInstanceOf(bg, "Int")) | |
234 | 234 | then bg | |
235 | 235 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
236 | 236 | } | |
237 | 237 | ||
238 | - | func bi () = | |
238 | + | func bi (aX) = makeString(["%s%s", "whitelisted", toString(aX)], j) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bj () = | |
241 | + | func bj (aX) = valueOrElse(getBoolean(bd, bi(aX)), false) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bk () = { | |
245 | - | let bl = aW(this, ae()) | |
246 | - | let bm = aW(this, af()) | |
247 | - | let az = aZ(bd, aA(bm)) | |
248 | - | let ay = aZ(bd, aA(bl)) | |
244 | + | func bk () = valueOrElse(getBoolean(bd, aC()), false) | |
245 | + | ||
246 | + | ||
247 | + | func bl () = fromBase58String(aW(bd, au())) | |
248 | + | ||
249 | + | ||
250 | + | func bm () = { | |
251 | + | let bn = aW(this, ae()) | |
252 | + | let bo = aW(this, af()) | |
253 | + | let az = aZ(bd, aA(bo)) | |
254 | + | let ay = aZ(bd, aA(bn)) | |
249 | 255 | split(aW(bd, ax(toString(ay), toString(az))), j) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
259 | + | func bp (bq) = if ((bq == i)) | |
254 | 260 | then unit | |
255 | - | else fromBase58String( | |
261 | + | else fromBase58String(bq) | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func br (bq) = if ((bq == unit)) | |
259 | 265 | then i | |
260 | - | else toBase58String(value( | |
266 | + | else toBase58String(value(bq)) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bs (bt) = $Tuple7(addressFromStringValue(bt[o]), parseIntValue(bt[p]), fromBase58String(bt[q]), bp(bt[r]), bp(bt[s]), parseIntValue(bt[t]), parseIntValue(bt[u])) | |
264 | 270 | ||
265 | 271 | ||
266 | - | let | |
272 | + | let bu = bs(bm()) | |
267 | 273 | ||
268 | - | let | |
274 | + | let bv = bu | |
269 | 275 | ||
270 | - | let | |
276 | + | let bw = bv._1 | |
271 | 277 | ||
272 | - | let | |
278 | + | let bx = bv._2 | |
273 | 279 | ||
274 | - | let | |
280 | + | let by = bv._3 | |
275 | 281 | ||
276 | - | let | |
282 | + | let bz = bv._4 | |
277 | 283 | ||
278 | - | let | |
284 | + | let bA = bv._5 | |
279 | 285 | ||
280 | - | let | |
286 | + | let bB = bv._6 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bC = bv._7 | |
283 | 289 | ||
284 | - | func | |
290 | + | func bD () = split(aW(bd, at()), j) | |
285 | 291 | ||
286 | 292 | ||
287 | - | let | |
293 | + | let bE = valueOrErrorMessage(addressFromString(bD()[B]), "incorrect staking address") | |
288 | 294 | ||
289 | - | let | |
295 | + | let bF = valueOrErrorMessage(addressFromString(bD()[C]), "incorrect staking address") | |
290 | 296 | ||
291 | - | func | |
297 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ)], j) | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bR (bS,bT,bU,bK,bN,bO) = makeString(["%d%d%d%d%d%d", toString(bS), toString(bT), toString(bU), toString(bK), toString(bN), toString(bO)], j) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
298 | - | let | |
303 | + | func bV (ap) = { | |
304 | + | let bW = if ((ap == "WAVES")) | |
299 | 305 | then wavesBalance(this).available | |
300 | 306 | else assetBalance(this, fromBase58String(ap)) | |
301 | - | let | |
302 | - | max([0, | |
307 | + | let bX = ((bW + ar(ap)) - as(ap)) | |
308 | + | max([0, bX]) | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bY (bZ,ca) = fraction(bZ, d, ca) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func cb (bZ,ca,L) = fraction(bZ, d, ca, L) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
313 | - | let | |
314 | - | if (( | |
318 | + | func cc (cd) = { | |
319 | + | let ce = invoke(cd, "getRate", nil, nil) | |
320 | + | if ((ce == ce)) | |
315 | 321 | then { | |
316 | - | let aQ = | |
322 | + | let aQ = ce | |
317 | 323 | if ($isInstanceOf(aQ, "Int")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | | |
325 | + | let cf = aQ | |
326 | + | cf | |
321 | 327 | } | |
322 | 328 | else ba("proxy.getRate() unexpected value") | |
323 | 329 | } | |
324 | 330 | else throw("Strict value is not equal to itself.") | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | if (( | |
334 | + | func cg (ap,ch,ci,cd) = { | |
335 | + | let cj = ar(ap) | |
336 | + | if ((cj == cj)) | |
331 | 337 | then { | |
332 | - | let | |
333 | - | if (( | |
338 | + | let ck = as(ci) | |
339 | + | if ((ck == ck)) | |
334 | 340 | then { | |
335 | - | let | |
336 | - | if (( | |
341 | + | let cl = bp(ap) | |
342 | + | if ((ch > 0)) | |
337 | 343 | then { | |
338 | - | let | |
339 | - | if (( | |
344 | + | let cm = invoke(cd, "deposit", nil, [AttachedPayment(cl, ch)]) | |
345 | + | if ((cm == cm)) | |
340 | 346 | then { | |
341 | - | let aQ = | |
347 | + | let aQ = cm | |
342 | 348 | if ($isInstanceOf(aQ, "Int")) | |
343 | 349 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | [IntegerEntry(ao(ap), | |
350 | + | let cn = aQ | |
351 | + | let co = (cj + ch) | |
352 | + | let cp = (ck + cn) | |
353 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp)] | |
348 | 354 | } | |
349 | 355 | else nil | |
350 | 356 | } | |
351 | 357 | else throw("Strict value is not equal to itself.") | |
352 | 358 | } | |
353 | 359 | else nil | |
354 | 360 | } | |
355 | 361 | else throw("Strict value is not equal to itself.") | |
356 | 362 | } | |
357 | 363 | else throw("Strict value is not equal to itself.") | |
358 | 364 | } | |
359 | 365 | ||
360 | 366 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
367 | + | func cq (ap,ch,ci,cd,cr,cs) = { | |
368 | + | let cj = ar(ap) | |
369 | + | if ((cj == cj)) | |
364 | 370 | then { | |
365 | - | let | |
366 | - | if (( | |
371 | + | let ck = as(ci) | |
372 | + | if ((ck == ck)) | |
367 | 373 | then { | |
368 | - | let | |
369 | - | if (( | |
374 | + | let ct = cc(cd) | |
375 | + | if ((ct == ct)) | |
370 | 376 | then { | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
377 | + | let cu = fraction(cr, cj, ck) | |
378 | + | let cv = bp(ci) | |
379 | + | let cw = fraction(cr, ch, cu) | |
380 | + | let cx = fraction(cr, ch, ct) | |
381 | + | let cy = max([0, (cw - cx)]) | |
382 | + | if ((cx > 0)) | |
377 | 383 | then { | |
378 | - | let | |
379 | - | if (( | |
384 | + | let cz = invoke(cd, "withdraw", nil, [AttachedPayment(cv, cx)]) | |
385 | + | if ((cz == cz)) | |
380 | 386 | then { | |
381 | - | let aQ = | |
387 | + | let aQ = cz | |
382 | 388 | if ($isInstanceOf(aQ, "Int")) | |
383 | 389 | then { | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | [IntegerEntry(ao(ap), | |
390 | + | let cA = aQ | |
391 | + | let co = (cj - cA) | |
392 | + | let cp = ((ck - cx) - cy) | |
393 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp), ScriptTransfer(cs, cy, bp(ci))] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | 396 | } | |
391 | 397 | else throw("Strict value is not equal to itself.") | |
392 | 398 | } | |
393 | 399 | else nil | |
394 | 400 | } | |
395 | 401 | else throw("Strict value is not equal to itself.") | |
396 | 402 | } | |
397 | 403 | else throw("Strict value is not equal to itself.") | |
398 | 404 | } | |
399 | 405 | else throw("Strict value is not equal to itself.") | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
409 | + | func cB (ap) = { | |
404 | 410 | let aQ = invoke(bd, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
405 | 411 | if ($isInstanceOf(aQ, "(Boolean, Int, Int, String, String, Int, String)")) | |
406 | 412 | then { | |
407 | 413 | let aR = aQ | |
408 | 414 | aR | |
409 | 415 | } | |
410 | 416 | else ba((("[" + ap) + "] getLeaseProxyConfig() error")) | |
411 | 417 | } | |
412 | 418 | ||
413 | 419 | ||
414 | - | func | |
415 | - | let | |
416 | - | if (( | |
420 | + | func cC (cD,ap,ci,cE,cd,cr,cs) = { | |
421 | + | let ck = as(ci) | |
422 | + | if ((ck == ck)) | |
417 | 423 | then { | |
418 | - | let ci = as(cg) | |
419 | - | if ((ci == ci)) | |
424 | + | let cj = if ((ck != 0)) | |
425 | + | then ar(ap) | |
426 | + | else 0 | |
427 | + | if ((cj == cj)) | |
420 | 428 | then { | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (( | |
429 | + | let cF = max([0, (bV(ap) - cE)]) | |
430 | + | let cG = fraction(cD, cF, 100) | |
431 | + | let cH = (cj - cG) | |
432 | + | if ((cH == 0)) | |
425 | 433 | then nil | |
426 | - | else if ((0 > | |
434 | + | else if ((0 > cH)) | |
427 | 435 | then { | |
428 | - | let | |
429 | - | | |
436 | + | let cI = -(cH) | |
437 | + | cg(ap, cI, ci, cd) | |
430 | 438 | } | |
431 | 439 | else { | |
432 | - | let | |
433 | - | | |
440 | + | let cJ = cH | |
441 | + | cq(ap, cJ, ci, cd, cr, cs) | |
434 | 442 | } | |
435 | 443 | } | |
436 | 444 | else throw("Strict value is not equal to itself.") | |
437 | 445 | } | |
438 | 446 | else throw("Strict value is not equal to itself.") | |
439 | 447 | } | |
440 | 448 | ||
441 | 449 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | if ( | |
452 | - | then | |
450 | + | func cK (ap) = { | |
451 | + | let cL = cB(ap) | |
452 | + | let cM = cL._1 | |
453 | + | let cN = cL._2 | |
454 | + | let cE = cL._3 | |
455 | + | let cO = cL._4 | |
456 | + | let cP = cL._5 | |
457 | + | let cr = cL._6 | |
458 | + | let cQ = cL._7 | |
459 | + | if (cM) | |
460 | + | then cC(cN, ap, cP, cE, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
453 | 461 | else nil | |
454 | 462 | } | |
455 | 463 | ||
456 | 464 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if ( | |
465 | + | func cR (ap,cS) = { | |
466 | + | let cT = cB(ap) | |
467 | + | let cM = cT._1 | |
468 | + | let cN = cT._2 | |
469 | + | let cE = cT._3 | |
470 | + | let cO = cT._4 | |
471 | + | let cP = cT._5 | |
472 | + | let cr = cT._6 | |
473 | + | let cQ = cT._7 | |
474 | + | if (cM) | |
467 | 475 | then { | |
468 | - | let | |
469 | - | if (( | |
476 | + | let ck = as(cP) | |
477 | + | if ((ck == ck)) | |
470 | 478 | then { | |
471 | - | let cm = fraction(cL, cS, 100) | |
472 | - | if ((cm == cm)) | |
479 | + | let cj = if ((ck != 0)) | |
480 | + | then ar(ap) | |
481 | + | else 0 | |
482 | + | if ((cj == cj)) | |
473 | 483 | then { | |
474 | - | let cT = (ar(ap) - cm) | |
475 | - | if ((cT == cT)) | |
476 | - | then if ((0 > cT)) | |
477 | - | then ce(ap, -(cT), cN, addressFromStringValue(cM)) | |
478 | - | else co(ap, cT, cN, addressFromStringValue(cM), cp, addressFromStringValue(cO)) | |
484 | + | let cU = max([0, ((bV(ap) - cS) - cE)]) | |
485 | + | if ((cU == cU)) | |
486 | + | then { | |
487 | + | let co = fraction(cN, cU, 100) | |
488 | + | if ((co == co)) | |
489 | + | then { | |
490 | + | let cV = (cj - co) | |
491 | + | if ((cV == cV)) | |
492 | + | then if ((cV == 0)) | |
493 | + | then nil | |
494 | + | else if ((0 > cV)) | |
495 | + | then cg(ap, -(cV), cP, addressFromStringValue(cO)) | |
496 | + | else cq(ap, cV, cP, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
497 | + | else throw("Strict value is not equal to itself.") | |
498 | + | } | |
499 | + | else throw("Strict value is not equal to itself.") | |
500 | + | } | |
479 | 501 | else throw("Strict value is not equal to itself.") | |
480 | 502 | } | |
481 | 503 | else throw("Strict value is not equal to itself.") | |
482 | 504 | } | |
483 | 505 | else throw("Strict value is not equal to itself.") | |
484 | 506 | } | |
485 | 507 | else nil | |
486 | 508 | } | |
487 | 509 | ||
488 | 510 | ||
489 | - | func | |
490 | - | let | |
491 | - | let | |
492 | - | ( | |
511 | + | func cW (cX,cY) = { | |
512 | + | let cZ = cR(aW(this, ae()), cX) | |
513 | + | let da = cR(aW(this, af()), cY) | |
514 | + | (cZ ++ da) | |
493 | 515 | } | |
494 | 516 | ||
495 | 517 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | | |
518 | + | func db (dc,dd,de,df) = { | |
519 | + | let dg = D(de, dc) | |
520 | + | let dh = D(df, dd) | |
521 | + | bY(dh, dg) | |
500 | 522 | } | |
501 | 523 | ||
502 | 524 | ||
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | [ | |
525 | + | func di (de,df,dj) = { | |
526 | + | let dk = bm() | |
527 | + | let dl = parseIntValue(dk[t]) | |
528 | + | let dm = parseIntValue(dk[u]) | |
529 | + | let dn = db(dl, dm, de, df) | |
530 | + | let ca = D(de, dl) | |
531 | + | let bZ = D(df, dm) | |
532 | + | let do = D(dj, b) | |
533 | + | let dp = bY(ca, do) | |
534 | + | let dq = bY(bZ, do) | |
535 | + | [dn, dp, dq] | |
514 | 536 | } | |
515 | 537 | ||
516 | 538 | ||
517 | - | func | |
518 | - | let | |
519 | - | [H( | |
539 | + | func dr (de,df,dj) = { | |
540 | + | let ds = di(de, df, dj) | |
541 | + | [H(ds[0], b), H(ds[1], b), H(ds[2], b)] | |
520 | 542 | } | |
521 | 543 | ||
522 | 544 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | if (( | |
545 | + | func dt (du,dv,dw,ab) = { | |
546 | + | let dk = bm() | |
547 | + | let dx = dk[q] | |
548 | + | let dy = dk[r] | |
549 | + | let dz = dk[s] | |
550 | + | let dc = parseIntValue(dk[t]) | |
551 | + | let dd = parseIntValue(dk[u]) | |
552 | + | let dA = dk[p] | |
553 | + | let dB = valueOrErrorMessage(assetInfo(fromBase58String(dx)), (("Asset " + dx) + " doesn't exist")).quantity | |
554 | + | if ((dx != dv)) | |
533 | 555 | then throw("Invalid asset passed.") | |
534 | 556 | else { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
557 | + | let dC = bV(dy) | |
558 | + | let dD = D(dC, dc) | |
559 | + | let dE = bV(dz) | |
560 | + | let dF = D(dE, dd) | |
561 | + | let dG = bY(dF, dD) | |
562 | + | let dH = H(dG, b) | |
563 | + | let dI = D(dw, b) | |
564 | + | let dJ = D(dB, b) | |
565 | + | let dK = fraction(dD, dI, dJ) | |
566 | + | let dL = fraction(dF, dI, dJ) | |
567 | + | let dM = K(dK, dc, FLOOR) | |
568 | + | let dN = K(dL, dd, FLOOR) | |
569 | + | let dO = if ((du == "")) | |
548 | 570 | then nil | |
549 | - | else [ScriptTransfer(ab, | |
571 | + | else [ScriptTransfer(ab, dM, if ((dy == "WAVES")) | |
550 | 572 | then unit | |
551 | - | else fromBase58String( | |
573 | + | else fromBase58String(dy)), ScriptTransfer(ab, dN, if ((dz == "WAVES")) | |
552 | 574 | then unit | |
553 | - | else fromBase58String( | |
554 | - | $Tuple10( | |
575 | + | else fromBase58String(dz)), StringEntry(ad(toString(ab), du), bR(dM, dN, dw, dH, height, lastBlock.timestamp)), IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH)] | |
576 | + | $Tuple10(dM, dN, dy, dz, dC, dE, dB, dG, dA, dO) | |
555 | 577 | } | |
556 | 578 | } | |
557 | 579 | ||
558 | 580 | ||
559 | - | func | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if (if (( | |
581 | + | func dP (du,dQ,dR,dS,dT,dU,ab,dV,dW) = { | |
582 | + | let dk = bm() | |
583 | + | let dx = fromBase58String(dk[q]) | |
584 | + | let dX = dk[r] | |
585 | + | let dY = dk[s] | |
586 | + | let dZ = dk[v] | |
587 | + | let ea = dk[w] | |
588 | + | let dl = parseIntValue(dk[t]) | |
589 | + | let dm = parseIntValue(dk[u]) | |
590 | + | let dA = dk[p] | |
591 | + | let dB = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
592 | + | let eb = toBase58String(valueOrElse(dS, fromBase58String("WAVES"))) | |
593 | + | let ec = toBase58String(valueOrElse(dU, fromBase58String("WAVES"))) | |
594 | + | if (if ((dX != eb)) | |
573 | 595 | then true | |
574 | - | else ( | |
596 | + | else (dY != ec)) | |
575 | 597 | then throw("Invalid amt or price asset passed.") | |
576 | 598 | else { | |
577 | - | let | |
578 | - | then | |
579 | - | else ( | |
580 | - | let | |
581 | - | then | |
582 | - | else ( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
599 | + | let dC = if (dV) | |
600 | + | then bV(dX) | |
601 | + | else (bV(dX) - dR) | |
602 | + | let dE = if (dV) | |
603 | + | then bV(dY) | |
604 | + | else (bV(dY) - dT) | |
605 | + | let ed = D(dR, dl) | |
606 | + | let ee = D(dT, dm) | |
607 | + | let ef = bY(ee, ed) | |
608 | + | let dD = D(dC, dl) | |
609 | + | let dF = D(dE, dm) | |
610 | + | let eg = if ((dB == 0)) | |
589 | 611 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | $Tuple5(H( | |
612 | + | let dG = e | |
613 | + | let eh = e | |
614 | + | let do = pow((ed * ee), 0, toBigInt(5), 1, 0, DOWN) | |
615 | + | $Tuple5(H(do, b), H(ed, dl), H(ee, dm), bY((dF + ee), (dD + ed)), eh) | |
594 | 616 | } | |
595 | 617 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | if (if (( | |
600 | - | then ( | |
618 | + | let dG = bY(dF, dD) | |
619 | + | let eh = fraction(R((dG - ef)), d, dG) | |
620 | + | let ei = D(dQ, b) | |
621 | + | if (if ((dG != e)) | |
622 | + | then (eh > ei) | |
601 | 623 | else false) | |
602 | - | then throw(((("Price slippage " + toString( | |
624 | + | then throw(((("Price slippage " + toString(eh)) + " exceeded the passed limit of ") + toString(ei))) | |
603 | 625 | else { | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | then $Tuple2( | |
609 | - | else $Tuple2( | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple5(K( | |
626 | + | let dJ = D(dB, b) | |
627 | + | let ej = fraction(ed, cb(dF, dD, CEILING), d, CEILING) | |
628 | + | let ek = fraction(ee, d, cb(dF, dD, FLOOR), CEILING) | |
629 | + | let el = if ((ej > ee)) | |
630 | + | then $Tuple2(ek, ee) | |
631 | + | else $Tuple2(ed, ej) | |
632 | + | let em = el._1 | |
633 | + | let en = el._2 | |
634 | + | let do = fraction(dJ, en, dF, FLOOR) | |
635 | + | $Tuple5(K(do, b, FLOOR), K(em, dl, CEILING), K(en, dm, CEILING), dG, eh) | |
614 | 636 | } | |
615 | 637 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if ((0 >= | |
638 | + | let eo = eg._1 | |
639 | + | let ep = eg._2 | |
640 | + | let eq = eg._3 | |
641 | + | let dH = H(eg._4, b) | |
642 | + | let er = H(eg._5, b) | |
643 | + | if ((0 >= eo)) | |
622 | 644 | then throw("Invalid calculations. LP calculated is less than zero.") | |
623 | 645 | else { | |
624 | - | let | |
646 | + | let es = if (!(dW)) | |
625 | 647 | then 0 | |
626 | - | else | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple13( | |
648 | + | else eo | |
649 | + | let et = (dR - ep) | |
650 | + | let eu = (dT - eq) | |
651 | + | let ev = [IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH), StringEntry(aa(ab, du), bG(ep, eq, es, dH, dQ, er, height, lastBlock.timestamp, et, eu))] | |
652 | + | $Tuple13(eo, es, dH, dC, dE, dB, dx, dA, ev, et, eu, dS, dU) | |
631 | 653 | } | |
632 | 654 | } | |
633 | 655 | } | |
634 | 656 | ||
635 | 657 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | if (( | |
658 | + | func ew (ex,ey,dB) = { | |
659 | + | let ez = G(ex, toBigInt(bB)) | |
660 | + | let eA = G(ey, toBigInt(bC)) | |
661 | + | let eB = fraction(pow((ez * eA), 0, toBigInt(5), 1, 18, DOWN), g, dB) | |
662 | + | if ((dB == f)) | |
641 | 663 | then f | |
642 | - | else | |
664 | + | else eB | |
643 | 665 | } | |
644 | 666 | ||
645 | 667 | ||
646 | - | func | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | | |
668 | + | func eC (eD,eE,eF) = { | |
669 | + | let eG = (toBigInt(bV(br(bz))) - eD) | |
670 | + | let eH = (toBigInt(bV(br(bA))) - eE) | |
671 | + | let eI = (toBigInt(value(assetInfo(by)).quantity) - eF) | |
672 | + | let eJ = ew(eG, eH, eI) | |
673 | + | eJ | |
652 | 674 | } | |
653 | 675 | ||
654 | 676 | ||
655 | - | func | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | $Tuple2( | |
677 | + | func eK (eL,eM,eF) = { | |
678 | + | let eG = (bV(br(bz)) + eL) | |
679 | + | let eH = (bV(br(bA)) + eM) | |
680 | + | let eI = (value(assetInfo(by)).quantity + eF) | |
681 | + | let eB = ew(toBigInt(eG), toBigInt(eH), toBigInt(eI)) | |
682 | + | let eN = [IntegerEntry(ak, height), StringEntry(aj, toString(eB))] | |
683 | + | $Tuple2(eN, eB) | |
662 | 684 | } | |
663 | 685 | ||
664 | 686 | ||
665 | - | func | |
687 | + | func eO () = valueOrElse(getBoolean(bd, aH(toString(this))), false) | |
666 | 688 | ||
667 | 689 | ||
668 | - | func | |
690 | + | func eP (eQ,eB) = if ((eB >= eQ)) | |
669 | 691 | then true | |
670 | - | else ba(makeString(["updated KLp lower than current KLp", toString( | |
692 | + | else ba(makeString(["updated KLp lower than current KLp", toString(eQ), toString(eB)], " ")) | |
671 | 693 | ||
672 | 694 | ||
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | then $Tuple2( | |
680 | - | else $Tuple2(-( | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (if ( | |
695 | + | func eR (eS) = { | |
696 | + | let eG = bV(br(bz)) | |
697 | + | let eH = bV(br(bA)) | |
698 | + | let eT = eS.amount | |
699 | + | let eU = fraction(eS.amount, eS.price, b, FLOOR) | |
700 | + | let eV = if ((eS.orderType == Buy)) | |
701 | + | then $Tuple2(eT, -(eU)) | |
702 | + | else $Tuple2(-(eT), eU) | |
703 | + | let eL = eV._1 | |
704 | + | let eM = eV._2 | |
705 | + | if (if (if (bk()) | |
684 | 706 | then true | |
685 | - | else ( | |
707 | + | else (bx == m)) | |
686 | 708 | then true | |
687 | - | else ( | |
709 | + | else (bx == n)) | |
688 | 710 | then throw("Exchange operations disabled") | |
689 | - | else if (if (( | |
711 | + | else if (if ((eS.assetPair.amountAsset != bz)) | |
690 | 712 | then true | |
691 | - | else ( | |
713 | + | else (eS.assetPair.priceAsset != bA)) | |
692 | 714 | then throw("Wrong order assets.") | |
693 | 715 | else { | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | $Tuple2( | |
716 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
717 | + | let eX = eK(eL, eM, 0) | |
718 | + | let eY = eX._1 | |
719 | + | let eZ = eX._2 | |
720 | + | let fa = (eZ >= eW) | |
721 | + | let fb = makeString(["kLp=", toString(eW), " kLpNew=", toString(eZ), " amountAssetBalance=", toString(eG), " priceAssetBalance=", toString(eH), " amountAssetBalanceDelta=", toString(eL), " priceAssetBalanceDelta=", toString(eM), " height=", toString(height)], "") | |
722 | + | $Tuple2(fa, fb) | |
701 | 723 | } | |
702 | 724 | } | |
703 | 725 | ||
704 | 726 | ||
705 | - | func | |
727 | + | func fc (fd) = if ((size(fd.payments) != 1)) | |
706 | 728 | then throw("exactly 1 payment is expected") | |
707 | 729 | else { | |
708 | - | let fc = value(fb.payments[0]) | |
709 | - | let dt = value(fc.assetId) | |
710 | - | let fd = fc.amount | |
711 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dt), fd, fb.caller) | |
712 | - | let dK = ee._1 | |
713 | - | let dL = ee._2 | |
714 | - | let dy = parseIntValue(ee._9) | |
715 | - | let dM = ee._10 | |
716 | - | if (if (bi()) | |
717 | - | then true | |
718 | - | else (dy == n)) | |
719 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
720 | - | else $Tuple5(dK, dL, fd, dt, dM) | |
730 | + | let fe = value(fd.payments[0]) | |
731 | + | let dv = value(fe.assetId) | |
732 | + | let ff = fe.amount | |
733 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dv), ff, fd.caller) | |
734 | + | let dM = eg._1 | |
735 | + | let dN = eg._2 | |
736 | + | let dO = eg._10 | |
737 | + | let fg = if (!(bj(fd.caller))) | |
738 | + | then if (bk()) | |
739 | + | then true | |
740 | + | else (bx == n) | |
741 | + | else false | |
742 | + | if (fg) | |
743 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bx))) | |
744 | + | else $Tuple5(dM, dN, ff, dv, dO) | |
721 | 745 | } | |
722 | 746 | ||
723 | 747 | ||
724 | - | func | |
748 | + | func fh (fd,dQ,dW) = if ((size(fd.payments) != 2)) | |
725 | 749 | then throw("exactly 2 payments are expected") | |
726 | 750 | else { | |
727 | - | let ff = value(fb.payments[0]) | |
728 | - | let fg = value(fb.payments[1]) | |
729 | - | let fh = dN(toBase58String(fb.transactionId), dO, ff.amount, ff.assetId, fg.amount, fg.assetId, toString(fb.caller), false, dU) | |
730 | - | let dy = parseIntValue(fh._8) | |
731 | - | if (if (if (bi()) | |
732 | - | then true | |
733 | - | else (dy == l)) | |
734 | - | then true | |
735 | - | else (dy == n)) | |
736 | - | then throw(("Put operation is blocked by admin. Status = " + toString(dy))) | |
737 | - | else fh | |
751 | + | let fi = value(fd.payments[0]) | |
752 | + | let fj = value(fd.payments[1]) | |
753 | + | let fk = dP(toBase58String(fd.transactionId), dQ, fi.amount, fi.assetId, fj.amount, fj.assetId, toString(fd.caller), false, dW) | |
754 | + | let fl = if (!(bj(fd.caller))) | |
755 | + | then if (if (bk()) | |
756 | + | then true | |
757 | + | else (bx == l)) | |
758 | + | then true | |
759 | + | else (bx == n) | |
760 | + | else false | |
761 | + | if (fl) | |
762 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bx))) | |
763 | + | else fk | |
738 | 764 | } | |
739 | 765 | ||
740 | 766 | ||
741 | - | func | |
742 | - | let | |
743 | - | if (( | |
767 | + | func fm (ch) = { | |
768 | + | let fn = invoke(bd, "emit", [ch], nil) | |
769 | + | if ((fn == fn)) | |
744 | 770 | then { | |
745 | - | let | |
746 | - | let aQ = | |
771 | + | let fo = { | |
772 | + | let aQ = fn | |
747 | 773 | if ($isInstanceOf(aQ, "Address")) | |
748 | 774 | then { | |
749 | - | let | |
750 | - | invoke( | |
775 | + | let fp = aQ | |
776 | + | invoke(fp, "emit", [ch], nil) | |
751 | 777 | } | |
752 | 778 | else unit | |
753 | 779 | } | |
754 | - | if (( | |
755 | - | then | |
780 | + | if ((fo == fo)) | |
781 | + | then ch | |
756 | 782 | else throw("Strict value is not equal to itself.") | |
757 | 783 | } | |
758 | 784 | else throw("Strict value is not equal to itself.") | |
759 | 785 | } | |
760 | 786 | ||
761 | 787 | ||
762 | - | func | |
763 | - | let | |
788 | + | func fq (ch,ai) = { | |
789 | + | let fr = if ((ai == 0)) | |
764 | 790 | then 0 | |
765 | - | else fraction( | |
766 | - | $Tuple2(( | |
791 | + | else fraction(ch, ai, b) | |
792 | + | $Tuple2((ch - fr), fr) | |
767 | 793 | } | |
768 | 794 | ||
769 | 795 | ||
770 | - | func | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
796 | + | func fs (ft,fu,ab,ac) = { | |
797 | + | let fv = (ac == unit) | |
798 | + | let fw = bV(br(bz)) | |
799 | + | let fx = bV(br(bA)) | |
800 | + | let fy = if ((fu == bz)) | |
775 | 801 | then true | |
776 | - | else if (( | |
802 | + | else if ((fu == bA)) | |
777 | 803 | then false | |
778 | 804 | else ba("invalid asset") | |
779 | - | let | |
780 | - | then $Tuple2( | |
781 | - | else if ( | |
782 | - | then $Tuple2(( | |
783 | - | else $Tuple2( | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | then $Tuple2( | |
788 | - | else $Tuple2(0, | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then | |
802 | - | else | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
805 | + | let fz = if (fv) | |
806 | + | then $Tuple2(fw, fx) | |
807 | + | else if (fy) | |
808 | + | then $Tuple2((fw - ft), fx) | |
809 | + | else $Tuple2(fw, (fx - ft)) | |
810 | + | let fA = fz._1 | |
811 | + | let fB = fz._2 | |
812 | + | let fC = if (fy) | |
813 | + | then $Tuple2(ft, 0) | |
814 | + | else $Tuple2(0, ft) | |
815 | + | let fD = fC._1 | |
816 | + | let fE = fC._2 | |
817 | + | let eT = fq(fD, bf)._1 | |
818 | + | let eU = fq(fE, bf)._1 | |
819 | + | let fF = fq(ft, bf) | |
820 | + | let fG = fF._1 | |
821 | + | let fr = fF._2 | |
822 | + | let fH = (fA + eT) | |
823 | + | let fI = (fB + eU) | |
824 | + | let fJ = bY(D(fI, bC), D(fH, bB)) | |
825 | + | let fK = H(fJ, b) | |
826 | + | let fL = if (fy) | |
827 | + | then fA | |
828 | + | else fB | |
829 | + | let fM = toBigInt(fL) | |
830 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
831 | + | let fO = if ((fN > f)) | |
806 | 832 | then true | |
807 | 833 | else ba("initial deposit requires all coins") | |
808 | - | if (( | |
834 | + | if ((fO == fO)) | |
809 | 835 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
836 | + | let fP = toBigInt(fG) | |
837 | + | let fQ = max([0, toInt(((fN * (sqrtBigInt((d + ((fP * d) / fM)), 18, 18, DOWN) - d)) / d))]) | |
838 | + | let ev = if (fv) | |
813 | 839 | then nil | |
814 | - | else [IntegerEntry(W(), | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | then $Tuple2( | |
820 | - | else $Tuple2( | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | fraction(( | |
840 | + | else [IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bG(fD, fE, fQ, fK, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
841 | + | let fR = bY(D(fB, bC), D(fA, bB)) | |
842 | + | let fS = H(fR, b) | |
843 | + | let fT = { | |
844 | + | let fU = if (fy) | |
845 | + | then $Tuple2(fD, fA) | |
846 | + | else $Tuple2(fE, fB) | |
847 | + | let ch = fU._1 | |
848 | + | let fV = fU._2 | |
849 | + | let fW = toInt(fraction(fN, toBigInt((ch / 2)), toBigInt(fV))) | |
850 | + | fraction((fQ - fW), b, fW) | |
825 | 851 | } | |
826 | - | $Tuple5( | |
852 | + | $Tuple5(fQ, ev, fr, fT, fy) | |
827 | 853 | } | |
828 | 854 | else throw("Strict value is not equal to itself.") | |
829 | 855 | } | |
830 | 856 | ||
831 | 857 | ||
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
858 | + | func fX (fY,fG,fu,ab,ac) = { | |
859 | + | let fv = (ac == unit) | |
860 | + | let dk = bm() | |
861 | + | let dl = parseIntValue(dk[t]) | |
862 | + | let dm = parseIntValue(dk[u]) | |
863 | + | let fZ = [if ((fu == by)) | |
838 | 864 | then true | |
839 | 865 | else ba("invalid lp asset")] | |
840 | - | if (( | |
866 | + | if ((fZ == fZ)) | |
841 | 867 | then { | |
842 | - | let | |
868 | + | let ga = if ((fY == bz)) | |
843 | 869 | then true | |
844 | - | else if (( | |
870 | + | else if ((fY == bA)) | |
845 | 871 | then false | |
846 | 872 | else ba("invalid asset") | |
847 | - | let | |
848 | - | then toBigInt( | |
849 | - | else toBigInt( | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then | |
857 | - | else | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | then $Tuple4( | |
867 | - | else $Tuple4(0, | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
873 | + | let gb = if (ga) | |
874 | + | then toBigInt(bV(br(bz))) | |
875 | + | else toBigInt(bV(br(bA))) | |
876 | + | let gc = if (ga) | |
877 | + | then dl | |
878 | + | else dm | |
879 | + | let gd = bV(br(bz)) | |
880 | + | let ge = bV(br(bA)) | |
881 | + | let gf = if (ga) | |
882 | + | then gd | |
883 | + | else ge | |
884 | + | let gg = toBigInt(gf) | |
885 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
886 | + | let gh = toBigInt(fG) | |
887 | + | let gi = max([0, toInt(((gb * (d - pow((d - ((gh * d) / fN)), 18, h, 0, 18, DOWN))) / d))]) | |
888 | + | let gj = fq(gi, bh) | |
889 | + | let gk = gj._1 | |
890 | + | let fr = gj._2 | |
891 | + | let gl = if (ga) | |
892 | + | then $Tuple4(gk, 0, (gd - gi), ge) | |
893 | + | else $Tuple4(0, gk, gd, (ge - gi)) | |
894 | + | let gm = gl._1 | |
895 | + | let gn = gl._2 | |
896 | + | let go = gl._3 | |
897 | + | let gp = gl._4 | |
898 | + | let fJ = bY(D(gp, bC), D(go, bB)) | |
899 | + | let fK = H(fJ, b) | |
900 | + | let ev = if (fv) | |
875 | 901 | then nil | |
876 | - | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | fraction(( | |
902 | + | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bR(gm, gn, fG, fK, height, lastBlock.timestamp)), IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK)] | |
903 | + | let fR = bY(D(ge, bC), D(gd, bB)) | |
904 | + | let fS = H(fR, b) | |
905 | + | let fT = { | |
906 | + | let gq = (toInt(fraction(gb, gh, fN)) * 2) | |
907 | + | fraction((gk - gq), b, gq) | |
882 | 908 | } | |
883 | - | $Tuple5( | |
909 | + | $Tuple5(gk, ev, fr, fT, ga) | |
884 | 910 | } | |
885 | 911 | else throw("Strict value is not equal to itself.") | |
886 | 912 | } | |
887 | 913 | ||
888 | 914 | ||
889 | - | func | |
890 | - | let | |
891 | - | let aQ = getString( | |
915 | + | func gr () = { | |
916 | + | let gs = aS() | |
917 | + | let aQ = getString(gs, U()) | |
892 | 918 | if ($isInstanceOf(aQ, "String")) | |
893 | 919 | then { | |
894 | 920 | let aV = aQ | |
895 | 921 | fromBase58String(aV) | |
896 | 922 | } | |
897 | 923 | else if ($isInstanceOf(aQ, "Unit")) | |
898 | 924 | then unit | |
899 | 925 | else throw("Match error") | |
900 | 926 | } | |
901 | 927 | ||
902 | 928 | ||
903 | - | func | |
904 | - | let aQ = | |
929 | + | func gt (fd) = { | |
930 | + | let aQ = gr() | |
905 | 931 | if ($isInstanceOf(aQ, "ByteVector")) | |
906 | 932 | then { | |
907 | - | let | |
908 | - | ( | |
933 | + | let gu = aQ | |
934 | + | (fd.callerPublicKey == gu) | |
909 | 935 | } | |
910 | 936 | else if ($isInstanceOf(aQ, "Unit")) | |
911 | - | then ( | |
937 | + | then (fd.caller == this) | |
912 | 938 | else throw("Match error") | |
913 | 939 | } | |
914 | 940 | ||
915 | 941 | ||
916 | - | func | |
917 | - | let | |
918 | - | let aQ = | |
942 | + | func gv (fd) = { | |
943 | + | let gw = throw("Permission denied") | |
944 | + | let aQ = gr() | |
919 | 945 | if ($isInstanceOf(aQ, "ByteVector")) | |
920 | 946 | then { | |
921 | - | let | |
922 | - | if (( | |
947 | + | let gu = aQ | |
948 | + | if ((fd.callerPublicKey == gu)) | |
923 | 949 | then true | |
924 | - | else | |
950 | + | else gw | |
925 | 951 | } | |
926 | 952 | else if ($isInstanceOf(aQ, "Unit")) | |
927 | - | then if (( | |
953 | + | then if ((fd.caller == this)) | |
928 | 954 | then true | |
929 | - | else | |
955 | + | else gw | |
930 | 956 | else throw("Match error") | |
931 | 957 | } | |
932 | 958 | ||
933 | 959 | ||
934 | - | @Callable( | |
935 | - | func rebalance () = ( | |
960 | + | @Callable(fd) | |
961 | + | func rebalance () = (cK(aW(this, ae())) ++ cK(aW(this, af()))) | |
936 | 962 | ||
937 | 963 | ||
938 | 964 | ||
939 | - | @Callable( | |
940 | - | func calculateAmountOutForSwapREADONLY ( | |
941 | - | let | |
965 | + | @Callable(fd) | |
966 | + | func calculateAmountOutForSwapREADONLY (gx,gy,gz) = { | |
967 | + | let gA = if ((gy == false)) | |
942 | 968 | then { | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2( | |
969 | + | let gB = aW(this, af()) | |
970 | + | let gC = aW(this, ae()) | |
971 | + | $Tuple2(gB, gC) | |
946 | 972 | } | |
947 | 973 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | $Tuple2( | |
974 | + | let gB = aW(this, ae()) | |
975 | + | let gC = aW(this, af()) | |
976 | + | $Tuple2(gB, gC) | |
951 | 977 | } | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
978 | + | let gB = gA._1 | |
979 | + | let gC = gA._2 | |
980 | + | let gD = bV(gC) | |
981 | + | let gE = bV(gB) | |
982 | + | let gF = fraction(gE, gx, (gD + gx)) | |
983 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
984 | + | let gH = (((toBigInt(bV(gC)) + toBigInt(gx)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
985 | + | let gI = if ((gH >= gG)) | |
960 | 986 | then true | |
961 | 987 | else throw("new K is fewer error") | |
962 | - | if (( | |
963 | - | then $Tuple2(nil, | |
988 | + | if ((gI == gI)) | |
989 | + | then $Tuple2(nil, gF) | |
964 | 990 | else throw("Strict value is not equal to itself.") | |
965 | 991 | } | |
966 | 992 | ||
967 | 993 | ||
968 | 994 | ||
969 | - | @Callable( | |
970 | - | func calculateAmountOutForSwapAndSendTokens ( | |
971 | - | let | |
995 | + | @Callable(fd) | |
996 | + | func calculateAmountOutForSwapAndSendTokens (gx,gy,gJ,gK,gz) = { | |
997 | + | let gL = { | |
972 | 998 | let bg = invoke(bd, "getSwapContractREADONLY", nil, nil) | |
973 | 999 | if ($isInstanceOf(bg, "String")) | |
974 | 1000 | then bg | |
975 | 1001 | else throw(($getType(bg) + " couldn't be cast to String")) | |
976 | 1002 | } | |
977 | - | let fV = [if ((value(fb.payments[0]).amount >= gt)) | |
1003 | + | let gM = { | |
1004 | + | let bg = invoke(bd, "isPoolSwapDisabledREADONLY", [toString(this)], nil) | |
1005 | + | if ($isInstanceOf(bg, "Boolean")) | |
1006 | + | then bg | |
1007 | + | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1008 | + | } | |
1009 | + | let gN = if (!(bj(fd.caller))) | |
1010 | + | then if (if (bk()) | |
1011 | + | then true | |
1012 | + | else (bx == n)) | |
1013 | + | then true | |
1014 | + | else gM | |
1015 | + | else false | |
1016 | + | let fZ = [if (if (!(gN)) | |
978 | 1017 | then true | |
979 | - | else ba("Wrong amount"), if ((fb.caller == addressFromStringValue(gH))) | |
1018 | + | else gt(fd)) | |
1019 | + | then true | |
1020 | + | else ba("swap operation is blocked by admin"), if ((value(fd.payments[0]).amount >= gx)) | |
1021 | + | then true | |
1022 | + | else ba("Wrong amount"), if ((fd.caller == addressFromStringValue(gL))) | |
980 | 1023 | then true | |
981 | 1024 | else ba("Permission denied")] | |
982 | - | if (( | |
1025 | + | if ((fZ == fZ)) | |
983 | 1026 | then { | |
984 | - | let | |
985 | - | let | |
986 | - | let | |
1027 | + | let fe = value(fd.payments[0]) | |
1028 | + | let gC = br(fe.assetId) | |
1029 | + | let gB = if ((gy == false)) | |
987 | 1030 | then aW(this, af()) | |
988 | 1031 | else aW(this, ae()) | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
993 | - | let | |
994 | - | let | |
1032 | + | let gD = ((bV(gC) - value(fd.payments[0]).amount) - gz) | |
1033 | + | let gE = bV(gB) | |
1034 | + | let gF = fraction(gE, gx, (gD + gx)) | |
1035 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
1036 | + | let gH = ((toBigInt(bV(gC)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
1037 | + | let gI = if ((gH >= gG)) | |
995 | 1038 | then true | |
996 | 1039 | else throw("new K is fewer error") | |
997 | - | if (( | |
1040 | + | if ((gI == gI)) | |
998 | 1041 | then { | |
999 | - | let | |
1042 | + | let gO = if ((gF >= gJ)) | |
1000 | 1043 | then true | |
1001 | 1044 | else throw("Exchange result is fewer coins than expected") | |
1002 | - | if (( | |
1045 | + | if ((gO == gO)) | |
1003 | 1046 | then { | |
1004 | - | let gJ = cI(gy) | |
1005 | - | if ((gJ == gJ)) | |
1047 | + | let eL = if (gy) | |
1048 | + | then -(gF) | |
1049 | + | else gz | |
1050 | + | let eM = if (gy) | |
1051 | + | then gz | |
1052 | + | else -(gF) | |
1053 | + | let gP = eK(eL, eM, 0)._1 | |
1054 | + | if ((gP == gP)) | |
1006 | 1055 | then { | |
1007 | - | let gK = cP(gx, gB) | |
1008 | - | if ((gK == gK)) | |
1009 | - | then $Tuple2(((gK ++ gJ) ++ [ScriptTransfer(addressFromStringValue(gG), gB, bn(gx))]), gB) | |
1056 | + | let gQ = cK(gC) | |
1057 | + | if ((gQ == gQ)) | |
1058 | + | then { | |
1059 | + | let gR = cR(gB, gF) | |
1060 | + | if ((gR == gR)) | |
1061 | + | then $Tuple2(((gR ++ gQ) ++ [ScriptTransfer(addressFromStringValue(gK), gF, bp(gB))]), gF) | |
1062 | + | else throw("Strict value is not equal to itself.") | |
1063 | + | } | |
1010 | 1064 | else throw("Strict value is not equal to itself.") | |
1011 | 1065 | } | |
1012 | 1066 | else throw("Strict value is not equal to itself.") | |
1013 | 1067 | } | |
1014 | 1068 | else throw("Strict value is not equal to itself.") | |
1015 | 1069 | } | |
1016 | 1070 | else throw("Strict value is not equal to itself.") | |
1017 | 1071 | } | |
1018 | 1072 | else throw("Strict value is not equal to itself.") | |
1019 | 1073 | } | |
1020 | 1074 | ||
1021 | 1075 | ||
1022 | 1076 | ||
1023 | - | @Callable( | |
1024 | - | func put ( | |
1077 | + | @Callable(fd) | |
1078 | + | func put (dQ,gS) = if ((0 > dQ)) | |
1025 | 1079 | then throw("Invalid slippageTolerance passed") | |
1026 | 1080 | else { | |
1027 | - | let | |
1028 | - | let | |
1029 | - | let | |
1030 | - | let | |
1031 | - | let | |
1032 | - | let | |
1033 | - | let | |
1034 | - | let | |
1035 | - | let | |
1036 | - | let | |
1037 | - | let | |
1038 | - | if (( | |
1081 | + | let fk = fh(fd, dQ, true) | |
1082 | + | let es = fk._2 | |
1083 | + | let dx = fk._7 | |
1084 | + | let dO = fk._9 | |
1085 | + | let et = fk._10 | |
1086 | + | let eu = fk._11 | |
1087 | + | let gT = fk._12 | |
1088 | + | let gU = fk._13 | |
1089 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1090 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1091 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1092 | + | if ((eJ == eJ)) | |
1039 | 1093 | then { | |
1040 | - | let | |
1041 | - | if (( | |
1094 | + | let fn = invoke(bd, "emit", [es], nil) | |
1095 | + | if ((fn == fn)) | |
1042 | 1096 | then { | |
1043 | - | let | |
1044 | - | let aQ = | |
1097 | + | let fo = { | |
1098 | + | let aQ = fn | |
1045 | 1099 | if ($isInstanceOf(aQ, "Address")) | |
1046 | 1100 | then { | |
1047 | - | let | |
1048 | - | invoke( | |
1101 | + | let fp = aQ | |
1102 | + | invoke(fp, "emit", [es], nil) | |
1049 | 1103 | } | |
1050 | 1104 | else unit | |
1051 | 1105 | } | |
1052 | - | if (( | |
1106 | + | if ((fo == fo)) | |
1053 | 1107 | then { | |
1054 | - | let | |
1055 | - | then invoke( | |
1108 | + | let gV = if ((et > 0)) | |
1109 | + | then invoke(bF, "put", nil, [AttachedPayment(gT, et)]) | |
1056 | 1110 | else nil | |
1057 | - | if (( | |
1111 | + | if ((gV == gV)) | |
1058 | 1112 | then { | |
1059 | - | let | |
1060 | - | then invoke( | |
1113 | + | let gW = if ((eu > 0)) | |
1114 | + | then invoke(bF, "put", nil, [AttachedPayment(gU, eu)]) | |
1061 | 1115 | else nil | |
1062 | - | if (( | |
1116 | + | if ((gW == gW)) | |
1063 | 1117 | then { | |
1064 | - | let | |
1118 | + | let gX = if (gS) | |
1065 | 1119 | then { | |
1066 | - | let | |
1067 | - | if (( | |
1120 | + | let gY = invoke(bE, "stake", nil, [AttachedPayment(dx, es)]) | |
1121 | + | if ((gY == gY)) | |
1068 | 1122 | then nil | |
1069 | 1123 | else throw("Strict value is not equal to itself.") | |
1070 | 1124 | } | |
1071 | - | else [ScriptTransfer( | |
1072 | - | let | |
1073 | - | if (( | |
1125 | + | else [ScriptTransfer(fd.caller, es, dx)] | |
1126 | + | let gZ = eK(0, 0, 0) | |
1127 | + | if ((gZ == gZ)) | |
1074 | 1128 | then { | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | if (( | |
1129 | + | let eB = gZ._2 | |
1130 | + | let gP = gZ._1 | |
1131 | + | let ha = eP(eJ, eB) | |
1132 | + | if ((ha == ha)) | |
1079 | 1133 | then { | |
1080 | - | let | |
1081 | - | if (( | |
1082 | - | then (( | |
1134 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1135 | + | if ((hb == hb)) | |
1136 | + | then ((dO ++ gX) ++ gP) | |
1083 | 1137 | else throw("Strict value is not equal to itself.") | |
1084 | 1138 | } | |
1085 | 1139 | else throw("Strict value is not equal to itself.") | |
1086 | 1140 | } | |
1087 | 1141 | else throw("Strict value is not equal to itself.") | |
1088 | 1142 | } | |
1089 | 1143 | else throw("Strict value is not equal to itself.") | |
1090 | 1144 | } | |
1091 | 1145 | else throw("Strict value is not equal to itself.") | |
1092 | 1146 | } | |
1093 | 1147 | else throw("Strict value is not equal to itself.") | |
1094 | 1148 | } | |
1095 | 1149 | else throw("Strict value is not equal to itself.") | |
1096 | 1150 | } | |
1097 | 1151 | else throw("Strict value is not equal to itself.") | |
1098 | 1152 | } | |
1099 | 1153 | ||
1100 | 1154 | ||
1101 | 1155 | ||
1102 | - | @Callable( | |
1103 | - | func putForFree ( | |
1156 | + | @Callable(fd) | |
1157 | + | func putForFree (hc) = if ((0 > hc)) | |
1104 | 1158 | then throw("Invalid value passed") | |
1105 | 1159 | else { | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | let | |
1110 | - | let | |
1111 | - | if (( | |
1160 | + | let fk = fh(fd, hc, false) | |
1161 | + | let dO = fk._9 | |
1162 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1163 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1164 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1165 | + | if ((eJ == eJ)) | |
1112 | 1166 | then { | |
1113 | - | let | |
1114 | - | let | |
1115 | - | let | |
1116 | - | let | |
1117 | - | if (( | |
1118 | - | then ( | |
1167 | + | let hd = eK(0, 0, 0) | |
1168 | + | let gP = hd._1 | |
1169 | + | let eB = hd._2 | |
1170 | + | let ha = eP(eJ, eB) | |
1171 | + | if ((ha == ha)) | |
1172 | + | then (dO ++ gP) | |
1119 | 1173 | else throw("Strict value is not equal to itself.") | |
1120 | 1174 | } | |
1121 | 1175 | else throw("Strict value is not equal to itself.") | |
1122 | 1176 | } | |
1123 | 1177 | ||
1124 | 1178 | ||
1125 | 1179 | ||
1126 | - | @Callable( | |
1127 | - | func putOneTkn ( | |
1128 | - | let | |
1180 | + | @Callable(fd) | |
1181 | + | func putOneTkn (he,hf) = { | |
1182 | + | let hg = { | |
1129 | 1183 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1130 | 1184 | if ($isInstanceOf(bg, "Boolean")) | |
1131 | 1185 | then bg | |
1132 | 1186 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1133 | 1187 | } | |
1134 | - | let hb = if (if (if (bi()) | |
1188 | + | let fl = if (!(bj(fd.caller))) | |
1189 | + | then if (if (if (bk()) | |
1190 | + | then true | |
1191 | + | else (bx == l)) | |
1192 | + | then true | |
1193 | + | else (bx == n)) | |
1194 | + | then true | |
1195 | + | else hg | |
1196 | + | else false | |
1197 | + | let fZ = [if (if (!(fl)) | |
1135 | 1198 | then true | |
1136 | - | else ( | |
1199 | + | else gt(fd)) | |
1137 | 1200 | then true | |
1138 | - | else (bv == n)) | |
1139 | - | then true | |
1140 | - | else ha | |
1141 | - | let fV = [if (if (!(hb)) | |
1142 | - | then true | |
1143 | - | else gp(fb)) | |
1144 | - | then true | |
1145 | - | else ba("put operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1201 | + | else ba("put operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1146 | 1202 | then true | |
1147 | 1203 | else ba("exactly 1 payment are expected")] | |
1148 | - | if (( | |
1204 | + | if ((fZ == fZ)) | |
1149 | 1205 | then { | |
1150 | - | let | |
1151 | - | let | |
1152 | - | let | |
1153 | - | let | |
1154 | - | then | |
1155 | - | else if (( | |
1156 | - | then | |
1206 | + | let hh = fd.payments[0] | |
1207 | + | let fu = hh.assetId | |
1208 | + | let ft = hh.amount | |
1209 | + | let eJ = if ((fu == bz)) | |
1210 | + | then eC(toBigInt(ft), toBigInt(0), toBigInt(0)) | |
1211 | + | else if ((fu == bA)) | |
1212 | + | then eC(toBigInt(0), toBigInt(ft), toBigInt(0)) | |
1157 | 1213 | else ba("payment asset is not supported") | |
1158 | - | if (( | |
1214 | + | if ((eJ == eJ)) | |
1159 | 1215 | then { | |
1160 | - | let ab = | |
1161 | - | let ac = | |
1162 | - | let | |
1163 | - | if (( | |
1216 | + | let ab = fd.caller | |
1217 | + | let ac = fd.transactionId | |
1218 | + | let hi = fs(ft, fu, ab, ac) | |
1219 | + | if ((hi == hi)) | |
1164 | 1220 | then { | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | then ( | |
1221 | + | let fy = hi._5 | |
1222 | + | let hj = hi._4 | |
1223 | + | let fr = hi._3 | |
1224 | + | let ev = hi._2 | |
1225 | + | let hk = hi._1 | |
1226 | + | let hl = if (if ((he > 0)) | |
1227 | + | then (he > hk) | |
1172 | 1228 | else false) | |
1173 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1174 | - | else | |
1175 | - | let | |
1176 | - | if (( | |
1229 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1230 | + | else hk | |
1231 | + | let fn = fm(hl) | |
1232 | + | if ((fn == fn)) | |
1177 | 1233 | then { | |
1178 | - | let | |
1234 | + | let gX = if (hf) | |
1179 | 1235 | then { | |
1180 | - | let | |
1181 | - | if (( | |
1236 | + | let hm = invoke(bE, "stake", nil, [AttachedPayment(by, hl)]) | |
1237 | + | if ((hm == hm)) | |
1182 | 1238 | then nil | |
1183 | 1239 | else throw("Strict value is not equal to itself.") | |
1184 | 1240 | } | |
1185 | - | else [ScriptTransfer( | |
1186 | - | let | |
1187 | - | then [ScriptTransfer(be, | |
1241 | + | else [ScriptTransfer(fd.caller, hl, by)] | |
1242 | + | let hn = if ((fr > 0)) | |
1243 | + | then [ScriptTransfer(be, fr, fu)] | |
1188 | 1244 | else nil | |
1189 | - | let | |
1245 | + | let ho = if ((this == be)) | |
1190 | 1246 | then $Tuple2(0, 0) | |
1191 | - | else if ( | |
1192 | - | then $Tuple2(-( | |
1193 | - | else $Tuple2(0, -( | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | if (( | |
1247 | + | else if (fy) | |
1248 | + | then $Tuple2(-(fr), 0) | |
1249 | + | else $Tuple2(0, -(fr)) | |
1250 | + | let eL = ho._1 | |
1251 | + | let eM = ho._2 | |
1252 | + | let hp = eK(eL, eM, 0) | |
1253 | + | let gP = hp._1 | |
1254 | + | let eB = hp._2 | |
1255 | + | let eW = value(getString(aj)) | |
1256 | + | let ha = eP(eJ, eB) | |
1257 | + | if ((ha == ha)) | |
1202 | 1258 | then { | |
1203 | - | let | |
1204 | - | if (( | |
1205 | - | then $Tuple2(((( | |
1259 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1260 | + | if ((hb == hb)) | |
1261 | + | then $Tuple2((((ev ++ gX) ++ hn) ++ gP), hl) | |
1206 | 1262 | else throw("Strict value is not equal to itself.") | |
1207 | 1263 | } | |
1208 | 1264 | else throw("Strict value is not equal to itself.") | |
1209 | 1265 | } | |
1210 | 1266 | else throw("Strict value is not equal to itself.") | |
1211 | 1267 | } | |
1212 | 1268 | else throw("Strict value is not equal to itself.") | |
1213 | 1269 | } | |
1214 | 1270 | else throw("Strict value is not equal to itself.") | |
1215 | 1271 | } | |
1216 | 1272 | else throw("Strict value is not equal to itself.") | |
1217 | 1273 | } | |
1218 | 1274 | ||
1219 | 1275 | ||
1220 | 1276 | ||
1221 | - | @Callable( | |
1222 | - | func putOneTknREADONLY ( | |
1223 | - | let | |
1224 | - | let | |
1225 | - | let | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | $Tuple2(nil, $Tuple3( | |
1277 | + | @Callable(fd) | |
1278 | + | func putOneTknREADONLY (fu,ft) = { | |
1279 | + | let hq = fs(ft, bp(fu), unit, unit) | |
1280 | + | let hk = hq._1 | |
1281 | + | let ev = hq._2 | |
1282 | + | let fr = hq._3 | |
1283 | + | let hj = hq._4 | |
1284 | + | let fy = hq._5 | |
1285 | + | $Tuple2(nil, $Tuple3(hk, fr, hj)) | |
1230 | 1286 | } | |
1231 | 1287 | ||
1232 | 1288 | ||
1233 | 1289 | ||
1234 | - | @Callable( | |
1235 | - | func getOneTkn ( | |
1236 | - | let | |
1290 | + | @Callable(fd) | |
1291 | + | func getOneTkn (hr,he) = { | |
1292 | + | let hg = { | |
1237 | 1293 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1238 | 1294 | if ($isInstanceOf(bg, "Boolean")) | |
1239 | 1295 | then bg | |
1240 | 1296 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1241 | 1297 | } | |
1242 | - | let hn = if (if (bi()) | |
1298 | + | let fg = if (!(bj(fd.caller))) | |
1299 | + | then if (if (bk()) | |
1300 | + | then true | |
1301 | + | else (bx == n)) | |
1302 | + | then true | |
1303 | + | else hg | |
1304 | + | else false | |
1305 | + | let fZ = [if (if (!(fg)) | |
1243 | 1306 | then true | |
1244 | - | else ( | |
1307 | + | else gt(fd)) | |
1245 | 1308 | then true | |
1246 | - | else ha | |
1247 | - | let fV = [if (if (!(hn)) | |
1248 | - | then true | |
1249 | - | else gp(fb)) | |
1250 | - | then true | |
1251 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1309 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1252 | 1310 | then true | |
1253 | 1311 | else ba("exactly 1 payment are expected")] | |
1254 | - | if (( | |
1312 | + | if ((fZ == fZ)) | |
1255 | 1313 | then { | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | if (( | |
1314 | + | let fY = bp(hr) | |
1315 | + | let hh = fd.payments[0] | |
1316 | + | let fu = hh.assetId | |
1317 | + | let fG = hh.amount | |
1318 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1319 | + | if ((eJ == eJ)) | |
1262 | 1320 | then { | |
1263 | - | let ab = | |
1264 | - | let ac = | |
1265 | - | let | |
1266 | - | if (( | |
1321 | + | let ab = fd.caller | |
1322 | + | let ac = fd.transactionId | |
1323 | + | let hs = fX(fY, fG, fu, ab, ac) | |
1324 | + | if ((hs == hs)) | |
1267 | 1325 | then { | |
1268 | - | let | |
1269 | - | let | |
1270 | - | let | |
1271 | - | let | |
1272 | - | let | |
1273 | - | let | |
1274 | - | then ( | |
1326 | + | let ga = hs._5 | |
1327 | + | let hj = hs._4 | |
1328 | + | let fr = hs._3 | |
1329 | + | let ev = hs._2 | |
1330 | + | let ht = hs._1 | |
1331 | + | let ch = if (if ((he > 0)) | |
1332 | + | then (he > ht) | |
1275 | 1333 | else false) | |
1276 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1277 | - | else | |
1278 | - | let | |
1279 | - | if (( | |
1334 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1335 | + | else ht | |
1336 | + | let hu = invoke(bd, "burn", [fG], [AttachedPayment(fu, fG)]) | |
1337 | + | if ((hu == hu)) | |
1280 | 1338 | then { | |
1281 | - | let | |
1282 | - | let | |
1283 | - | let | |
1284 | - | then [ScriptTransfer(be, | |
1339 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1340 | + | let hv = [ScriptTransfer(ab, ch, fY)] | |
1341 | + | let hn = if ((fr > 0)) | |
1342 | + | then [ScriptTransfer(be, fr, fY)] | |
1285 | 1343 | else nil | |
1286 | - | let | |
1287 | - | let | |
1344 | + | let hw = { | |
1345 | + | let hx = if ((this == be)) | |
1288 | 1346 | then 0 | |
1289 | - | else | |
1290 | - | if ( | |
1291 | - | then $Tuple2(-(( | |
1292 | - | else $Tuple2(0, -(( | |
1347 | + | else fr | |
1348 | + | if (ga) | |
1349 | + | then $Tuple2(-((ch + hx)), 0) | |
1350 | + | else $Tuple2(0, -((ch + hx))) | |
1293 | 1351 | } | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | let | |
1300 | - | if (( | |
1301 | - | then $Tuple2((((( | |
1352 | + | let eL = hw._1 | |
1353 | + | let eM = hw._2 | |
1354 | + | let hy = eK(eL, eM, 0) | |
1355 | + | let gP = hy._1 | |
1356 | + | let eB = hy._2 | |
1357 | + | let ha = eP(eJ, eB) | |
1358 | + | if ((ha == ha)) | |
1359 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1302 | 1360 | else throw("Strict value is not equal to itself.") | |
1303 | 1361 | } | |
1304 | 1362 | else throw("Strict value is not equal to itself.") | |
1305 | 1363 | } | |
1306 | 1364 | else throw("Strict value is not equal to itself.") | |
1307 | 1365 | } | |
1308 | 1366 | else throw("Strict value is not equal to itself.") | |
1309 | 1367 | } | |
1310 | 1368 | else throw("Strict value is not equal to itself.") | |
1311 | 1369 | } | |
1312 | 1370 | ||
1313 | 1371 | ||
1314 | 1372 | ||
1315 | - | @Callable( | |
1316 | - | func getOneTknREADONLY ( | |
1317 | - | let | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | $Tuple2(nil, $Tuple3( | |
1373 | + | @Callable(fd) | |
1374 | + | func getOneTknREADONLY (fY,fG) = { | |
1375 | + | let hz = fX(bp(fY), fG, by, unit, unit) | |
1376 | + | let ht = hz._1 | |
1377 | + | let ev = hz._2 | |
1378 | + | let fr = hz._3 | |
1379 | + | let hj = hz._4 | |
1380 | + | let ga = hz._5 | |
1381 | + | $Tuple2(nil, $Tuple3(ht, fr, hj)) | |
1324 | 1382 | } | |
1325 | 1383 | ||
1326 | 1384 | ||
1327 | 1385 | ||
1328 | - | @Callable( | |
1329 | - | func unstakeAndGetOneTkn ( | |
1330 | - | let | |
1386 | + | @Callable(fd) | |
1387 | + | func unstakeAndGetOneTkn (hA,hr,he) = { | |
1388 | + | let hg = { | |
1331 | 1389 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1332 | 1390 | if ($isInstanceOf(bg, "Boolean")) | |
1333 | 1391 | then bg | |
1334 | 1392 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1335 | 1393 | } | |
1336 | - | let hn = if (if (bi()) | |
1394 | + | let fg = if (!(bj(fd.caller))) | |
1395 | + | then if (if (bk()) | |
1396 | + | then true | |
1397 | + | else (bx == n)) | |
1398 | + | then true | |
1399 | + | else hg | |
1400 | + | else false | |
1401 | + | let fZ = [if (if (!(fg)) | |
1337 | 1402 | then true | |
1338 | - | else ( | |
1403 | + | else gt(fd)) | |
1339 | 1404 | then true | |
1340 | - | else ha | |
1341 | - | let fV = [if (if (!(hn)) | |
1342 | - | then true | |
1343 | - | else gp(fb)) | |
1344 | - | then true | |
1345 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1405 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1346 | 1406 | then true | |
1347 | 1407 | else ba("no payments are expected")] | |
1348 | - | if (( | |
1408 | + | if ((fZ == fZ)) | |
1349 | 1409 | then { | |
1350 | - | let | |
1351 | - | let ab = | |
1352 | - | let ac = | |
1353 | - | let | |
1354 | - | if (( | |
1410 | + | let fY = bp(hr) | |
1411 | + | let ab = fd.caller | |
1412 | + | let ac = fd.transactionId | |
1413 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1414 | + | if ((eJ == eJ)) | |
1355 | 1415 | then { | |
1356 | - | let | |
1357 | - | if (( | |
1416 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1417 | + | if ((hB == hB)) | |
1358 | 1418 | then { | |
1359 | - | let | |
1360 | - | if (( | |
1419 | + | let hC = fX(fY, hA, by, ab, ac) | |
1420 | + | if ((hC == hC)) | |
1361 | 1421 | then { | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | then ( | |
1422 | + | let ga = hC._5 | |
1423 | + | let hj = hC._4 | |
1424 | + | let fr = hC._3 | |
1425 | + | let ev = hC._2 | |
1426 | + | let ht = hC._1 | |
1427 | + | let ch = if (if ((he > 0)) | |
1428 | + | then (he > ht) | |
1369 | 1429 | else false) | |
1370 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1371 | - | else | |
1372 | - | let | |
1373 | - | if (( | |
1430 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1431 | + | else ht | |
1432 | + | let hu = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1433 | + | if ((hu == hu)) | |
1374 | 1434 | then { | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | then [ScriptTransfer(be, | |
1435 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1436 | + | let hv = [ScriptTransfer(fd.caller, ch, fY)] | |
1437 | + | let hn = if ((fr > 0)) | |
1438 | + | then [ScriptTransfer(be, fr, fY)] | |
1379 | 1439 | else nil | |
1380 | - | let | |
1381 | - | let | |
1440 | + | let hD = { | |
1441 | + | let hx = if ((this == be)) | |
1382 | 1442 | then 0 | |
1383 | - | else | |
1384 | - | if ( | |
1385 | - | then $Tuple2(-(( | |
1386 | - | else $Tuple2(0, -(( | |
1443 | + | else fr | |
1444 | + | if (ga) | |
1445 | + | then $Tuple2(-((ch + hx)), 0) | |
1446 | + | else $Tuple2(0, -((ch + hx))) | |
1387 | 1447 | } | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | if (( | |
1395 | - | then $Tuple2((((( | |
1448 | + | let eL = hD._1 | |
1449 | + | let eM = hD._2 | |
1450 | + | let hE = eK(eL, eM, 0) | |
1451 | + | let gP = hE._1 | |
1452 | + | let eB = hE._2 | |
1453 | + | let ha = eP(eJ, eB) | |
1454 | + | if ((ha == ha)) | |
1455 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1396 | 1456 | else throw("Strict value is not equal to itself.") | |
1397 | 1457 | } | |
1398 | 1458 | else throw("Strict value is not equal to itself.") | |
1399 | 1459 | } | |
1400 | 1460 | else throw("Strict value is not equal to itself.") | |
1401 | 1461 | } | |
1402 | 1462 | else throw("Strict value is not equal to itself.") | |
1403 | 1463 | } | |
1404 | 1464 | else throw("Strict value is not equal to itself.") | |
1405 | 1465 | } | |
1406 | 1466 | else throw("Strict value is not equal to itself.") | |
1407 | 1467 | } | |
1408 | 1468 | ||
1409 | 1469 | ||
1410 | 1470 | ||
1411 | - | @Callable( | |
1471 | + | @Callable(fd) | |
1412 | 1472 | func get () = { | |
1413 | - | let | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | let | |
1421 | - | if (( | |
1473 | + | let eg = fc(fd) | |
1474 | + | let dM = eg._1 | |
1475 | + | let dN = eg._2 | |
1476 | + | let ff = eg._3 | |
1477 | + | let dv = eg._4 | |
1478 | + | let dO = eg._5 | |
1479 | + | let gR = cW(dM, dN) | |
1480 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1481 | + | if ((eJ == eJ)) | |
1422 | 1482 | then { | |
1423 | - | let | |
1424 | - | if (( | |
1483 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1484 | + | if ((hF == hF)) | |
1425 | 1485 | then { | |
1426 | - | let | |
1427 | - | let | |
1428 | - | let | |
1429 | - | let | |
1430 | - | if (( | |
1431 | - | then (( | |
1486 | + | let hG = eK(-(dM), -(dN), 0) | |
1487 | + | let gP = hG._1 | |
1488 | + | let eB = hG._2 | |
1489 | + | let ha = eP(eJ, eB) | |
1490 | + | if ((ha == ha)) | |
1491 | + | then ((gR ++ dO) ++ gP) | |
1432 | 1492 | else throw("Strict value is not equal to itself.") | |
1433 | 1493 | } | |
1434 | 1494 | else throw("Strict value is not equal to itself.") | |
1435 | 1495 | } | |
1436 | 1496 | else throw("Strict value is not equal to itself.") | |
1437 | 1497 | } | |
1438 | 1498 | ||
1439 | 1499 | ||
1440 | 1500 | ||
1441 | - | @Callable( | |
1442 | - | func getNoLess ( | |
1443 | - | let | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | let | |
1448 | - | let | |
1449 | - | if (( | |
1450 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1451 | - | else if (( | |
1452 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1501 | + | @Callable(fd) | |
1502 | + | func getNoLess (hH,hI) = { | |
1503 | + | let eg = fc(fd) | |
1504 | + | let dM = eg._1 | |
1505 | + | let dN = eg._2 | |
1506 | + | let ff = eg._3 | |
1507 | + | let dv = eg._4 | |
1508 | + | let dO = eg._5 | |
1509 | + | if ((hH > dM)) | |
1510 | + | then throw(((("noLessThenAmtAsset failed: " + toString(dM)) + " < ") + toString(hH))) | |
1511 | + | else if ((hI > dN)) | |
1512 | + | then throw(((("noLessThenPriceAsset failed: " + toString(dN)) + " < ") + toString(hI))) | |
1453 | 1513 | else { | |
1454 | - | let | |
1455 | - | let | |
1456 | - | if (( | |
1514 | + | let gR = cW(dM, dN) | |
1515 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1516 | + | if ((eJ == eJ)) | |
1457 | 1517 | then { | |
1458 | - | let | |
1459 | - | if (( | |
1518 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1519 | + | if ((hF == hF)) | |
1460 | 1520 | then { | |
1461 | - | let | |
1462 | - | let | |
1463 | - | let | |
1464 | - | let | |
1465 | - | if (( | |
1466 | - | then (( | |
1521 | + | let hJ = eK(-(dM), -(dN), 0) | |
1522 | + | let gP = hJ._1 | |
1523 | + | let eB = hJ._2 | |
1524 | + | let ha = eP(eJ, eB) | |
1525 | + | if ((ha == ha)) | |
1526 | + | then ((gR ++ dO) ++ gP) | |
1467 | 1527 | else throw("Strict value is not equal to itself.") | |
1468 | 1528 | } | |
1469 | 1529 | else throw("Strict value is not equal to itself.") | |
1470 | 1530 | } | |
1471 | 1531 | else throw("Strict value is not equal to itself.") | |
1472 | 1532 | } | |
1473 | 1533 | } | |
1474 | 1534 | ||
1475 | 1535 | ||
1476 | 1536 | ||
1477 | - | @Callable( | |
1478 | - | func unstakeAndGet ( | |
1479 | - | let | |
1537 | + | @Callable(fd) | |
1538 | + | func unstakeAndGet (ch) = { | |
1539 | + | let hK = if ((size(fd.payments) != 0)) | |
1480 | 1540 | then throw("No payments are expected") | |
1481 | 1541 | else true | |
1482 | - | if (( | |
1542 | + | if ((hK == hK)) | |
1483 | 1543 | then { | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | if (( | |
1544 | + | let dk = bm() | |
1545 | + | let dx = fromBase58String(dk[q]) | |
1546 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1547 | + | if ((eJ == eJ)) | |
1488 | 1548 | then { | |
1489 | - | let | |
1490 | - | if (( | |
1549 | + | let hB = invoke(bE, "unstake", [toBase58String(dx), ch], nil) | |
1550 | + | if ((hB == hB)) | |
1491 | 1551 | then { | |
1492 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dv), cf, fb.caller) | |
1493 | - | let dK = ee._1 | |
1494 | - | let dL = ee._2 | |
1495 | - | let dy = parseIntValue(ee._9) | |
1496 | - | let dM = ee._10 | |
1497 | - | let gK = cU(dK, dL) | |
1498 | - | let hH = if (if (bi()) | |
1499 | - | then true | |
1500 | - | else (dy == n)) | |
1501 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
1552 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dx), ch, fd.caller) | |
1553 | + | let dM = eg._1 | |
1554 | + | let dN = eg._2 | |
1555 | + | let dA = parseIntValue(eg._9) | |
1556 | + | let dO = eg._10 | |
1557 | + | let gR = cW(dM, dN) | |
1558 | + | let fg = if (!(bj(fd.caller))) | |
1559 | + | then if (bk()) | |
1560 | + | then true | |
1561 | + | else (bx == n) | |
1562 | + | else false | |
1563 | + | let hL = if (fg) | |
1564 | + | then throw(("Get operation is blocked by admin. Status = " + toString(dA))) | |
1502 | 1565 | else true | |
1503 | - | if (( | |
1566 | + | if ((hL == hL)) | |
1504 | 1567 | then { | |
1505 | - | let | |
1506 | - | if (( | |
1568 | + | let hF = invoke(bd, "burn", [ch], [AttachedPayment(dx, ch)]) | |
1569 | + | if ((hF == hF)) | |
1507 | 1570 | then { | |
1508 | - | let | |
1509 | - | let | |
1510 | - | let | |
1511 | - | let | |
1512 | - | if (( | |
1513 | - | then (( | |
1571 | + | let hM = eK(-(dM), -(dN), 0) | |
1572 | + | let gP = hM._1 | |
1573 | + | let eB = hM._2 | |
1574 | + | let ha = eP(eJ, eB) | |
1575 | + | if ((ha == ha)) | |
1576 | + | then ((gR ++ dO) ++ gP) | |
1514 | 1577 | else throw("Strict value is not equal to itself.") | |
1515 | 1578 | } | |
1516 | 1579 | else throw("Strict value is not equal to itself.") | |
1517 | 1580 | } | |
1518 | 1581 | else throw("Strict value is not equal to itself.") | |
1519 | 1582 | } | |
1520 | 1583 | else throw("Strict value is not equal to itself.") | |
1521 | 1584 | } | |
1522 | 1585 | else throw("Strict value is not equal to itself.") | |
1523 | 1586 | } | |
1524 | 1587 | else throw("Strict value is not equal to itself.") | |
1525 | 1588 | } | |
1526 | 1589 | ||
1527 | 1590 | ||
1528 | 1591 | ||
1529 | - | @Callable(fb) | |
1530 | - | func unstakeAndGetNoLess (hw,hJ,hE) = { | |
1531 | - | let hn = if (bi()) | |
1592 | + | @Callable(fd) | |
1593 | + | func unstakeAndGetNoLess (hA,hN,hI) = { | |
1594 | + | let fg = if (!(bj(fd.caller))) | |
1595 | + | then if (bk()) | |
1596 | + | then true | |
1597 | + | else (bx == n) | |
1598 | + | else false | |
1599 | + | let fZ = [if (!(fg)) | |
1532 | 1600 | then true | |
1533 | - | else (bv == n) | |
1534 | - | let fV = [if (!(hn)) | |
1535 | - | then true | |
1536 | - | else throw("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1601 | + | else throw("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1537 | 1602 | then true | |
1538 | 1603 | else throw("no payments are expected")] | |
1539 | - | if (( | |
1604 | + | if ((fZ == fZ)) | |
1540 | 1605 | then { | |
1541 | - | let | |
1542 | - | if (( | |
1606 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1607 | + | if ((eJ == eJ)) | |
1543 | 1608 | then { | |
1544 | - | let | |
1545 | - | if (( | |
1609 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1610 | + | if ((hB == hB)) | |
1546 | 1611 | then { | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | let | |
1612 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(by), hA, fd.caller) | |
1613 | + | let dM = eg._1 | |
1614 | + | let dN = eg._2 | |
1615 | + | let dO = eg._10 | |
1616 | + | let gR = cW(dM, dN) | |
1617 | + | let hO = [if ((dM >= hN)) | |
1553 | 1618 | then true | |
1554 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1619 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hN)], "")), if ((dN >= hI)) | |
1555 | 1620 | then true | |
1556 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1557 | - | if (( | |
1621 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hI)], ""))] | |
1622 | + | if ((hO == hO)) | |
1558 | 1623 | then { | |
1559 | - | let | |
1560 | - | if (( | |
1624 | + | let hF = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1625 | + | if ((hF == hF)) | |
1561 | 1626 | then { | |
1562 | - | let | |
1563 | - | let | |
1564 | - | let | |
1565 | - | let | |
1566 | - | if (( | |
1567 | - | then (( | |
1627 | + | let hP = eK(-(dM), -(dN), 0) | |
1628 | + | let gP = hP._1 | |
1629 | + | let eB = hP._2 | |
1630 | + | let ha = eP(eJ, eB) | |
1631 | + | if ((ha == ha)) | |
1632 | + | then ((gR ++ dO) ++ gP) | |
1568 | 1633 | else throw("Strict value is not equal to itself.") | |
1569 | 1634 | } | |
1570 | 1635 | else throw("Strict value is not equal to itself.") | |
1571 | 1636 | } | |
1572 | 1637 | else throw("Strict value is not equal to itself.") | |
1573 | 1638 | } | |
1574 | 1639 | else throw("Strict value is not equal to itself.") | |
1575 | 1640 | } | |
1576 | 1641 | else throw("Strict value is not equal to itself.") | |
1577 | 1642 | } | |
1578 | 1643 | else throw("Strict value is not equal to itself.") | |
1579 | 1644 | } | |
1580 | 1645 | ||
1581 | 1646 | ||
1582 | 1647 | ||
1583 | - | @Callable( | |
1584 | - | func activate ( | |
1648 | + | @Callable(fd) | |
1649 | + | func activate (hQ,hR) = if ((toString(fd.caller) != toString(bd))) | |
1585 | 1650 | then throw("permissions denied") | |
1586 | - | else $Tuple2([StringEntry(ae(), | |
1651 | + | else $Tuple2([StringEntry(ae(), hQ), StringEntry(af(), hR)], "success") | |
1587 | 1652 | ||
1588 | 1653 | ||
1589 | 1654 | ||
1590 | - | @Callable( | |
1655 | + | @Callable(fd) | |
1591 | 1656 | func refreshKLp () = { | |
1592 | - | let | |
1593 | - | let | |
1657 | + | let hS = valueOrElse(getInteger(ak), 0) | |
1658 | + | let hT = if (((height - hS) >= an)) | |
1594 | 1659 | then unit | |
1595 | 1660 | else ba(makeString([toString(an), " blocks have not passed since the previous call"], "")) | |
1596 | - | if (( | |
1661 | + | if ((hT == hT)) | |
1597 | 1662 | then { | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1603 | - | then | |
1663 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
1664 | + | let hU = eK(0, 0, 0) | |
1665 | + | let hV = hU._1 | |
1666 | + | let eB = hU._2 | |
1667 | + | let eN = if ((eW != eB)) | |
1668 | + | then hV | |
1604 | 1669 | else ba("nothing to refresh") | |
1605 | - | $Tuple2( | |
1670 | + | $Tuple2(eN, toString(eB)) | |
1606 | 1671 | } | |
1607 | 1672 | else throw("Strict value is not equal to itself.") | |
1608 | 1673 | } | |
1609 | 1674 | ||
1610 | 1675 | ||
1611 | 1676 | ||
1612 | - | @Callable( | |
1613 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1677 | + | @Callable(fd) | |
1678 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bm()) | |
1614 | 1679 | ||
1615 | 1680 | ||
1616 | 1681 | ||
1617 | - | @Callable( | |
1618 | - | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, | |
1682 | + | @Callable(fd) | |
1683 | + | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, bV(ap)) | |
1619 | 1684 | ||
1620 | 1685 | ||
1621 | 1686 | ||
1622 | - | @Callable( | |
1623 | - | func calcPricesWrapperREADONLY ( | |
1624 | - | let | |
1625 | - | $Tuple2(nil, [toString( | |
1687 | + | @Callable(fd) | |
1688 | + | func calcPricesWrapperREADONLY (de,df,dj) = { | |
1689 | + | let ds = di(de, df, dj) | |
1690 | + | $Tuple2(nil, [toString(ds[0]), toString(ds[1]), toString(ds[2])]) | |
1626 | 1691 | } | |
1627 | 1692 | ||
1628 | 1693 | ||
1629 | 1694 | ||
1630 | - | @Callable( | |
1695 | + | @Callable(fd) | |
1631 | 1696 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1632 | 1697 | ||
1633 | 1698 | ||
1634 | 1699 | ||
1635 | - | @Callable( | |
1700 | + | @Callable(fd) | |
1636 | 1701 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1637 | 1702 | ||
1638 | 1703 | ||
1639 | 1704 | ||
1640 | - | @Callable( | |
1641 | - | func calcPriceBigIntWrapperREADONLY ( | |
1705 | + | @Callable(fd) | |
1706 | + | func calcPriceBigIntWrapperREADONLY (bZ,ca) = $Tuple2(nil, toString(bY(parseBigIntValue(bZ), parseBigIntValue(ca)))) | |
1642 | 1707 | ||
1643 | 1708 | ||
1644 | 1709 | ||
1645 | - | @Callable( | |
1646 | - | func estimatePutOperationWrapperREADONLY ( | |
1710 | + | @Callable(fd) | |
1711 | + | func estimatePutOperationWrapperREADONLY (du,dQ,dR,dS,dT,dU,ab,dV,dW) = $Tuple2(nil, dP(du, dQ, dR, dS, dT, dU, ab, dV, dW)) | |
1647 | 1712 | ||
1648 | 1713 | ||
1649 | 1714 | ||
1650 | - | @Callable( | |
1651 | - | func estimateGetOperationWrapperREADONLY ( | |
1652 | - | let | |
1653 | - | $Tuple2(nil, $Tuple10( | |
1715 | + | @Callable(fd) | |
1716 | + | func estimateGetOperationWrapperREADONLY (du,dv,dw,ab) = { | |
1717 | + | let eg = dt(du, dv, dw, addressFromStringValue(ab)) | |
1718 | + | $Tuple2(nil, $Tuple10(eg._1, eg._2, eg._3, eg._4, eg._5, eg._6, eg._7, toString(eg._8), eg._9, eg._10)) | |
1654 | 1719 | } | |
1655 | 1720 | ||
1656 | 1721 | ||
1657 | 1722 | ||
1658 | - | @Callable( | |
1723 | + | @Callable(fd) | |
1659 | 1724 | func statsREADONLY () = { | |
1660 | - | let | |
1661 | - | let | |
1662 | - | let | |
1663 | - | let | |
1664 | - | let | |
1665 | - | let | |
1666 | - | let | |
1667 | - | let | |
1668 | - | let | |
1669 | - | let | |
1670 | - | let | |
1671 | - | let | |
1725 | + | let dk = bm() | |
1726 | + | let dx = fromBase58String(dk[q]) | |
1727 | + | let hW = dk[r] | |
1728 | + | let hX = dk[s] | |
1729 | + | let dZ = dk[v] | |
1730 | + | let ea = dk[w] | |
1731 | + | let dl = parseIntValue(dk[t]) | |
1732 | + | let dm = parseIntValue(dk[u]) | |
1733 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1734 | + | let hZ = bV(hW) | |
1735 | + | let ia = bV(hX) | |
1736 | + | let ib = if ((hY == 0)) | |
1672 | 1737 | then [e, e, e] | |
1673 | - | else | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1738 | + | else di(hZ, ia, hY) | |
1739 | + | let dH = 0 | |
1740 | + | let ic = H(ib[1], b) | |
1741 | + | let id = H(ib[2], b) | |
1742 | + | let ie = value(getInteger(bd, aD(toString(this)))) | |
1743 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(hZ), toString(ia), toString(hY), toString(dH), toString(ic), toString(id), toString(ie)], j)) | |
1679 | 1744 | } | |
1680 | 1745 | ||
1681 | 1746 | ||
1682 | 1747 | ||
1683 | - | @Callable( | |
1684 | - | func evaluatePutByAmountAssetREADONLY ( | |
1685 | - | let | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | let | |
1694 | - | let | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1698 | - | let | |
1699 | - | let | |
1748 | + | @Callable(fd) | |
1749 | + | func evaluatePutByAmountAssetREADONLY (dR) = { | |
1750 | + | let dk = bm() | |
1751 | + | let dx = fromBase58String(dk[q]) | |
1752 | + | let dX = dk[r] | |
1753 | + | let dy = fromBase58String(dX) | |
1754 | + | let dY = dk[s] | |
1755 | + | let dz = fromBase58String(dY) | |
1756 | + | let dl = parseIntValue(dk[t]) | |
1757 | + | let dm = parseIntValue(dk[u]) | |
1758 | + | let dA = dk[p] | |
1759 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1760 | + | let hZ = bV(dX) | |
1761 | + | let ia = bV(dY) | |
1762 | + | let dg = D(hZ, dl) | |
1763 | + | let dh = D(ia, dm) | |
1764 | + | let dG = if ((hY == 0)) | |
1700 | 1765 | then e | |
1701 | - | else | |
1702 | - | let | |
1703 | - | let | |
1704 | - | let | |
1705 | - | let | |
1706 | - | let | |
1707 | - | let | |
1708 | - | let | |
1709 | - | let | |
1710 | - | let | |
1711 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1766 | + | else bY(dh, dg) | |
1767 | + | let ed = D(dR, dl) | |
1768 | + | let ee = fraction(ed, dG, d) | |
1769 | + | let dT = H(ee, dm) | |
1770 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1771 | + | let eo = fk._1 | |
1772 | + | let if = fk._3 | |
1773 | + | let dC = fk._4 | |
1774 | + | let dE = fk._5 | |
1775 | + | let dB = fk._6 | |
1776 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1712 | 1777 | } | |
1713 | 1778 | ||
1714 | 1779 | ||
1715 | 1780 | ||
1716 | - | @Callable( | |
1717 | - | func evaluatePutByPriceAssetREADONLY ( | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | let | |
1725 | - | let | |
1726 | - | let | |
1727 | - | let | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1781 | + | @Callable(fd) | |
1782 | + | func evaluatePutByPriceAssetREADONLY (dT) = { | |
1783 | + | let dk = bm() | |
1784 | + | let dx = fromBase58String(dk[q]) | |
1785 | + | let dX = dk[r] | |
1786 | + | let dy = fromBase58String(dX) | |
1787 | + | let dY = dk[s] | |
1788 | + | let dz = fromBase58String(dY) | |
1789 | + | let dl = parseIntValue(dk[t]) | |
1790 | + | let dm = parseIntValue(dk[u]) | |
1791 | + | let dA = dk[p] | |
1792 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1793 | + | let ig = bV(dX) | |
1794 | + | let ih = bV(dY) | |
1795 | + | let ii = D(ig, dl) | |
1796 | + | let ij = D(ih, dm) | |
1797 | + | let dG = if ((hY == 0)) | |
1733 | 1798 | then e | |
1734 | - | else | |
1735 | - | let | |
1736 | - | let | |
1737 | - | let | |
1738 | - | let | |
1739 | - | let | |
1740 | - | let | |
1741 | - | let | |
1742 | - | let | |
1743 | - | let | |
1744 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1799 | + | else bY(ij, ii) | |
1800 | + | let ee = D(dT, dm) | |
1801 | + | let ed = fraction(ee, d, dG) | |
1802 | + | let dR = H(ed, dl) | |
1803 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1804 | + | let eo = fk._1 | |
1805 | + | let if = fk._3 | |
1806 | + | let dC = fk._4 | |
1807 | + | let dE = fk._5 | |
1808 | + | let dB = fk._6 | |
1809 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1745 | 1810 | } | |
1746 | 1811 | ||
1747 | 1812 | ||
1748 | 1813 | ||
1749 | - | @Callable( | |
1750 | - | func evaluateGetREADONLY ( | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1754 | - | let | |
1755 | - | let | |
1756 | - | let | |
1757 | - | let | |
1758 | - | let | |
1759 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1814 | + | @Callable(fd) | |
1815 | + | func evaluateGetREADONLY (ik,il) = { | |
1816 | + | let eg = dt("", ik, il, this) | |
1817 | + | let dM = eg._1 | |
1818 | + | let dN = eg._2 | |
1819 | + | let dC = eg._5 | |
1820 | + | let dE = eg._6 | |
1821 | + | let dB = eg._7 | |
1822 | + | let dH = eg._8 | |
1823 | + | let dA = parseIntValue(eg._9) | |
1824 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dC), toString(dE), toString(dB), toString(dH), toString(dA)], j)) | |
1760 | 1825 | } | |
1761 | 1826 | ||
1762 | 1827 | ||
1763 | - | @Verifier( | |
1764 | - | func | |
1765 | - | let | |
1766 | - | let aQ = | |
1828 | + | @Verifier(im) | |
1829 | + | func in () = { | |
1830 | + | let io = { | |
1831 | + | let aQ = gr() | |
1767 | 1832 | if ($isInstanceOf(aQ, "ByteVector")) | |
1768 | 1833 | then { | |
1769 | - | let | |
1770 | - | | |
1834 | + | let gu = aQ | |
1835 | + | gu | |
1771 | 1836 | } | |
1772 | 1837 | else if ($isInstanceOf(aQ, "Unit")) | |
1773 | - | then | |
1838 | + | then im.senderPublicKey | |
1774 | 1839 | else throw("Match error") | |
1775 | 1840 | } | |
1776 | - | let aQ = | |
1841 | + | let aQ = im | |
1777 | 1842 | if ($isInstanceOf(aQ, "Order")) | |
1778 | 1843 | then { | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1844 | + | let eS = aQ | |
1845 | + | let ip = bl() | |
1846 | + | let iq = if (eO()) | |
1782 | 1847 | then $Tuple2(true, "") | |
1783 | - | else | |
1784 | - | let aK = | |
1785 | - | let aL = | |
1786 | - | let aM = sigVerify( | |
1787 | - | let aN = sigVerify( | |
1848 | + | else eR(eS) | |
1849 | + | let aK = iq._1 | |
1850 | + | let aL = iq._2 | |
1851 | + | let aM = sigVerify(eS.bodyBytes, eS.proofs[0], eS.senderPublicKey) | |
1852 | + | let aN = sigVerify(eS.bodyBytes, eS.proofs[1], ip) | |
1788 | 1853 | if (if (if (aK) | |
1789 | 1854 | then aM | |
1790 | 1855 | else false) | |
1791 | 1856 | then aN | |
1792 | 1857 | else false) | |
1793 | 1858 | then true | |
1794 | 1859 | else aJ(aK, aL, aM, aN) | |
1795 | 1860 | } | |
1796 | 1861 | else if ($isInstanceOf(aQ, "SetScriptTransaction")) | |
1797 | 1862 | then { | |
1798 | 1863 | let aV = aQ | |
1799 | - | if (sigVerify( | |
1864 | + | if (sigVerify(im.bodyBytes, im.proofs[0], io)) | |
1800 | 1865 | then true | |
1801 | 1866 | else { | |
1802 | - | let | |
1803 | - | let | |
1804 | - | let | |
1805 | - | if (( | |
1806 | - | then ( | |
1867 | + | let ir = blake2b256(value(aV.script)) | |
1868 | + | let is = fromBase64String(value(getString(bd, aF()))) | |
1869 | + | let it = scriptHash(this) | |
1870 | + | if ((is == ir)) | |
1871 | + | then (it != ir) | |
1807 | 1872 | else false | |
1808 | 1873 | } | |
1809 | 1874 | } | |
1810 | - | else sigVerify( | |
1875 | + | else sigVerify(im.bodyBytes, im.proofs[0], io) | |
1811 | 1876 | } | |
1812 | 1877 |
github/deemru/w8io/026f985 577.14 ms ◑